Skip to content

Instantly share code, notes, and snippets.

@ziyahan
Created August 14, 2015 11:40
Show Gist options
  • Save ziyahan/0c9789f625e6adec08a8 to your computer and use it in GitHub Desktop.
Save ziyahan/0c9789f625e6adec08a8 to your computer and use it in GitHub Desktop.
<Directory /var/www/pool/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# AuthType Basic
# AuthName "Restricted"
# AuthBasicProvider file
# AuthUserFile /home/ubuntu/users
# Require user karirotest
</Directory>
<VirtualHost *:443>
ServerName cvhavuzu.net
ServerAlias www.cvhavuzu.net
DocumentRoot /var/www/pool/public
ErrorLog ${APACHE_LOG_DIR}/cvhavuzu_error.log
CustomLog ${APACHE_LOG_DIR}/cvhavuzu_access.log combined
SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/myserver.key
SSLCertificateFile /etc/ssl/ssl.crt/www_cvhavuzu_net.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/www_cvhavuzu_net.ca-bundle
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName cvhavuzu.net
ServerAlias www.cvhavuzu.net
DocumentRoot /var/www/pool/public
ErrorLog ${APACHE_LOG_DIR}/cvhavuzu_error.log
CustomLog ${APACHE_LOG_DIR}/cvhavuzu_access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment