-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#105: Use named arguments in vhost templates
- Loading branch information
Steven Rombauts
committed
Jun 26, 2019
1 parent
3af5126
commit e71a8cf
Showing
5 changed files
with
75 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<VirtualHost *:%3$s> | ||
ServerAdmin webmaster@%1$s.test | ||
DocumentRoot %2$s | ||
ServerName %1$s.test | ||
ServerAlias www.%1$s.test %1$s.dev www.%1$s.dev | ||
<VirtualHost *:%http_port%> | ||
ServerAdmin webmaster@%site%.test | ||
DocumentRoot %root% | ||
ServerName %site%.test | ||
ServerAlias www.%site%.test %site%.dev www.%site%.dev | ||
|
||
<Directory %2$s> | ||
<Directory %root%> | ||
Options Indexes FollowSymLinks | ||
AllowOverride All | ||
Require all granted | ||
</Directory> | ||
|
||
ErrorLog /var/log/apache2/%1$s.test-error_log | ||
CustomLog /var/log/apache2/%1$s.test-access_log common | ||
ErrorLog /var/log/apache2/%site%.test-error_log | ||
CustomLog /var/log/apache2/%site%.test-access_log common | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<IfModule mod_ssl.c> | ||
<VirtualHost *:%3$s> | ||
ServerAdmin webmaster@%1$s.test | ||
DocumentRoot %2$s | ||
ServerName %1$s.test | ||
ServerAlias www.%1$s.test %1$s.dev www.%1$s.dev | ||
<VirtualHost *:%ssl_port%> | ||
ServerAdmin webmaster@%site%.test | ||
DocumentRoot %root% | ||
ServerName %site%.test | ||
ServerAlias www.%site%.test %site%.dev www.%site%.dev | ||
|
||
<Directory %2$s> | ||
<Directory %root%> | ||
Options Indexes FollowSymLinks | ||
AllowOverride All | ||
Require all granted | ||
</Directory> | ||
|
||
SSLEngine on | ||
SSLCertificateFile %4$s | ||
SSLCertificateKeyFile %5$s | ||
SSLCertificateFile %certificate% | ||
SSLCertificateKeyFile %key% | ||
|
||
ErrorLog /var/log/apache2/%1$s.test-error_log | ||
CustomLog /var/log/apache2/%1$s.test-access_log common | ||
ErrorLog /var/log/apache2/%site%.test-error_log | ||
CustomLog /var/log/apache2/%site%.test-access_log common | ||
</VirtualHost> | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters