Apache 虚拟主机配置
代码如下:
<VirtualHost *:80> ServerAdmin muyu.jumoshen.cn DocumentRoot "/home/testCode/" ServerName muyu.jumoshen.cn ErrorLog "/data/wwwlogs/error_apache.log" CustomLog "/data/wwwlogs/access_apache.log" common <Directory "/home/testCode/"> SetOutputFilter DEFLATE Options FollowSymLinks ExecCGI Require all granted AllowOverride All Order allow,deny Allow from all DirectoryIndex index.html index.php </Directory> <Location /server-status> SetHandler server-status Order Deny,Allow Deny from all Allow from all </Location> </VirtualHost>