Advertisement
Guest User

Nginx server 22222

a guest
Jan 18th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. # EasyEngine admin NGINX CONFIGURATION
  2.  
  3. server {
  4.  
  5. listen 22222 default_server ssl http2;
  6.  
  7. access_log /var/log/nginx/22222.access.log rt_cache;
  8. error_log /var/log/nginx/22222.error.log;
  9.  
  10. ssl_certificate /var/www/22222/cert/22222.crt;
  11. ssl_certificate_key /var/www/22222/cert/22222.key;
  12.  
  13. # Force HTTP to HTTPS
  14. error_page 497 =200 https://$host:22222$request_uri;
  15.  
  16. root /var/www/22222/htdocs;
  17. index index.php index.htm index.html;
  18.  
  19. # Turn on directory listing
  20. autoindex on;
  21.  
  22. # HTTP Authentication on port 22222
  23. include common/acl.conf;
  24.  
  25. location / {
  26. try_files $uri $uri/ /index.php?$args;
  27. }
  28.  
  29. # Display menu at location /fpm/status/
  30. location = /fpm/status/ {}
  31.  
  32. location ~ /fpm/status/(.*) {
  33. try_files $uri =404;
  34. include fastcgi_params;
  35. fastcgi_param SCRIPT_NAME /status;
  36. fastcgi_pass $1;
  37. }
  38.  
  39. location ~ \.php$ {
  40. try_files $uri =404;
  41. include fastcgi_params;
  42. fastcgi_pass php;
  43. }
  44.  
  45. # ViMbAdmin Rules
  46. location = /vimbadmin/ {
  47. return 301 $scheme://$host:22222/vimbadmin/public/;
  48. }
  49.  
  50. location ~* \.(js|css|jpg|gif|png)$ {
  51. root /var/www/22222/htdocs/;
  52. }
  53.  
  54. location ~* /vimbadmin/public/(.*)/(.*) {
  55. root /var/www/22222/htdocs/vimbadmin/public;
  56. try_files $uri $uri/ /vimbadmin/public/index.php?$args;
  57. }
  58.  
  59. location ~* /vimbadmin/public/(.*) {
  60. root /var/www/22222/htdocs/vimbadmin/public;
  61. try_files $uri $uri/ /vimbadmin/public/index.php?$args;
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement