Nginx
weixin_43870916
这个作者很懒,什么都没留下…
展开
-
宝塔 nginx配置跨域
点击相关网站的“设置”按钮,弹出弹窗如下图 在 location / {} 中添加一下代码 add_header Access-Control-Allow-Origin '*'; add_header Access-Control-Allow-Methods 'POST,PUT,GET,DELETE'; add_header Access-Control-Allow-Headers 'version, access-token, user-token, Accept, apiAuth, U原创 2020-10-14 10:25:09 · 5998 阅读 · 0 评论 -
解决Nginx 404 not found问题
在Nginx安装目录下找到 “conf” 文件夹下的 “vhost.conf” 在 “vhost.conf” 中有以下代码: location / { index index.html index.htm index.php; #autoindex on; } 把这段代码用以下代码代替即可: location / { try_f...原创 2019-07-18 12:23:30 · 46171 阅读 · 1 评论