server
{
listen 8000;
server_name svsapi.svsmarkets.com;
# root /var/www/SFWEBSITE/API/public;
index index.PHP index.htm index.html;
location ~ \.PHP$ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers Content-Type,access-token,language,Cookie;
add_header Access-Control-Allow-Method GET,POST,OPTIONS;
root /var/www/SFWEBSITE/API/public;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.PHP;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
if (!-f $request_filename){
rewrite ^(.*)$ /index.PHP?$1 last;
break;
}
}
error_log /usr/local/Nginx/logs/error_svsapi_svsmarkets_com_log;
access_log /usr/local/Nginx/logs/access_svsapi_svsmarkets_com_log;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。