current state
This commit is contained in:
+77
-3
@@ -1,4 +1,4 @@
|
||||
worker_processes 1;
|
||||
# xworker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
@@ -12,10 +12,84 @@ http {
|
||||
sendfile on;
|
||||
keepalive_timeout 10;
|
||||
|
||||
server {
|
||||
upstream backend {
|
||||
server 89.223.91.151:8033;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 81;
|
||||
server_name localhost;
|
||||
root /home/ijl/ijl/apps/lavr/master;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 82;
|
||||
index index.php index.html index.htm index.nginx-debian.html;
|
||||
server_name localhost;
|
||||
root /home/ijl/ijl/apps/stc28;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi-php.conf;
|
||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8079;
|
||||
# index index.php index.html index.htm index.nginx-debian.html;
|
||||
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://89.223.91.151:8080/;
|
||||
}
|
||||
|
||||
location /api {
|
||||
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://backend;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 83;
|
||||
root /home/ijl/;
|
||||
index index.php index.html index.htm index.nginx-debian.html;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi-php.conf;
|
||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 3002;
|
||||
server_name localhost;
|
||||
set $udsRoot "/Users/teacher/teaching/2020/advance/project";
|
||||
set $udsRoot "/home/ijl/ijl/apps";
|
||||
root $udsRoot;
|
||||
|
||||
# index.html bootstrap
|
||||
|
||||
Reference in New Issue
Block a user