SHOW:
|
|
- or go back to the newest paste.
1 | # get the server name from the Host: header | |
2 | UseCanonicalName Off | |
3 | ||
4 | # this log format can be split per-virtual-host based on the first field | |
5 | LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon | |
6 | CustomLog logs/access_log vcommon | |
7 | ||
8 | <VirtualHost *:80> | |
9 | ServerAdmin webmaster@localhost | |
10 | ServerName domain.com | |
11 | ServerAlias www.domain.com domain.com | |
12 | VirtualDocumentRoot /var/www/%-2.0.%-1/web | |
13 | ||
14 | # Possible values include: debug, info, notice, warn, error, crit, | |
15 | # alert, emerg. | |
16 | LogLevel debug | |
17 | ErrorLog /var/log/apache2/vhosts-error.log | |
18 | CustomLog /var/log/apache2/vhosts-access.log combined | |
19 | ||
20 | ServerSignature On | |
21 | </VirtualHost> | |
22 | <VirtualHost *:80> | |
23 | ServerName domain.com | |
24 | ServerAlias *.domain.com | |
25 | VirtualDocumentRoot /var/www/%-2.0.%-1/subdomains/%-3 | |
26 | </VirtualHost> |