httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anastasios Angelidis <voo...@videotron.ca>
Subject Re: [users@httpd] Reverse Proxy, Spelling And Rewrite.
Date Mon, 18 Apr 2005 20:32:37 GMT
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@videotron.ca> 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@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>  
>>
>
>
> ---------------------------------------------------------------------
> 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
>
>


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