NameVirtualHost 12.34.56.78 # your ip address
ServerName yourname1
DocumentRoot yourpath1
ServerName yourname2
DocumentRoot yourpath2
If you want to use 443
NameVirtualHost 12.34.56.78:80 # your ip address
NameVirtualHost 12.34.56.78:443 # your ip address
ServerName yourname1
DocumentRoot yourpath1
ServerName yourname1
DocumentRoot yourpath1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14883374/viewspace-414987/ ,如需转载,请注明出处,否则将追究法律责任。