Advertisement
Guest User

nging + pma

a guest
Sep 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.70 KB | None | 0 0
  1.  
  2. user  www;
  3. worker_processes  1;
  4.  
  5. # This default error log path is compiled-in to make sure configuration parsing
  6. # errors are logged somewhere, especially during unattended boot when stderr
  7. # isn't normally logged anywhere. This path will be touched on every nginx
  8. # start regardless of error log location configured here. See
  9. # https://trac.nginx.org/nginx/ticket/147 for more info.
  10. #
  11. #error_log  /var/log/nginx/error.log;
  12. #
  13.  
  14. #pid        logs/nginx.pid;
  15.  
  16.  
  17. events {
  18.     worker_connections  1024;
  19. }
  20.  
  21.  
  22. http {
  23.     include       mime.types;
  24.     default_type  application/octet-stream;
  25.  
  26.     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  27.     #                  '$status $body_bytes_sent "$http_referer" '
  28.     #                  '"$http_user_agent" "$http_x_forwarded_for"';
  29.  
  30.     #access_log  logs/access.log  main;
  31.  
  32.     sendfile        on;
  33.     #tcp_nopush     on;
  34.  
  35.     #keepalive_timeout  0;
  36.     keepalive_timeout  65;
  37.  
  38.     #gzip  on;
  39.  
  40.     server {
  41.         listen 80;
  42.         root /usr/home/admin/nginx-dist/;
  43.         index index.php index.html;
  44.         server_name localhost;
  45.         location ~ ^/pma/(.+\.php)$ {
  46.                        try_files $uri =404;
  47.                        root /usr/share/;
  48.                        fastcgi_pass unix:/var/run/php5-fpm.sock; # or 127.0.0.1:9000
  49.                        fastcgi_index index.php;
  50.                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  51.                        include /etc/nginx/fastcgi_params;
  52.                }
  53.                location ~* ^/pma/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  54.                        root /usr/share/;
  55.                }
  56.         }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement