如何在地址栏中隐藏端口8080?当我调用我的sub.domain.com时,我什么也得不到,但是当我调用我的sub.domain.com:8008时,我得到了应用程序!我使用的是apache2和jboss 7
谢谢
<virtualhost *:80>
ServerName sub.domain.com
ServerAlias sub.domain.com
<Location /myapp>
Order deny,allow
Allow from all
Options -Indexes FollowSymLinks
ProxyPass http://127.0.0.1:8080/myapp
ProxyPassReverse http://127.0.0.1:8080/myapp
</Location>
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>发布于 2015-05-05 17:29:59
只需将此配置复制并传递到您的站点即可
<VirtualHost *:80>
ProxyPreserveHost On
# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example:
ProxyPass / http://0.0.0.0:8080/
ProxyPassReverse / http://0.0.0.0:8080/
ServerName localhost
</VirtualHost>发布于 2014-07-08 19:00:02
您可以从地址栏隐藏端口,尝试使用端口80启动服务器,您可以更改stanalone.xml文件
<socket-binding name="http" port="80"/>https://stackoverflow.com/questions/24614565
复制相似问题