admin 管理员组文章数量: 887038
2024年1月17日发(作者:discuz的极致音乐模板)
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ .php$ {#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ .php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index ;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}
# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /.ht {# deny all;#}}
server {listen 8183;server_name localhost;
#charset koi8-r;
#access_log logs/ main;add_header 'Access-Control-Allow-Origin' '*';location / {
proxy_redirect default ;}location ~ .html$ {proxy_redirect default ;}#error_page 404 /;
# redirect server error pages to the static page /#error_page 500 502 503 504 /;location = / {root html;}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ .php$ {#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ .php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index ;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}
# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /.ht {# deny all;
#}}
# another virtual host using mix of IP-, name-, and port-based configuration##server {# listen 8000;# listen somename:8888;# server_name somename alias ;
# location / {# root html;# index ;# }#}
# HTTPS server##server {# listen 443 ssl;# server_name localhost;
# ssl_certificate ;# ssl_certificate_key ;
# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;
# location / {# root html;
# index ;# }#}
}
版权声明:本文标题:Nginx跨域支持解决put和delete请求报错 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1705455212h485435.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论