fix custom subdomain
This commit is contained in:
parent
03e0139082
commit
b916743cc7
2 changed files with 5 additions and 3 deletions
|
@ -12,9 +12,6 @@ client_max_body_size 32m;
|
||||||
if ($dc_blog_id = '') {
|
if ($dc_blog_id = '') {
|
||||||
set $dc_blog_id default;
|
set $dc_blog_id default;
|
||||||
}
|
}
|
||||||
if ($dc_blog_id = 'stable') {
|
|
||||||
set $dc_blog_id default;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Blogs public paths
|
# Blogs public paths
|
||||||
location ~ /public {
|
location ~ /public {
|
||||||
|
|
|
@ -9,6 +9,11 @@ server {
|
||||||
# - ...
|
# - ...
|
||||||
server_name ~^(?<dc_blog_id>\w*?)?\.?(\w+\.\w+)$;
|
server_name ~^(?<dc_blog_id>\w*?)?\.?(\w+\.\w+)$;
|
||||||
|
|
||||||
|
# Redirect a particular subdomain
|
||||||
|
if ($dc_blog_id = 'blog') {
|
||||||
|
set $dc_blog_id default;
|
||||||
|
}
|
||||||
|
|
||||||
# To use custom configuration only use
|
# To use custom configuration only use
|
||||||
# include /etc/nginx/snippets/snippets_common.conf;
|
# include /etc/nginx/snippets/snippets_common.conf;
|
||||||
# Adapt to your needs here the content of
|
# Adapt to your needs here the content of
|
||||||
|
|
Loading…
Reference in a new issue