Re: Redirect in httpd.conf

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

 



RedirectMatch ^/$    http://www.foo.com/directory

chris

Al Sparks wrote:
Here's a partial in my httpd.conf:
<VirtualHost *>
      ServerName www.foo.com
      ServerAdmin ars@xxxxxxxx

      ProxyRequests Off
      ProxyPass /directory http://server.bar.com:1234/directory/
      ProxyPassReverse /directory http://server.bar.com:1234/directory/
</VirtualHost>

Running Apache 1.3.x.  So I've got this to work so that when you type in:
   http://www.foo.com/directory
it reverse proxies to http://server.bar.com:1234/directory/

I'd also like to redirect so that if you try to go to:
   http://www.foo.com

it redirects to http://www.foo.com/directory.

How exactly would I do a redirect command?
    === Al



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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