nginx
大炮走火
只是过客
展开
-
微信h5支付添加域名时报错,“h5支付域名需要提供完整的支付路径“
假设需添加的域名为"api.abc.com"审核不通过原因是"api.abc.com"无法访问因此需保证abc.com及api.abc.com都能访问,能看到内容。原创 2022-10-20 18:35:35 · 2185 阅读 · 0 评论 -
nginx解决跨域,Access to XMLHttpRequest at ‘xx‘ from origin ‘xx‘ has been blocked by CORS policy
那么请在"add_header Access-Control-Allow-Headers"中添加你请求头参数。你的请求头中含有,“token”,"xx_id"等,然后重启Nginx就OK啦~!原创 2022-08-19 18:11:19 · 5012 阅读 · 2 评论 -
宝塔配置laravel项目,访问出现404
宝塔配置laravel项目,访问出现404解决办法:打开网站的配置文件添加或修改如下此项 location / { try_files $uri $uri/ /index.php?query_string; # laravel项目,开启路由访问 }重启nginx,即可!...原创 2022-04-18 14:06:47 · 3693 阅读 · 0 评论 -
nginx php-fpm File not found
错误场景为nginx配置php-fpm时,报错nginx File not found解决步骤:1.编辑php-fpmuser = rootgroup = root2.编辑nginx-confuser root;也就是说php-fpm的用户和nginx的用户一致3.重启nginx4.关闭php-fpm,再打开此时可能报错ERROR: [pool www] please specify user and group other than root那么启动php-fpm,需要这么启原创 2021-11-29 15:32:21 · 876 阅读 · 0 评论 -
简洁的nginx配置
...省略,默认的就好...http {...省略,默认的就好... server { listen 8999; server_name localhost; location / { root /Users/xiaoming/test; # 被代理的目录 index index.html index.htm; # 默认访问的文件 } }}#原创 2021-11-16 19:08:19 · 1595 阅读 · 0 评论