Re: Global Vhost/Redirect

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

 



Is there a method to say:

Requested URI:
http://domain.com              Does nothing
http://sub.domain.com       Redirects to http://domain.com


It seems to me, if I used the Redirect Perm, it'd just loop around itself, no?

Scott.

Victor Trac wrote:
In your catchall vhost (first one), just have a:

Redirect permanent / http://main.uri.com

--Victor


On 5/18/07, Scott Wilcox <sc0tt@xxxxxxx> wrote:
hey folks.

I have various virtual hosts set up on apache, and currently, the first
<VirtualHost> handles all unreferenced domains. I'm looking at
implementing something to catch any unreferenced domains and actually
shoot a rewrite at them to point them to my actual main URI.

Is this possible, and what would be the best/most efficient way to do it?

Thanks in advance,

Scott.

---------------------------------------------------------------------
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




--
http://www.victortrac.com

No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.3/809 - Release Date: 17/05/2007 17:18

[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