Re: Rewrite Rule Help (again)

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

 



So the RewriteRule ^/$ http://192.168.123.2 [L] 
Sends all traffic to 192.168.123.2. I just need http://update.domain.com traffic to go to the 192.168.123.2 host.



On Jul 7, 2012, at 11:50 AM, Chris Arnold <carnold@xxxxxxxxxxxxxxxxxxx> wrote:

On Jul 7, 2012, at 10:54 AM, Chris Arnold <carnold@xxxxxxxxxxxxxxxxxxx> wrote:

That's the same as if it ended with a slash, and matched by ^/$

Ok my host file has RewriteRule ^/$ http://update.domain.com [L]
When I goto http://update.domain.com using safari, I receive:

Response Error.

Technical description:
502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.

This was because the webserver was not running. Reboot and it is running now. Now when going to http://update.domain.com I get the default site from the webserver. I have tried RewriteRule ^/$ http://host name [L] and RewriteRule ^/$ http://ip.address [L]
Both send me to the default site. Any ideas?

So, a quick revisit: we have a web server answering for http traffic. We have a different server that uses a program that HAS to use http (80) port. I am trying to get the webserver to send http://update.domain.com traffic only, to a different server on the LAN. Any ideas?


[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