Nginx Configuration
Nginx Configuration for Docker with PHP ApplicationMrIsisWork
nginx
a year ago
594 B
7
Indexable
server {
server_name domain-name.com;
root /var/www/project-name/public;
index index.php index.html index.htm;
# Handle requests for static files
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Pass PHP scripts to PHP-FPM running in the app container
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}Editor is loading...
Leave a Comment