Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # get the server name from the Host: header
- UseCanonicalName Off
- # this log format can be split per-virtual-host based on the first field
- LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
- CustomLog logs/access_log vcommon
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- ServerName domain.com
- ServerAlias www.domain.com domain.com
- VirtualDocumentRoot /var/www/%-2.0.%-1/web
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel debug
- ErrorLog /var/log/apache2/vhosts-error.log
- CustomLog /var/log/apache2/vhosts-access.log combined
- ServerSignature On
- </VirtualHost>
- <VirtualHost *:80>
- ServerName domain.com
- ServerAlias *.domain.com
- VirtualDocumentRoot /var/www/%-2.0.%-1/subdomains/%-3
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement