From b6120de4d40a0967ebed31f0973aeff9a4fae73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BC=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Fri, 8 Apr 2022 16:56:34 +0300 Subject: [PATCH] /project --- 443.conf | 8 ++++++++ 80.conf | 13 ------------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/443.conf b/443.conf index 19df8b3..11c59a7 100644 --- a/443.conf +++ b/443.conf @@ -28,6 +28,14 @@ server { root "/var/www/html"; + location /project { + 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 "/home/ijl/ijl/project/"; + } + # location / { # add_header 'Access-Control-Allow-Origin' '*'; # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; diff --git a/80.conf b/80.conf index e999766..806be46 100644 --- a/80.conf +++ b/80.conf @@ -176,19 +176,6 @@ server { } } -server { - listen 80; - server_name poject.inno-js.ru; - - 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 "/home/ijl/ijl/project/"; - } -} - # server { # listen 80; # index index.html;