diff --git a/common/.website.conf.swp b/common/.website.conf.swp deleted file mode 100644 index 1d13490..0000000 Binary files a/common/.website.conf.swp and /dev/null differ diff --git a/common/website.conf b/common/website.conf index d674726..bc2c284 100644 --- a/common/website.conf +++ b/common/website.conf @@ -35,13 +35,12 @@ location ~ (\.cgi|\.py|\.sh|\.pl|\.lua|\/cgi-bin)$ { # Main location / { - try_files $uri /$lang$uri /en$uri =404; -# if ( -d /var/www/website/$lang) { -# rewrite .* /$lang$uri; -# } -# if ( !-d /var/www/website/$lang) { -# rewrite .* /en$uri; -# } + if ( -d /var/www/website/$lang) { + rewrite .* /$lang$uri; + } + if ( !-d /var/www/website/$lang) { + rewrite .* /en$uri; + } } error_page 403 /en/errors/403;