Re: [users@httpd] Reverse Proxy, Spelling And Rewrite.

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

 



Ok cool I have it working as follows. Is there anything worng with this?

#Setup VH for SSL
<VirtualHost *:443>

   SSLEngine on
   ProxyRequests off
   RewriteEngine on

   # Handle trailing slash
   RewriteRule ^/somewhere$ /somewhere/ [NC,R]

   # Create proxy request
RewriteRule ^/somewhere/(.*)$ http://internalserver.com/somwhere/$1 [NC,P]
   ProxyPassReverese /somewhere/ http://internalserver.com/somwhere/

   # Rest of SSL stuff here...

</VirtualHost>

Thanks

Anastasios Angelidis wrote:

Thanks

So to be clear...

http://frontserver.com/somewhere or http://frontserver.com/SOMEWHERE or http://frontserver.com/SomeWhere
to proxy to
http://backserver.com/somewhere


Joshua Slive wrote:

On 4/18/05, Anastasios Angelidis <voodoo@xxxxxxxxxxxx> wrote:
Well that sux because with Pound /SOMEWHERE , /somewhere , /someWHERE
etc... Is all the same.


If it is a part of the URL that is resolved at the proxy, then you can
do that -- as I explained earlier, use the NC and P options of
RewriteRule.  If it is part of the URL resolved on the back-end, then
it is impossible.

As for trailing / can you point me to the right doc? Thanks


There are some examples in mod_rewrite's RewriteGuide.

Joshua.

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




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




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