Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nginx;
- worker_processes 8;
- error_log /var/log/nginx/error.log;
- pid /run/nginx.pid;
- events {
- worker_connections 1024;
- }
- http {
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- upstream backend {
- server unix:/var/www/www.sock;
- # server 127.0.0.1:9000;
- }
- server {
- listen 80 default_server;
- server_name _;
- root /var/www/public;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass backend;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- }
Add Comment
Please, Sign In to add comment