[NTLUG:Discuss] httpd.conf / all subdomains

Joey joey at viewsourcecode.com
Thu May 17 15:35:23 CDT 2001


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 www.*.name.com
or
ServerAlias *.name.com

to 

#####new virtual host
<VirtualHost 1.1.1.1>
ServerAdmin support at name.com
DocumentRoot /export/home/jw15851/public_html
User jw15851
Group igsvirt
ServerName www.name.com
ServerAlias www.name.net
ServerAlias 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 www.name.com right?
thank you in advance,

Joey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ntlug.org/pipermail/discuss/attachments/20010517/85e93091/attachment.html


More information about the Discuss mailing list