Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.61 KB | None | 0 0
  1. # semua konfig apache nya sudah di hanle oleh nginx
  2. server {
  3.   listen 80;
  4.   server_name tozoro.com;
  5.   root /var/www/users/tozero/;
  6.   index index.html index.php;
  7.  
  8.   location / {
  9.     try_files $uri $uri/ /index.php?$query_string;
  10.   }
  11.  
  12.   location ~* \.php$ {
  13.     # untuk fastcgi_pass
  14.     # /run/php/php5-fpm.sock
  15.     # atau
  16.     # /run/php/php7-fpm.sock
  17.     # atau
  18.     # 127.0.0.1:8000
  19.     # atau
  20.     # 127.0.0.1:9000
  21.     # etc
  22.     fastcgi_pass /run/php/php5-fpm.sock;
  23.     fastcgi_index index.php;
  24.     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25.     include fastcgi_params;
  26.   }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement