Last active
August 29, 2015 14:18
-
-
Save bluemanos/4995f7d84f0e76d4f33c to your computer and use it in GitHub Desktop.
Ubuntu Dev Wildcard
This file contains 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
<VirtualHost *:80> | |
ServerAdmin szymon.bluma@polcode.net | |
DocumentRoot /home/szymon/webs/wildcard | |
ServerName wwww.local.host | |
ServerAlias *.*.local.host | |
VirtualDocumentRoot /home/szymon/webs/wildcard/%2/source/public/ | |
<Directory "/home/szymon/webs/wildcard"> | |
Options All | |
AllowOverride All | |
Require all granted | |
</Directory> | |
ErrorLog /var/log/apache2/local.host-error_log | |
CustomLog /var/log/apache2/local.host-access_log common | |
</VirtualHost> | |
# https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 | |
<VirtualHost *:443> | |
ServerAdmin szymon.bluma@polcode.net | |
DocumentRoot /home/szymon/webs/wildcard | |
ServerName wwww.local.host | |
ServerAlias *.*.local.host | |
VirtualDocumentRoot /home/szymon/webs/wildcard/%2/source/public/ | |
<Directory "/home/szymon/webs/wildcard"> | |
Options All | |
AllowOverride All | |
Require all granted | |
</Directory> | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl/apache.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/apache.key | |
ErrorLog /var/log/apache2/local.host-error_log | |
CustomLog /var/log/apache2/local.host-access_log common | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin szymon.bluma@polcode.net | |
DocumentRoot /home/szymon/webs/wildcard | |
ServerName www.local.host | |
ServerAlias *.local.host | |
VirtualDocumentRoot /home/szymon/webs/wildcard/%1/source/public/ | |
<Directory "/home/szymon/webs/wildcard"> | |
Options All | |
AllowOverride All | |
Require all granted | |
</Directory> | |
ErrorLog /var/log/apache2/local.host-error_log | |
CustomLog /var/log/apache2/local.host-access_log common | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerAdmin szymon.bluma@polcode.net | |
DocumentRoot /home/szymon/webs/wildcard | |
ServerName www.local.host | |
ServerAlias *.local.host | |
VirtualDocumentRoot /home/szymon/webs/wildcard/%1/source/public/ | |
<Directory "/home/szymon/webs/wildcard"> | |
Options All | |
AllowOverride All | |
Require all granted | |
</Directory> | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl/apache.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/apache.key | |
ErrorLog /var/log/apache2/local.host-error_log | |
CustomLog /var/log/apache2/local.host-access_log common | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin szymon.bluma@gmail.com | |
DocumentRoot /home/szymon/webs/priv.host/ | |
ServerName www.local-sf2.host | |
ServerAlias *.local-sf2.host | |
VirtualDocumentRoot /home/szymon/webs/wildcard/%1/source/web | |
<Directory "/home/szymon/webs/wildcard"> | |
Options All | |
AllowOverride All | |
Require all granted | |
</Directory> | |
ErrorLog /var/log/apache2/local-sf2.host-error_log | |
CustomLog /var/log/apache2/local-sf2.host-access_log common | |
</VirtualHost> |
This file contains 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
address=/local.host/127.0.0.1 | |
address=/local-sf2.host/127.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment