RewriteRule /example/ http://example.com [P,L]
On Thu, Aug 25, 2011 at 8:19 PM, Denys wrote:
>
> Hello -
>
> I need to create some kind of proxy using Apache Server.
>
> I tried to use something like
> ProxyPass /test1/test2/ http://example.com but had no success because
> ProxyPass require "/"
Hello -
I need to create some kind of proxy using Apache Server.
I tried to use something like
ProxyPass /test1/test2/ http://example.com but had no success because
ProxyPass require "/" suffix after the second URL. In my case adding "/" is
not working because my URL ends with example.dll and no
Thanks for the tip. I prefer that way. The final config is:
Server 1
NameVirtualHost *:80
ServerName server.mydomain.com
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) http://60.234.nnn.nn:8008/$1 [L,P]
ServerName otherserver.mydomain.com
Pro
On 6/29/05, Cameron Beattie <[EMAIL PROTECTED]> wrote:
> For those interested, I ended up using different ports to achieve the
> desired result. There may be a better way but this works for me:
Good that it works now, but your original setup would have worked had you added:
ProxyPreserveHost On
> -Original Message-
> From: Cameron Beattie [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 29. Juni 2005 07:17
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] RewriteRule question: forward requests from
> one Apache server to another
>
>
> For those interested, I ended up usin
For those interested, I ended up using different ports to achieve the
desired result. There may be a better way but this works for me:
Server 1
ServerName server.mydomain.com
RewriteEngine On
RewriteRule ^/(.*) http://60.234.nnn.nn:8008/$1 [L,P]
ServerName otherserv
> -Original Message-
> From: Cameron Beattie [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 28. Juni 2005 10:15
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] RewriteRule question: forward requests from
> one Apache server to another
>
>
> Ok so I checked httpd.conf on server
Ok so I checked httpd.conf on server 1 and I stupidly hadn't included
RewriteEngine On. I've done that and now I get served up a site from server
2, but it's the wrong site.
I have two virtual hosts set up as follows:
Server 1
NameVirtualHost *:80
ServerName server.mydomain.com
> -Original Message-
> From: Cameron Beattie [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 28. Juni 2005 04:50
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] RewriteRule question: forward requests from one
> Apache server to another
>
>
> I am trying to set up the following confi
I am trying to set up the following configuration:
1. Apache server with public IP address
2. Apache server behind NAT with no public IP address
3. Router with public IP address with port forwarding set up for port 8008
to Apache server 2
4. Public DNS record server.mydomain.com resolves to IP a
On Tue, May 31, 2005 at 12:33:35PM -0700, Gary W. Smith wrote:
> I have also tried
>
> RewriteEngine on
> RewriteCond %{HTTP_REFERER} ^$
> RewriteCond %{HTTP_REFERER} !^http://(10\.20\.30\.40)/.*$ [NC]
> RewriteRule ^/restricted/.+ - [F]
>
> And
>
> RewriteEngine on
> RewriteCond %{HTTP_REFERE
I have also tried
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{HTTP_REFERER} !^http://(10\.20\.30\.40)/.*$ [NC]
RewriteRule ^/restricted/.+ - [F]
And
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(10\.20\.30\.40)/.*$ [NC]
RewriteRule ^/restricted/.+ - [F]
As well. I
Gary W. Smith wrote:
I have the following rule in place:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(10\.20\.30\.40)/.*$ [NC]
RewriteRule ^/restricted/.+ - [F]
So suppose I go in with an empty referrer. The first condition is false.
Therefore the ru
I have been trying to implement a restriction list on server by referrer
only. It doesn't seem to be working. I have a directory called restricted
that holds some PDF (as well as other) documents that I want to prevent
access to unless they have clicked the link on our site. Most of this is
for
14 matches
Mail list logo