1. Multi-Site-Konfiguration:
1. Öffnen Sie httpd.conf und aktivieren Sie das virtuelle Verzeichnis:
<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 #查看状态