Files
cwsvJudo/homepage/cwsvJudo/nginx.conf
2024-12-01 16:04:51 +01:00

25 lines
597 B
Nginx Configuration File

# @todo Needs helpfull comments.
server {
listen 80 default_server;
# root /users/cwsvjudo/www;
# root /home/cwsvjudo/httpdocs;
root /usr/share/nginx/html;
index index.php index.html index.htm;
location / {
# rewrite rules
# - add php to requested filename if it exists
if (-e $request_filename.php) {
rewrite ^/(.*)$ /$1.php last;
break;
}
}
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}