Re: [users@httpd] RewriteRule question

2011-08-25 Thread Igor Cicimov
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 "/"

[users@httpd] RewriteRule question

2011-08-25 Thread Denys
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

Re: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-07-07 Thread Cameron Beattie
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

Re: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-07-04 Thread Krist van Besien
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

RE: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-06-29 Thread Boyle Owen
> -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

Re: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-06-28 Thread Cameron Beattie
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

RE: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-06-28 Thread Boyle Owen
> -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

Re: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-06-28 Thread Cameron Beattie
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

RE: [users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-06-27 Thread Boyle Owen
> -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

[users@httpd] RewriteRule question: forward requests from one Apache server to another

2005-06-27 Thread Cameron Beattie
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

Re: [users@httpd] RewriteRule question

2005-06-03 Thread Noah
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

Re: [users@httpd] RewriteRule question

2005-05-31 Thread Gary W. Smith
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

Re: [users@httpd] RewriteRule question

2005-05-31 Thread Arne Heizmann
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

[users@httpd] RewriteRule question

2005-05-31 Thread Gary W. Smith
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