[olug] Virtual Domains on Apache
Chris Gotcu
gotcu at home.com
Wed Jun 13 04:41:42 UTC 2001
Just a few additional notes from experience:
- if you do include log files/directories and cgi directories in the VirtualHost
definition, make sure to create those directories first and then (re)start
httpd/apachectl. You will get some unidentified error if those directories
(as well as the root directory for the domain) are not created ahead of time.
- commenting out information of the default directory in the httpd.conf file
renders less errors.
- this is the format i have (with modified data, of course)
<VirtualHost 1.2.3.4>
ServerAdmin webmaster at domain.com
DocumentRoot /www/directory/domain
ServerName name.domain.com
ErrorLog /www/directory/domain/logs/error.log
CustomLog /www/directory/domain/logs/access.log common
ScriptAlias /cgi-bin/ "/www/directory/domain/cgi/"
<Directory "/www/directory/domain/cgi/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
> # If you want to use name-based virtual hosts you need to define at
> # least one IP address (and port number) for them.
> #
> #NameVirtualHost 12.34.56.78:80
> #NameVirtualHost 12.34.56.78
^^ the NameVirtualHost lines go before the <VirtualHost> definitions
---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net
More information about the OLUG
mailing list