|
这个是我的虚拟目录配置:
Alias /news "/var/www/application/news/"
<Directory "/var/www/application/news">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType text/xml "access plus 1 seconds"
</IfModule>
</Directory>
以下是我的ci配置
$config['base_url'] = "http://172.16.7.2/news";
以下是我的一个测试控制器Test:
<?php
class Test extends Controller{
function __construct()
{
parent::Controller();
}
function index()
{
echo "OK"
}
}
以下是浏览器输入地址:
http://172.16.7.2/news/index.php/Test
运行时发生404错误,大家帮帮忙,看看是什么问题。。。 |
|