diff --git a/common/.website.conf.swp b/common/.website.conf.swp new file mode 100644 index 0000000..1d13490 Binary files /dev/null and b/common/.website.conf.swp differ diff --git a/common/website.conf b/common/website.conf index 53208c2..d674726 100644 --- a/common/website.conf +++ b/common/website.conf @@ -17,7 +17,7 @@ error_log /var/log/nginx/error.log; # CGI location ~ \.php$ { - try_files $uri =404; + try_files $uri /$lang$uri /en$uri =404; #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini include snippets/fastcgi.conf; fastcgi_pass unix:/run/php/php8.0-fpm.sock; @@ -35,12 +35,13 @@ location ~ (\.cgi|\.py|\.sh|\.pl|\.lua|\/cgi-bin)$ { # Main location / { - if ( -d /var/www/website/$lang) { - rewrite .* /$lang$uri; - } - if ( !-d /var/www/website/$lang) { - rewrite .* /en$uri; - } + 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; +# } } error_page 403 /en/errors/403;