wallos/nginx.default.conf
2023-10-05 22:39:37 +02:00

18 lines
498 B
Plaintext

server {
listen 80;
server_name your_domain_or_ip; # Change to your domain or IP
root /var/www/html; # Change to your web root directory
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm.sock; # Adjust the path if necessary
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# Additional configuration if needed
}