2022-09-15 14:23:34 -05:00
|
|
|
server {
|
2023-10-08 12:28:14 -05:00
|
|
|
listen 443 ssl;
|
2022-09-15 14:23:34 -05:00
|
|
|
server_name cyberbrain.aninix.net;
|
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
include conf/local.conf;
|
2023-10-08 12:28:14 -05:00
|
|
|
|
|
|
|
root /usr/share/webapps/;
|
|
|
|
|
|
|
|
client_max_body_size 5m;
|
|
|
|
client_body_timeout 60;
|
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
include conf.d/fastcgi.config;
|
2023-10-08 12:28:14 -05:00
|
|
|
|
|
|
|
location /mediawiki-gb/ {
|
|
|
|
try_files $uri $uri/ @rewrite;
|
|
|
|
rewrite ^/mediawiki-gb/(.*)$ /mediawiki/index.php?title=$1&$args;
|
|
|
|
rewrite ^$ /mediawiki-gb/Main_Page;
|
|
|
|
rewrite ^/$ /mediawiki-gb/Main_Page;
|
|
|
|
rewrite ^mediawiki-gb$ /mediawiki-gb/Main_Page;
|
|
|
|
rewrite ^mediawiki-gb/$ /mediawiki-gb/Main_Page;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /mediawiki-ma/ {
|
|
|
|
try_files $uri $uri/ @rewrite;
|
|
|
|
rewrite ^/mediawiki-ma/(.*)$ /mediawiki/index.php?title=$1&$args;
|
|
|
|
rewrite ^$ /mediawiki-ma/Main_Page;
|
|
|
|
rewrite ^/$ /mediawiki-ma/Main_Page;
|
|
|
|
rewrite ^mediawiki-ma$ /mediawiki-ma/Main_Page;
|
|
|
|
rewrite ^mediawiki-ma/$ /mediawiki-ma/Main_Page;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ^~ /maintenance/ {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
|
|
|
try_files $uri /mediawiki/index.php;
|
|
|
|
expires max;
|
|
|
|
log_not_found off;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ^~ /cache/ {
|
|
|
|
deny all;
|
2022-09-15 14:23:34 -05:00
|
|
|
}
|
2022-12-18 22:21:39 -06:00
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
include conf/letsencrypt.conf;
|
2022-12-18 22:21:39 -06:00
|
|
|
|
2022-09-15 14:23:34 -05:00
|
|
|
}
|