Created
October 8, 2015 21:00
-
-
Save bkozora/6d7a1d17de62bec0557d to your computer and use it in GitHub Desktop.
Apache - Wildcard Subdomains
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
DocumentRoot "/var/www/vhosts" | |
<Directory "/var/www/vhosts"> | |
Options Indexes FollowSymLinks ExecCGI | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
#Require all granted | |
</Directory> | |
<VirtualHost *:80> | |
VirtualDocumentRoot /var/www/vhosts/%1/www/ | |
ServerAlias *.exampledomain.com | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment