Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Victor Trac
In your catchall vhost (first one), just have a: Redirect permanent / http://main.uri.com --Victor On 5/18/07, Scott Wilcox [EMAIL PROTECTED] wrote: hey folks. I have various virtual hosts set up on apache, and currently, the first VirtualHost handles all unreferenced domains. I'm looking

[EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Scott Wilcox
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

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Scott Wilcox
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

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Joshua Slive
On 5/18/07, Scott Wilcox [EMAIL PROTECTED] wrote: 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?

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Scott Wilcox
Hey Joshua, I think I was a little ambiguous with what I said. It probably would of been better to explain it like this. If a VirtualHost is there for the requested URI, that is served. For any requested URI (http://test1.com, http://sub.domain.com, http://anything.anythingelse.anywhere.tld),

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Joshua Slive
On 5/18/07, Scott Wilcox [EMAIL PROTECTED] wrote: Hey Joshua, I think I was a little ambiguous with what I said. It probably would of been better to explain it like this. If a VirtualHost is there for the requested URI, that is served. For any requested URI (http://test1.com,

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Scott Wilcox
AH. I'm a retard. Thanks Joshua :) Joshua Slive wrote: On 5/18/07, Scott Wilcox [EMAIL PROTECTED] wrote: Hey Joshua, I think I was a little ambiguous with what I said. It probably would of been better to explain it like this. If a VirtualHost is there for the requested URI, that is

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Scott Wilcox
I took the mod_rewrite approach, and it works flawlessly. One question I have, is that I often access the server via its IP instead of the canonical name. Is there a way to make apache use both domain.tld and its IP as the server name? I've tried it with ServerAlias and it didn't make any

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Joshua Slive
On 5/18/07, Scott Wilcox [EMAIL PROTECTED] wrote: I took the mod_rewrite approach, and it works flawlessly. One question I have, is that I often access the server via its IP instead of the canonical name. Is there a way to make apache use both domain.tld and its IP as the server name? I've

Re: [EMAIL PROTECTED] Global Vhost/Redirect

2007-05-18 Thread Scott Wilcox
Ha, nevermind. Again, i'm a retard. All I needed to do was add a condition to the rewrite. Thanks again Joshua. Scott. Scott Wilcox wrote: I took the mod_rewrite approach, and it works flawlessly. One question I have, is that I often access the server via its IP instead of the canonical