[NTLUG:Discuss] httpd.conf / all subdomains
MadHat
madhat at unspecific.com
Thu May 17 15:48:32 CDT 2001
depends on the version of apache, but you should be able to do that.
make sure to have the
NameVirtualHost 1.1.1.1
and you can do them all on one line, space separated like this
ServerAlias name.com <http://www.*.name.com>www.*.name.com *.name.com
see the apache docs at
http://httpd.apache.org/docs-2.0/vhosts/index.html
At 03:35 PM 5/17/2001 -0500, Joey wrote:
>I would like apache to allow all traffic for any subdomain, example
>html.name.com / c.name.com / perl.name.com all to point to the same
>virtual host.. dns is already pointing to the right IP, so to get this to
>happen would I just have to add another server alias to the virtual
>
>so by adding
>ServerAlias <http://www.*.name.com>www.*.name.com
>or
>ServerAlias *.name.com
>
>to
>
>#####new virtual host
><VirtualHost 1.1.1.1>
>ServerAdmin <mailto:support at name.com>support at name.com
>DocumentRoot /export/home/jw15851/public_html
>User jw15851
>Group igsvirt
>ServerName <http://www.name.com>www.name.com
>ServerAlias <http://www.name.net>www.name.net
>ServerAlias <http://www.name.org>www.name.org
>ErrorDocument 404 /error404.html
>UserDir disabled
><Directory /export/home/jw15851/public_html/restricted>
>AllowOverride AuthConfig
>Options Indexes
>AuthName "restricted files"
>AuthType Basic
>AuthUserFile /export/home/jw15851/public_html/auth/users
>AuthGroupFile /export/home/jw15851/public_html/auth/groups
>require valid-user
></Directory>
>ScriptAlias /cgi-bin/ /export/home/jw15851/public_html/cgi-bin/
>ScriptAlias /_vti_bin/_vti_adm/
>/export/home/jw15851/public_html/_vti_bin/_vti_adm/
>ScriptAlias /_vti_bin/_vti_aut/
>/export/home/jw15851/public_html/_vti_bin/_vti_aut/
>ScriptAlias /_vti_bin/ /export/home/jw15851/public_html/_vti_bin/
>ScriptAlias /restricted/logs/_vti_bin/_vti_adm/
>/export/home/jw15851/public_html/restricted/logs/_vti_bin/_vti_adm/
>ScriptAlias /restricted/logs/_vti_bin/_vti_aut/
>/export/home/jw15851/public_html/restricted/logs/_vti_bin/_vti_aut/
>ScriptAlias /restricted/logs/_vti_bin/
>/export/home/jw15851/public_html/restricted/logs/_vti_bin/
>ScriptAlias /restricted/stats/_vti_bin/_vti_adm/
>/export/home/jw15851/public_html/restricted/stats/_vti_bin/_vti_adm/
>ScriptAlias /restricted/stats/_vti_bin/_vti_aut/
>/export/home/jw15851/public_html/restricted/stats/_vti_bin/_vti_aut/
>ScriptAlias /restricted/stats/_vti_bin/
>/export/home/jw15851/public_html/restricted/stats/_vti_bin/
></VirtualHost>
>
>
>
>
>all subdomains would be pointed to <http://www.name.com>www.name.com right?
>thank you in advance,
>
>Joey
--
MadHat at unspecific.com
More information about the Discuss
mailing list