manage.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 29604 ssl;
  3. ssl_certificate /data/ssl/tls.crt;
  4. ssl_certificate_key /data/ssl/tls.key;
  5. ssl_session_timeout 5m;
  6. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  7. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  8. ssl_prefer_server_ciphers on;
  9. access_log /data/logs/nginx/3.0/manage/access.log;
  10. error_log /data/logs/nginx/3.0/manage/error.log;
  11. index index.html index.php;
  12. root /data/3.0/BY-YJ/manage/public/;
  13. location / {
  14. index index.php index.html index.htm;
  15. if (!-e $request_filename) {
  16. rewrite ^(.*)$ /index.php?s=/$1 last;
  17. break;
  18. }
  19. if ( -f $request_filename) {
  20. break;
  21. }
  22. }
  23. location ~ \.php($|/) {
  24. fastcgi_pass 127.0.0.1:9000;
  25. fastcgi_index index.php;
  26. fastcgi_split_path_info ^(.+\.php)(.*)$;
  27. fastcgi_param PATH_INFO $fastcgi_path_info;
  28. fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
  29. include fastcgi_params;
  30. }
  31. }