Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8180;
- server_name testn.loc;
- root /srv/http/nginx/;
- charset utf-8;
- autoindex off;
- location / {
- if (!-e $request_filename){
- rewrite ^(.*)$ /index.php?url=$1 break;
- }
- }
- location ~ \.php$ {
- #fastcgi_pass 127.0.0.1:9000; (depending on your php-fpm socket configuration)
- fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement