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

编程入门 行业动态 更新时间:2024-10-28 16:17:27
本文介绍了我的虚拟主机在Apache 500内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在/媒体/ 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 lab

4。访问的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内部服务器错误

本文发布于:2023-11-01 07:32:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1548675.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:虚拟主机   错误   服务器   Apache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!