0
如何從地址欄中隱藏端口8080? 當我打電話給我的sub.domain.com我什麼都沒有,但是當我打電話給我的sub.domain.com:8008我得到的應用程序! 我使用的Apache2和JBoss 7如何隱藏端口8080?
感謝
<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>
它是默認端口,當嘗試訪問url時不帶端口號,它會自動取端口號80 – Ramaraj
Apache使用此端口 – user3764526