Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mod_macro-example.conf « sites-available « apache2 « multiple_vhosts « debian_apache_2_4 « testdata « tests « certbot-apache - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6a6579007f7cb73c682baef776a0da0ddb771b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<Macro VHost $name $domain>
<VirtualHost *:80>
    ServerName $domain
    ServerAlias www.$domain
    DocumentRoot /var/www/html

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
</Macro>
Use VHost macro1 test.com
Use VHost macro2 hostname.org
Use VHost macro3 apache.org

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet