diff --git a/etc/snippets_subdomain.conf b/etc/snippets_subdomain.conf index 80256a6..782e6a0 100644 --- a/etc/snippets_subdomain.conf +++ b/etc/snippets_subdomain.conf @@ -12,9 +12,6 @@ client_max_body_size 32m; if ($dc_blog_id = '') { set $dc_blog_id default; } -if ($dc_blog_id = 'stable') { - set $dc_blog_id default; -} # Blogs public paths location ~ /public { diff --git a/www/servers/subdomain.conf b/www/servers/subdomain.conf index 3293562..5f04b31 100644 --- a/www/servers/subdomain.conf +++ b/www/servers/subdomain.conf @@ -9,6 +9,11 @@ server { # - ... server_name ~^(?\w*?)?\.?(\w+\.\w+)$; + # Redirect a particular subdomain + if ($dc_blog_id = 'blog') { + set $dc_blog_id default; + } + # To use custom configuration only use # include /etc/nginx/snippets/snippets_common.conf; # Adapt to your needs here the content of