mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 16:19:13 +02:00
Initial version of nginx parser roundtrip test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user