Skip to content

Instantly share code, notes, and snippets.

@bluemanos
Last active August 29, 2015 14:18
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 bluemanos/4995f7d84f0e76d4f33c to your computer and use it in GitHub Desktop.
Save bluemanos/4995f7d84f0e76d4f33c to your computer and use it in GitHub Desktop.
Ubuntu Dev Wildcard
<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>
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