One public IP for different contexts via apache rewrite

    技术2022-05-20  41

    <VirtualHost *:82>

        #ServerName www.example.com

        #ServerAlias example.com

        #ServerAdmin webmaster@example.com

     

        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>


    最新回复(0)