Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. server {
  2. listen 8180;
  3. server_name testn.loc;
  4. root /srv/http/nginx/;
  5. charset utf-8;
  6. autoindex off;
  7. location / {
  8. if (!-e $request_filename){
  9. rewrite ^(.*)$ /index.php?url=$1 break;
  10. }
  11. }
  12.  
  13. location ~ \.php$ {
  14. #fastcgi_pass 127.0.0.1:9000; (depending on your php-fpm socket configuration)
  15. fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
  16. fastcgi_index index.php;
  17. include fastcgi.conf;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement