我的虚拟主机在Apache 500内部服务器错误 [英] Apache 500 Internal Server Error on my virtual host
问题描述
我在/媒体/ disk1的/项目的文件夹在我的web应用程序的项目。我想用一个Apache虚拟主机服务他们在的http://实验室/
I have my web app projects located in a folder in /media/disk1/Projects. I want to serve them using an Apache virtualhost at http://lab/
.
这是我怎么设置我的虚拟主机:
This is how I set up my virtual host:
1。复制的/ etc / apache2的/网站的可用/默认到/ etc / apache2的/网站的可用/实验室
2。编辑在/ etc / apache2的/网站的可用/实验室以下内容:
<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 / hosts文件:
3. Added 127.0.0.1 lab
to my /etc/hosts:
127.0.0.1 localhost
127.0.0.1 lab
4。访问的http://实验室
只拿到 500内部服务器错误
4. Accessed http://lab
only to get 500 Internal Server Error
所有子文件夹的权限设置为drwxrwxrwx
但我的的http://实验室/ phpMyAdmin的
和
All the subfolder permissions are set to drwxrwxrwx
But my http://lab/phpmyadmin
works.
帮我解决。谢谢你。
推荐答案
错误检查这个论坛解决; <一href=\"http://boinc.berkeley.edu/dev/forum_thread.php?id=8603\">http://boinc.berkeley.edu/dev/forum_thread.php?id=8603
在我/var/log/apache2/error.log最后一个错误是:
Error solved by checking this forum; http://boinc.berkeley.edu/dev/forum_thread.php?id=8603 On my /var/log/apache2/error.log the last error was:
[Wed Oct 09 09:10:04 2013] [crit] [client 127.0.0.1] configuration error: couldn't perform authentication. AuthType not set!: /
于是我跟着别人的解决方案,并评论该行
So I followed someone elses solution and commented the line
# Require all granted
刚下我的/ etc / apache2的/网站的可用/实验室和田田!我能列出我的项目目录中,我的浏览器。
just under on my /etc/apache2/sites-available/lab and TADA! I was able to list my Projects directory in my browser.
这篇关于我的虚拟主机在Apache 500内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!