cyberchallenge-modem/conf/etc/nginx/nginx.conf

33 lines
689 B
Nginx Configuration File
Raw Normal View History

2020-05-20 16:28:58 +02:00
user www-data;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
2020-05-21 13:09:06 +02:00
root /var/www/html;
2020-05-20 16:28:58 +02:00
index index.html index.php;
}
location ~ \.php$ {
2020-05-21 13:09:06 +02:00
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
include fastcgi_params;
2020-05-20 16:28:58 +02:00
}
}
}