NameVirtualHost *:80
< VirtualHost *:80>
ServerName
DocumentRoot "C:/web"
/// ServerName blog.lrenwang.com #默認域名
ServerAlias abc.lrenwang.com #多個不同域名用空格隔開
< /VirtualHost>
注:配置文件一定要有這一行
NameVirtualHost *:80,如果只有<VirtualHost》結(jié)點,則綁定的域名不起作用,仍然是以IP為基礎(chǔ)訪問的。
NameVirtualHost *:80
< VirtualHost *:80>
ServerName 76.164.231.214
ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/
DirectoryIndex index.jsp
< /VirtualHost>
< VirtualHost *:80>
ServerName jerseylimited.com
#ProxyPass / :82
#ProxyPassReverse / :82
ProxyPass / ajp://127.0.0.1:8209/
ProxyPassReverse / ajp://127.0.0.1:8209/
< /VirtualHost>