Last active
February 6, 2020 20:17
-
-
Save hallison/a6a879cb7590b1dcdc8a22c2280c680a to your computer and use it in GitHub Desktop.
Deploys para vários sites usando o nome de domínio no nome do diretório
This file contains hidden or 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
# From https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html | |
# and https://httpd.apache.org/docs/2.4/vhosts/mass.html. | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon | |
<Directory "/home/deploy/sites"> | |
Options FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> | |
# Configuration extracted from HTTPD documents. For more information, see | |
# https://httpd.apache.org/docs/2.4/vhosts/mass.html | |
ServerAdmin [email protected] | |
LogLevel trace8 | |
CustomLog ${APACHE_LOG_DIR}/access.log vcommon | |
VirtualDocumentRoot "/var/www/sites/%0" | |
VirtualScriptAlias "/var/www/sites/%0/cgi-bin" | |
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment