mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 14:45:38 +00:00
add mediawiki
This commit is contained in:
42
mediawiki/rootfs/nginx/sites-enabled/nginx.conf
Normal file
42
mediawiki/rootfs/nginx/sites-enabled/nginx.conf
Normal file
@ -0,0 +1,42 @@
|
||||
server {
|
||||
listen 8888;
|
||||
root /mediawiki;
|
||||
index index.php index.html;
|
||||
|
||||
client_body_timeout 60;
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||||
try_files $uri /index.php;
|
||||
expires max;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location ^~ /cache/ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /dumps {
|
||||
root /mediawiki/local;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
}
|
||||
|
||||
location @rewrite {
|
||||
rewrite ^/(.*)$ /index.php?title=$1&$args;
|
||||
}
|
||||
|
||||
location ^~ /maintenance/ {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ /images/ {}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_index index.php;
|
||||
fastcgi_pass unix:/php/run/php-fpm.sock;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /nginx/conf/fastcgi_params;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user