One public IP for different contexts via apache rewrite

<VirtualHost *:82>

    #ServerName www.example.com

    #ServerAlias example.com

    #ServerAdmin [email protected]

 

    RewriteEngine On

    RewriteRule ^/aContext(.*)$ http://%{SERVER_ADDR}:8080/bpmApprovalMobile$1 [P,L]

    RewriteRule ^/bContext(.*)$ http://%{SERVER_ADDR}:82/cContext$1 [P,L]

    RewriteRule ^/cContext(.*)$ http://www.stefli.com/$1 [P,L]
</VirtualHost>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章