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