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>

你可能感兴趣的:(One public IP for different contexts via apache rewrite)