nginx-config/80.conf

97 lines
2.7 KiB
Plaintext

server {
listen 80;
server_name inno-ijl.ru;
# index index.php index.html index.htm index.nginx-debian.html;
include "parts/api-multystub.conf";
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://212.193.59.173:8079/;
}
}
server {
listen 80;
server_name b1.inno-ijl.ru;
include "parts/api-multystub.conf";
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://212.193.59.173:8078/;
}
}
server {
listen 80;
server_name b2.inno-ijl.ru;
include "parts/api-multystub.conf";
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
proxy_pass http://212.193.59.173:8075/;
}
}
server {
listen 80;
server_name static.inno-ijl.ru;
set $appsRoot "/home/ijl/ijl/apps";
root $appsRoot;
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
alias "$appsRoot/";
}
}
server {
listen 80;
server_name admin.inno-ijl.ru;
location / {
proxy_pass http://admin/;
}
}
server {
listen 80;
server_name admin2.inno-ijl.ru;
location / {
proxy_pass http://212.193.59.173:3072;
}
}
# server {
# listen 80;
# index index.php index.html index.htm index.nginx-debian.html;
# server_name victorina.inno-ijl.ru;
# root /home/ijl/ijl/apps/petrus/dist;
# location / {
# try_files $uri $uri/ /index.html;
# }
# }
# server {
# listen 80;
# index index.html;
# server_name alinakhaff.inno-ijl.ru;
# root /home/ijl/ijl/apps/alinakhaff;
# }