Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 8ceb060

Browse files
author
Wonderfall
committed
mediawiki: update nginx.conf
1 parent 6219ac0 commit 8ceb060

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mediawiki/rootfs/nginx/sites-enabled/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ server {
2424
}
2525

2626
location @rewrite {
27-
rewrite ^/(.*)$ /index.php?title=$1&$args;
27+
rewrite ^/(.*)$ /index.php;
2828
}
2929

3030
location ^~ /maintenance/ {
@@ -38,5 +38,6 @@ server {
3838
fastcgi_pass unix:/php/run/php-fpm.sock;
3939
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
4040
include /nginx/conf/fastcgi_params;
41+
try_files $uri @rewrite;
4142
}
4243
}

0 commit comments

Comments
 (0)