httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] RewriteRule
Date Wed, 18 Jan 2012 21:13:31 GMT
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@gmail.com> 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="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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message