我在/媒体/ 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 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 lab4。访问的http://实验室只拿到 500内部服务器错误
4. Accessed lab only to get 500 Internal Server Error
所有子文件夹的权限设置为drwxrwxrwx但我的的http://实验室/ phpMyAdmin的和
All the subfolder permissions are set to drwxrwxrwx But my lab/phpmyadmin works.
帮我解决。谢谢你。
推荐答案错误检查这个论坛解决; boinc.berkeley.edu/dev/forum_thread.php?id=8603在我/var/log/apache2/error.log最后一个错误是:
Error solved by checking this forum; 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内部服务器错误
发布评论