Re: Rewrite Rule Help

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

 



> Could yo ube more specific? Is the web application configured with /
> as base URL or with /portal/ as base URL? Do you want to hide the
> "/portal" path for your users, of for the web application?

Maybe my proxy configuration will give you more of an idea.  The site
has a custom port and /portal path, both of which we're trying to hide
through the proxy.  The RewriteRule was necessary because there's
references to absolutely paths in some of the code.

  ProxyPass / http://remotehost:8080/portal/
  ProxyPassReverse / http://removehost:8080/portal/

>> RewriteEngine On
>> RewriteCond  %{REQUEST_URI}  ^/portal/(.*)
>> RewriteRule  ^/portal/(.*)   /$1   [R]
>
> The rewriteCond is superfluous. The rewriterule will only match urls
> starting with /portal...

Ok.  I was under the impression I had to match a RewriteCond before
the RewriteRule would be called.

Thanks,
Scott

---------------------------------------------------------------------
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