在v-host配置文件中,添加以下代码
<VirtualHost *:80>
ServerName XXX
ServerAlias XXX
DocumentRoot "${INSTALL_DIR}/XXX
<Directory "${INSTALL_DIR}/XXX/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
#以下配置就是将8080端口映射到80
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} ^8080$
RewriteRule ^ http://%{HTTP_HOST}:80%{REQUEST_URI} [P]
</Directory>
</VirtualHost>