群晖nas不能修改php.ini,群晖nas 修改nginx配置的问题

现象:

在 /etc/nginx/nginx.conf 配置无效,重启以后配置被删除。

解决方案:

将配置放在 /etc/nginx/sites-enabled/proxy.conf

配置的第一行记得加上server_names_hash_bucket_size

配置举例:server_names_hash_bucket_size 128;

server {

listen 80;

server_name zimuzu.sadk.org;

location / {

proxy_pass http://192.168.1.135:3001/;

root /usr/syno/share/nginx/;

proxy_read_timeout 300;

proxy_connect_timeout 300;

proxy_redirect off;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_set_header Host $http_host;

proxy_set_header X-Real-IP $remote_addr;

ps: 群晖上nginx -s reload 无效。需要先nginx -s stop掉,dsm会自动帮你吧nginx启动,这个过程中无需 nginx -s start。

原文链接:https://blog.csdn.net/weixin_39752434/article/details/115736468?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167586359916800217086582%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=167586359916800217086582&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-18-115736468-null-null.blog_rank_default&utm_term=%E9%BB%91%E7%BE%A4%E6%99%96%2C%E7%BE%A4%E6%99%96%2Cnas%2C%E8%9C%97%E7%89%9B%E6%98%9F%E9%99%85%2CDSM%EF%BC%8C%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%2Cipv6%2C%E8%BF%9C%E7%A8%8B%E8%AE%BF%E9%97%AE%2Cwordpress%EF%BC%8C%E5%BB%BA%E7%AB%99%2C%E9%98%BF%E9%87%8C%E4%BA%91%2C%E8%85%BE%E8%AE%AF%E4%BA%91%2C%E5%9F%9F%E5%90%8D%2C%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%2C

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享