Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

apache rewrite apex path

rambo81Sep 7 2015 — edited Sep 8 2015

Hi

Using apache I am trying to rewrite the Apex path from http://oldservername.co.uk:8001/apexf?p=150 to http://apps.newservername/applicationname leaving out the 150 and rewriting the path.

I am using the following below but I cannot get this working properly, and would appreciate any insight into where I am going wrong?

Define SRVROOT "/Apache24"

ServerRoot "${SRVROOT}"

Listen 80

RewriteEngine On

RewriteRule ^/(applicationname)$  http://apps.newservername.co.uk/$1/f?p=150:LOGIN:0 [R=302,NC,L]

  ProxyRequests Off

        <Proxy *>

                Order deny,allow

                Deny from all

                Allow from all

        </Proxy>

        <Location /applicationname>

                ExpiresActive On

                ExpiresDefault "now"

                RewriteEngine on

                # Allow access if the app is 150

                RewriteCond %{QUERY_STRING} ^p=(.*)

                RewriteCond %{QUERY_STRING} !^p=150.*

                # If the above rules match, then deny access

                RewriteRule /.* [F]

                SetEnv force-proxy-request-1.0 1

                ProxyPass http://oldservername.co.uk:8001/apext6

                ProxyPassReverse http://oldservername.co.uk:8001/apext6

        </Location>

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2015
Added on Sep 7 2015
4 comments
962 views