首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >阿帕奇停止工作

阿帕奇停止工作
EN

Ask Ubuntu用户
提问于 2016-09-18 18:09:37
回答 1查看 668关注 0票数 0

我有一个论坛网站,停止加载,现在它显示默认的页面

这很奇怪,因为所有设置文件都是自动生成的,直到最近重新启动才会出现问题。

下面是apache的conf文件:

代码语言:javascript
复制
**all.conf**
<VirtualHost *:80>
DirectoryIndex index.html index.htm index.php
ServerAlias *blegends.ru
AssignUserID webserver webserver
DocumentRoot /var/www/html
DirectoryIndex index.php index.html
Alias /playvds-widget /home/webserver/widget
Alias /playvds-donate /home/webserver/donate
Alias /playvds-launcher /home/webserver/launcher
Alias /playvds-phpmyadmin /home/webserver/phpmyadmin
Alias /playvds-net2ftp /home/webserver/net2ftp
</VirtualHost>
<Directory /home/webserver/widget>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/donate>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/launcher>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/phpmyadmin>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/net2ftp>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

和网站相关的conf文件:

代码语言:javascript
复制
**blegends.ru.conf**
<VirtualHost *:80>
DirectoryIndex index.html index.htm index.php
ServerName blegends.ru
AssignUserID webserver webserver
DocumentRoot /home/webserver/www/blegends.ru
DirectoryIndex index.php index.html
Alias /playvds-widget /home/webserver/widget
Alias /playvds-donate /home/webserver/donate
Alias /playvds-launcher /home/webserver/launcher
Alias /playvds-phpmyadmin /home/webserver/phpmyadmin
Alias /playvds-net2ftp /home/webserver/net2ftp
</VirtualHost>
<Directory /home/webserver/www/blegends.ru>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/widget>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/donate>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/launcher>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/phpmyadmin>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /home/webserver/net2ftp>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

论坛位于/home/webserver/www/blegends.ru/

是apache在制造麻烦还是别的什么?我看到了conf文件没有发现任何问题。

编辑1:我删除了文件"all.conf“并开始工作。但我不明白为什么那个文件之前不允许工作,我的解决方案还好吗?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-09-18 18:56:22

好像你配置的不对。对于blegends.ru,您似乎有多个条目,在apache和网站conf中也有不同的位置。在虚拟主机标记中,您可以给出更多信息,如

代码语言:javascript
复制
<VirtualHost blegends.ru:80>

就像这样,并将_default_:80设置为默认服务。

检查您的站点是否已启用。若要启用它,请尝试cmd

代码语言:javascript
复制
sudo a2ensite yoursite.conf

重新启动apache服务。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/826632

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档