前面测试了下,恢复到第一个网站做好的快照,apache服务重启正常。
当添加第二个网站后,重启apache服务就会报错,把网站删除也会报错。
网站的配置文件如下:
- <VirtualHost *:8022>
- ServerAdmin webmaster@example.com
- DocumentRoot "/www/wwwroot/192.168.10.15"
- ServerName 476a93fe.192.168.10.15
- ServerAlias 192.168.10.15
- errorDocument 404 /404.html
- ErrorLog "/www/wwwlogs/192.168.10.15-error_log"
- CustomLog "/www/wwwlogs/192.168.10.15-access_log" combined
-
- #DENY FILES
- <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
- Order allow,deny
- Deny from all
- </Files>
-
- #PHP
- <FilesMatch \.php$>
- SetHandler "proxy:unix:/tmp/php-cgi-72.sock|fcgi://localhost"
- </FilesMatch>
-
- #PATH
- <Directory "/www/wwwroot/192.168.10.15">
- SetOutputFilter DEFLATE
- Options FollowSymLinks
- AllowOverride All
- Require all granted
- DirectoryIndex index.php index.html index.htm default.php default.html default.htm
- </Directory>
- </VirtualHost>
复制代码 |