1. 다중 사이트 구성:
1. httpd.conf를 열고 가상 디렉터리를 활성화하도록 설정합니다.
<Directory /> options FollowSymLinks AllowOverride all Allow from all #Require all denied </Directory>
2. 🎜>
Include conf/extra/httpd-vhosts.conf,
<pre name="code" class="html"><VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/var/www/cloud_whirlpool_china" ServerName cloud.whirlpool-china.com ServerAlias cloud.whirlpool-china.com ErrorLog "logs/cloud.whirlpool-china.com-error_log" CustomLog "logs/cloud.whirlpool-china.com-access_log" common </VirtualHost>
<Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
/bin/systemctl start httpd.service #启动 /bin/systemctl restart httpd.service #重启 /bin/systemctl status httpd.service #查看状态