我正在使用apache2.2 php4.3和codeigniter php框架。
#apache config
<Location /gl>
</Location>
Alias /gl /mnt/deploy/hospital
when I put file in "http://.../gl/application/controllers/test1.php", the browser report 500 error, and I check the /var/log/apache2/error.log no php error find.
when I put file in "http://.../gl/test1.php" thing's ok.
答案 0 :(得分:1)
你必须告诉允许访问别名的apache。
尝试
Alias /gl /mnt/deploy/hospital
<Directory "/mnt/deploy/hospital">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from localhost 127.0.0.1
</Directory>
如果您必须,并且您没有在本地测试环境中工作,请使用: -
Allow from all
而不是
Allow from localhost 127.0.0.1