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
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
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
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?
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),
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,
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
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
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
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
10 matches
Mail list logo