Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Created November 19, 2014 14:49
Show Gist options
  • Save todiadiyatmo/0f060e752a9b7c9eff0a to your computer and use it in GitHub Desktop.
Save todiadiyatmo/0f060e752a9b7c9eff0a to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName 7mcity.dev
ServerAlias *.7mcity.dev
DocumentRoot /home/todiadiyatmo/htdocs/7mcity/
RewriteEngine On
<Directory /home/todiadiyatmo/htdocs/7mcity/>
Options Indexes FollowSymLinks
AllowOverride Fileinfo Options All
Order allow,deny
Allow from all
</Directory>
LogLevel info
ErrorLog /var/log/apache2/7mcity.dev-error.log
CustomLog /var/log/apache2/7mcity.dev-access.log combined
RewriteEngine On
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin [email protected]
ServerName dev.7mcity.dev
ServerAlias dev.7mcity.dev
DocumentRoot /var/www/html/todi/7mcity/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
<Directory /var/www/html/todi/7mcity/>
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment