icinga2/files/icingaweb2.jinja
This commit is contained in:
@@ -2,7 +2,7 @@ server {
|
|||||||
|
|
||||||
server_name icinga.keiran.us;
|
server_name icinga.keiran.us;
|
||||||
|
|
||||||
rewrite ^/$ http://icinga.keiran.us/icingaweb2 permanent;
|
rewrite ^/$ https://icinga.keiran.us/icingaweb2 permanent;
|
||||||
|
|
||||||
location ~ ^/icingaweb2/index\.php(.*)$ {
|
location ~ ^/icingaweb2/index\.php(.*)$ {
|
||||||
# fastcgi_pass 127.0.0.1:9000;
|
# fastcgi_pass 127.0.0.1:9000;
|
||||||
@@ -20,18 +20,6 @@ rewrite ^/$ http://icinga.keiran.us/icingaweb2 permanent;
|
|||||||
try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
|
try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/ccfc/$ {
|
|
||||||
auth_basic "Login";
|
|
||||||
auth_basic_user_file /var/www/htpasswd_ccfc;
|
|
||||||
fastcgi_pass unix://var/run/php/php7.3-fpm.sock;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_param SCRIPT_FILENAME /var/www/ccfc/index.php;
|
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
listen 443 ssl; # managed by Certbot
|
listen 443 ssl; # managed by Certbot
|
||||||
ssl_certificate /etc/letsencrypt/live/icinga.keiran.us/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/icinga.keiran.us/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/icinga.keiran.us/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/icinga.keiran.us/privkey.pem; # managed by Certbot
|
||||||
|
|||||||
Reference in New Issue
Block a user