Advertisement
Overfinch

vhosts.conf

Sep 2nd, 2022
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.57 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     server_name _;
  4.     root /var/www/laravel-docker/public;
  5.     index index.php;
  6.     error_log /var/log/nginx/error.log;
  7.  
  8.     location / {
  9.         try_files $uri /$uri /index.php?$query_string;
  10.     }
  11.  
  12.     location ~ [^/].php(/|$) {
  13.         fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  14.         fastcgi_pass fpm:9000;
  15.         fastcgi_index index.php;
  16.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  17.         include fastcgi_params;
  18.         fastcgi_param HTTPS off;
  19.         fastcgi_param APPLICATION_ENV local;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement