21 lines
360 B
Nginx Configuration File
21 lines
360 B
Nginx Configuration File
upstream php {
|
|
server unix:/tmp/php-cgi.socket;
|
|
server php:9000;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name wordpress-docker.test;
|
|
|
|
root /var/www/html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi.conf;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_pass php;
|
|
}
|
|
} |