[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] wilcard sub-domains
- Subject: [cobalt-users] wilcard sub-domains
- From: "abcwebspace" <gr@xxxxxxxxxxxxxxx>
- Date: Sat May 13 00:41:38 2000
Hi
we have wildcard sub-domains set up for a few clients who then use php3 or
cgi to redirect to sub-directories/user pages etc - works fine.
But my question is to do with Apache rewrite on the raq - I have a customer
who wants to use apache mod_rewrite to do this - at present I put an entry
in /etc/named/records like this:
a * seventh-star-studios.com 64.65.31.174 24
the entry in httpd.conf is:
RewriteCond %{HTTP_HOST} !^64.65.31.174(:80)?$
RewriteCond %{HTTP_HOST}
!^www.seventh-star-studios.com(:80)?$
RewriteRule ^/(.*)
http://www.seventh-star-studios.com/$1 [L,R]
This sends all wildcards to the IP based virtual domain.
So, my customer wants to use rewrites to sort out what name was requested
and where it should go - maybe it's possible but isn't this possible just
using html headers?
Anyway, anyone who has experience of using this on a raq (because my next
concern is that the gui will overwirte everything next time services are
restarted) please get in touch
regards
Gary