reddarien/webserver/nginx/sites-available/default

107 lines
2.9 KiB
Plaintext
Raw Permalink Normal View History

2019-10-20 17:34:18 +00:00
server {
listen 80 default_server;
listen [::]:80 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;
return 301 https://$host$request_uri;
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 / {
proxy_pass https://10.10.4.2:8443/;
include /etc/nginx/proxy.conf;
}
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 @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;
}
}