时间:2023-02-11 13:51:01 | 来源:建站知识
时间:2023-02-11 13:51:01 来源:建站知识
如有两个域名,分别是http://hi-andy.com和http://hi-neo.com,需把这两个域名都绑定到ServerName 219.13.34.32:80
<VirtualHost *:80> ServerAdmin andy@hi-andy.com DocumentRoot /var/www/html/hi-andy/ ServerName hi-andy.com# ErrorLog logs/dummy-host.example.com-error_log# CustomLog logs/dummy-host.example.com-access_log common</VirtualHost><VirtualHost *:80> ServerAdmin neo@hi-neo.com DocumentRoot /var/www/html/hi-neo/ ServerName hi-neo.com# ErrorLog logs/dummy-host.example.com-error_log# CustomLog logs/dummy-host.example.com-access_log common</VirtualHost>
# 配置完成重启服务/etc/init.d/httpd restart
关键词: