reddarien/webserver/nginx/sites-enabled/default-ssl

114 lines
3.3 KiB
Plaintext
Raw Normal View History

2019-10-20 17:34:18 +00:00
server {
listen 443 default_server;
listen [::]:443 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.php;
add_header Access-Control-Allow-Origin "*";
server_name reddarien.nuestrared.org dariencaribe.org dariencaribe.nuestrared.org www.dariencaribe.org darien.info www.darien.info darien.nuestrared.org;
ssl on;
ssl_certificate /etc/letsencrypt/darien.crt; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/myserver.key; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location /wikis {
proxy_pass http://localhost:88;
proxy_set_header Host $http_host;
proxy_set_header X-Script-Name /wikis;
}
location /mapproxy {
proxy_pass http://localhost:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Script-Name /mapproxy;
}
location /portal {
root /var/www;
index index.php index.html;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9002;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
location /rachel {
root /var/www;
index index.php index.html;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9002;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
location /mapas {
root /var/www;
index index.php index.html;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9002;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
location /phpmyadmin {
root /var/www;
index index.php index.html;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9002;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
location / {
proxy_pass https://10.10.4.2:8443/;
include /etc/nginx/proxy.conf;
}
location @rewrite {
# Some modules enforce no slash (/) at the end of the URL
# Else this rewrite block wouldn't be needed (GlobalRedirect)
rewrite ^/(.*)$ /index.php?variable=$1;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#try_files $uri =404;
#fastcgi_param REMOTE_ADDR $http_x_real_ip;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9002;
#fastcgi_index index.php;
#include fastcgi_params;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.ht {
deny all;
}
}