Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hallison
Last active February 6, 2020 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hallison/a6a879cb7590b1dcdc8a22c2280c680a to your computer and use it in GitHub Desktop.
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
# 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 hallisonbatista@gmail.com
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