Created
November 15, 2014 09:42
-
-
Save natp0ng/3551a0442c291b8917df to your computer and use it in GitHub Desktop.
Nginx wildcard configuration
This file contains hidden or 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
# *.example.com | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name ~^(?<subdomain>.+)\.example\.com$; | |
access_log /srv/web/example.com/logs/nginx_access.log vhost_combined; | |
error_log /srv/web/example.com/logs/nginx_error.log; | |
root /srv/web/example.com/subdomains/$subdomain/htdocs; | |
index index.php index.html index.htm; | |
include global/restrictions.conf; | |
include global/php.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment