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;