Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www;
- worker_processes 1;
- # This default error log path is compiled-in to make sure configuration parsing
- # errors are logged somewhere, especially during unattended boot when stderr
- # isn't normally logged anywhere. This path will be touched on every nginx
- # start regardless of error log location configured here. See
- # https://trac.nginx.org/nginx/ticket/147 for more info.
- #
- #error_log /var/log/nginx/error.log;
- #
- #pid logs/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
- sendfile on;
- #tcp_nopush on;
- #keepalive_timeout 0;
- keepalive_timeout 65;
- #gzip on;
- server {
- listen 80;
- root /usr/home/admin/nginx-dist/;
- index index.php index.html;
- server_name localhost;
- location ~ ^/pma/(.+\.php)$ {
- try_files $uri =404;
- root /usr/share/;
- fastcgi_pass unix:/var/run/php5-fpm.sock; # or 127.0.0.1:9000
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- location ~* ^/pma/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
- root /usr/share/;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement