Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.