Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # semua konfig apache nya sudah di hanle oleh nginx
- server {
- listen 80;
- server_name tozoro.com;
- root /var/www/users/tozero/;
- index index.html index.php;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~* \.php$ {
- # untuk fastcgi_pass
- # /run/php/php5-fpm.sock
- # atau
- # /run/php/php7-fpm.sock
- # atau
- # 127.0.0.1:8000
- # atau
- # 127.0.0.1:9000
- # etc
- fastcgi_pass /run/php/php5-fpm.sock;
- 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