Advertisement
adzi-dev25

default.conf

May 4th, 2021
2,564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.   listen 80;
  3.   index index.php index.html;
  4.   server_name localhost;
  5.   root /code/public;
  6.  
  7.   location / {
  8.     try_files $uri $uri/ /index.php?$query_string;
  9.   }
  10.  
  11.   location ~ \.backend-app$ {
  12.     try_files $uri =404;
  13.     fastcgi_pass php:9000;
  14.     fastcgi_index index.php;
  15.     include fastcgi_params;
  16.     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17.   }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement