配置文件 litemall-worker.conf

  1. server
  2. {
  3. listen 6256;
  4. server_name 123.57.78.82;
  5. index index.html;
  6. root /www/wwwroot/liteshop-front/worker;
  7. #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
  8. #error_page 404/404.html;
  9. #SSL-END
  10. #ERROR-PAGE-START 错误页配置,可以注释、删除或修改
  11. #error_page 404 /404.html;
  12. #error_page 502 /502.html;
  13. #ERROR-PAGE-END
  14. #PHP-INFO-START PHP引用配置,可以注释或修改
  15. include enable-php-00.conf;
  16. #PHP-INFO-END
  17. #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
  18. include /www/server/panel/vhost/rewrite/manager.lezhuosoft.com.conf;
  19. #REWRITE-END
  20. #禁止访问的文件或目录
  21. location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
  22. {
  23. return 404;
  24. }
  25. #一键申请SSL证书验证目录相关设置
  26. location ~ \.well-known{
  27. allow all;
  28. }
  29. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  30. {
  31. expires 30d;
  32. error_log /dev/null;
  33. access_log /dev/null;
  34. }
  35. location ~ .*\.(js|css)?$
  36. {
  37. expires 12h;
  38. error_log /dev/null;
  39. access_log /dev/null;
  40. }
  41. access_log /www/wwwlogs/shop.worker.com.log;
  42. error_log /www/wwwlogs/shop.worker.com.error.log;
  43. }

af5cb1543f384f48d110612352d89ed.png4e65f2540e775ac601d0758ec02052f.png

放到这个路径下 60f6f223783fb54d5ac2008644b6c11.png

再重启 ngnix 就可以了