Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name example.com www.example.com;
- root /var/www/public;
- location / {
- index index.html index.htm index.php;
- try_files $uri $uri/ /index.php?$query_string;
- include /etc/nginx/fastcgi_params;
- }
- location ~ .php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- include /etc/nginx/fastcgi_params;
- }
- sendfile off;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement