/project
This commit is contained in:
parent
cf20e1c5e7
commit
b6120de4d4
8
443.conf
8
443.conf
@ -28,6 +28,14 @@ server {
|
|||||||
|
|
||||||
root "/var/www/html";
|
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 / {
|
# location / {
|
||||||
# add_header 'Access-Control-Allow-Origin' '*';
|
# add_header 'Access-Control-Allow-Origin' '*';
|
||||||
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||||
|
13
80.conf
13
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 {
|
# server {
|
||||||
# listen 80;
|
# listen 80;
|
||||||
# index index.html;
|
# index index.html;
|
||||||
|
Loading…
Reference in New Issue
Block a user