Re: RewriteRule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You rewrite based on the URI not the URL. Read the mod_rewrite docs and examples.

On Jan 19, 2012 5:37 AM, "Roman Gelfand" <rgelfand2@xxxxxxxxx> wrote:
I am trying to proxy off requests from wan url
https://external.mydomain.com/sipxconfig to an internal site
https://internal.mydomain.com:8443/sipxconfig.

This what I attempted to do

RewriteRule ^https://external.mydomain.com:8443$
https://external.mydomain.com/ [R]
RewriteRule ^https://internal.mydomain.com:8443$
https://external.mydomain.com/ [R]
RewriteRule /sipxconfig$ https://external.mydomain.com/sipxconfig/ [R]
 <Location /sipxconfig/>
 ProxyPass https://internal.mydomain.com:8443/sipxconfig/
 ProxyPassReverse https://internal.mydomain.com:8443/sipxconfig/
 </location>

There appears to be one more outstanding problem.  That is, the tag
below doesn't get rewritten.


<base href="" href="https://internal.mydomain.com:8443/sipxconfig/" target="_blank">https://internal.mydomain.com:8443/sipxconfig/" /><!--[if
IE]></base><![endif]-->

Any help is appreciated.

Thanks in advance

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux