Initial version of nginx parser roundtrip test

This commit is contained in:
Seth Schoen
2016-07-11 13:58:21 -07:00
parent 9431874c72
commit b48ddac528
203 changed files with 8263 additions and 0 deletions
@@ -0,0 +1,44 @@
server {
server_name wiki.nginx.org;
root /var/www/mediawiki;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?title=$1&$args;
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/tmp/phpfpm.sock;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /index.php;
expires max;
log_not_found off;
}
location = /_.gif {
expires max;
empty_gif;
}
location ^~ /cache/ {
deny all;
}
location /dumps {
root /var/www/mediawiki/local;
autoindex on;
}
}