Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name server.name.domain;
- root /path/to/directory/root;
- access_log off; # or you can use /path/to/file.log
- error_log off;
- location / {
- index index.php index.html index.htm;
- # REWRITE
- if (-e $request_filename) {
- break;
- }
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.php?q=$1 last;
- }
- }
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000; # or use your default PHP-fpm setting
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement