Kapisi/roles/WebServer/files/conf.d/Core/cyberbrain.conf

49 lines
1.2 KiB
Plaintext
Raw Normal View History

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-10-08 12:28:14 -05:00
include local.conf;
root /usr/share/webapps/;
client_max_body_size 5m;
client_body_timeout 60;
include ../conf.d/fastcgi7.config;
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
include letsencrypt.conf;
2022-09-15 14:23:34 -05:00
}