<VirtualHost *:80>
ServerAdmin cc@jb200.com
ServerName jb200.com
Server
alias www.jb200.com
DocumentRoot /home/www/jb200.com/WebRoot
<Directory /home/www/jb200.com/WebRoot>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ProxyPreserveHost On
ProxyRequests Off
#排除不需要后端应用处理的目录,由apache接管
#一般用来排除掉静态文件
#这里访问 http://jb200.com/res/img/aa.png直接由apache处理
ProxyPass /res/ !
ProxyPass / http://localhost:8080/
#ProxyPassReverse用于隐藏后端
域名
#这里localhost就不会显示到浏览器地址栏,保持域名jb200.com
ProxyPassReverse / http://localhost:8080/
ErrorLog /var/log/apache2/jb200.com.log
CustomLog /var/log/apache2/jb200.com.custom.log common
</VirtualHost>