clarkwinkelmann
I can use flarum that is installed in /tr/ folder but I can't enter to root domain by configuration of bottom.
location / {
try_files $uri $uri/ /tr/index.php?$query_string;
#try_files $uri $uri/ /en/index.php?$query_string;
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9003;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
When I put # to try_files for /tr/ and remove of /en/ I can't enter to /en/ folder insatallation.
#try_files $uri $uri/ /tr/index.php?$query_string;
try_files $uri $uri/ /en/index.php?$query_string;
I removed try_files from location / { }
and I added locations for both of them. But I can't use both of them.
Browser download a file has windows disk icon when I go to domain.com/en/ or domain.com/tr/ ( I have reinstalled to /tr/ and /en/ by remove /public/ instead of /en/forum/
location / {
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9003;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
location /en/ {
try_files $uri $uri/ /index.php?$query_string;
}
location /tr/ {
try_files $uri $uri/ /index.php?$query_string;
}