httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Dubrouski" <serge...@gmail.com>
Subject Re: [users@httpd] Re:Re: [users@httpd] simple rewrite rule
Date Fri, 02 Feb 2007 22:22:06 GMT
On 2/2/07, arry@mail.orbitel.bg <arry@mail.orbitel.bg> wrote:
> On 2/2/07, arry@mail.orbitel.bg <arry@mail.orbitel.bg> wrote:
> >> Hi,
> >>
> >> I would like to have a path like /go/ after which the address to be proxied.
> >> This is the config:
> >>
> >> <Location /go/ >
> >>
> >>    SSLCipherSuite MEDIUM
> >>    SSLRequireSSL
> >>
> >>     AuthType Digest
> >>     AuthName "Restricted Area"
> >>     AuthDigestDomain /go/
> >>     AuthDigestProvider file
> >>     AuthUserFile /var/www/.digestpwd
> >>     Require valid-user
> >>
> >>    RewriteEngine on
> >>    RewriteRule ^(.*)  http://$1  [P,L]
>
> > RewriteRule ^/go/(.*) http://SERVER_NAME_SHOULD_BE_HERE/$1 [P,L]
>
> O.k. but i would like to poxy locations that are not on my server.

Them you need to say from what server you want to get proxied content.
>
> > What is the reason top put SSL options in Location tag?
>
> To heve sll traffic btwn client and the apache server. Isn't that right?

Just 2 those options aren't enough and they are in the wrong place.
Looks like you have to read Apache documentation for the beginning.

>
> >>
> >> </Location>
> >>
> >>
> >> but the rewrite rule does not work.
> >> I get an error /go/yahoo.com not found on this server.
> >>
> >> I would like when i type /myserver/go/yahoo.com to be connected to
> >> yahoo.com through myserver.
> >>
> >> thanks
>
>
> ---------------------------------------------------------------------
> 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