Cname/Apache virtual hosts

From wiki.network-crawler.de
Jump to: navigation, search

cname = The name of the server without subdirectories


/etc/apache2/http.conf

Example:

-- snip --

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.network-crawler.de
ServerAlias network-crawler.de
DocumentRoot /srv/www/htdocs/creator
</VirtualHost>

<VirtualHost *:80>
ServerName wiki.network-crawler.de
DocumentRoot /srv/www/htdocs/creator
</VirtualHost>

<VirtualHost *:80>
ServerName blog.network-crawler.de
DocumentRoot /srv/www/htdocs/creator/blog
</VirtualHost>