Advertisement
selimppc

vhost.conf

May 4th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. upstream php {
  2.         #server unix:/var/run/php5-fpm.sock;
  3.         server 127.0.0.1:9000;
  4. }
  5. upstream backend {
  6.         server 127.0.0.1:9000;
  7. }
  8.  
  9. server {
  10.     #listen         8080;
  11.     #listen         [::]:80 default_server;
  12.     server_name  zogo-commerce.local;
  13.  
  14.     root /var/www/html/zogo-commerce/public;
  15.  
  16.     index index.php;
  17.  
  18.     try_files $uri $uri/ /index.php?$args;
  19.  
  20.     location ~ \.php$ {
  21.         fastcgi_pass   127.0.0.1:9000;
  22.         fastcgi_index  index.php;
  23.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24.         include        fastcgi_params;
  25.         fastcgi_read_timeout 600;
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement