Skip to content

Instantly share code, notes, and snippets.

@llipe
Last active May 27, 2018 05:08
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 llipe/a0bfc8be3057c3e01acaa0c0cb3b71da to your computer and use it in GitHub Desktop.
Save llipe/a0bfc8be3057c3e01acaa0c0cb3b71da to your computer and use it in GitHub Desktop.
Archivo de configuración apache tipo
<VirtualHost *:80>
ServerName dominio.cl
ServerAlias www.dominio.cl
DocumentRoot /home/ubuntu/public_html/dominio.cl/public
<Directory /home/ubuntu/public_html/dominio.cl/public/>
AllowOverride all
Require all granted
</Directory>
LogLevel warn
ErrorLog /home/ubuntu/public_html/dominio.cl/log/error.log
CustomLog /home/ubuntu/public_html/dominio.cl/log/access.log combined
</VirtualHost>
#####################
# SSL
#####################
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName dominio.cl
ServerAlias www.dominio.cl
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
DocumentRoot /home/ubuntu/public_html/dominio.cl/public
LogLevel warn
ErrorLog /home/ubuntu/public_html/dominio.cl/log/error-ssl.log
CustomLog /home/ubuntu/public_html/dominio.cl/log/access-ssl.log combined
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment