"a2nsite""a2dissite"无效
回声:
错误:网站XXXXXX不存在!
我发誓它存在于sites-available文件夹中.
键入a2ensite并双击Tab按钮后,它显示/root目录.
a2en/dissite脚本一定有问题.
我怎样才能恢复工作?
=====================以下是错误日志的最后几行:
[Sun Aug 04 22:59:31.406192 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 22:59:31.406433 2013] [core:notice] [pid 5378:tid 140459282536256] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 04 23:09:44.648984 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00491: caught SIGTERM, shutting down
[Sun Aug 04 23:09:46.001182 2013] [mpm_event:notice] [pid 5692:tid 139671144335168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 23:09:46.001490 2013] [core:notice] [pid 5692:tid 139671144335168] AH00094: Command line: '/usr/sbin/apache2'
Run Code Online (Sandbox Code Playgroud)
小智 34
将站点配置文件重命名/etc/apache2/sites-available/*为*.confhelp.
例如,在启用站点时dummy.com,必须命名配置文件dummy.com.conf.
joh*_*odo 14
另一个解决方案是/etc/apache2/apache2.conf从以下位置更改此行:
IncludeOptional sites-enabled/*.conf
Run Code Online (Sandbox Code Playgroud)
至:
IncludeOptional sites-enabled/*
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
30475 次 |
| 最近记录: |