提问者:小点点

Apache 500内部服务器错误在我的虚拟主机[关闭]


我有我的Web应用程序项目位于一个文件夹中 /media/disk1/Projects.我想在超文本传输协议中使用Apache虚拟主机为他们服务://lab/。

以下是我设置虚拟主机的方式:

1.复制/etc/apache2/sites available/默认为/etc/apache2/sites available/lab

2.编辑/etc/apache2/sites available/lab至以下地址:

<VirtualHost *:80>
ServerAdmin tim@localhost
ServerName lab

DocumentRoot /media/disk1/Projects
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
# <Directory /var/www/>
<Directory /media/disk1/Projects>
    Require all granted
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

3.增加了127.0。0.1实验室至我的/etc/主机:

127.0.0.1   localhost
127.0.0.1   lab

4.访问http://lab仅获取500内部服务器错误

所有子文件夹权限都设置为DRWXRWX,但我的http://lab/phpmyadmin有效。

帮我解决。谢谢


共1个答案

匿名用户

通过检查此论坛解决错误;http://boinc.berkeley.edu/dev/forum_thread.php?id=8603在my/var/log/apache2/error上。日志最后一个错误是:

[Wed Oct 09 09:10:04 2013] [crit] [client 127.0.0.1] configuration error:  couldn't perform authentication. AuthType not set!: /

所以我遵循别人的解决方案,对这句话发表了评论

# Require all granted

就在我的/etc/apache2/sites available/lab和TADA下面!我可以在浏览器中列出我的项目目录。