mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
45 lines
952 B
Nginx Configuration File
45 lines
952 B
Nginx Configuration File
user www-data;
|
|
|
|
events {
|
|
worker_connections 2048;
|
|
}
|
|
|
|
http {
|
|
keepalive_timeout 500;
|
|
keepalive_requests 5000;
|
|
|
|
client_max_body_size 32m;
|
|
client_body_buffer_size 32m;
|
|
|
|
sendfile on;
|
|
server_tokens off;
|
|
|
|
upstream php-fpm {
|
|
server 127.0.0.1:9000 max_fails=5 fail_timeout=5s;
|
|
}
|
|
|
|
server {
|
|
listen 8000;
|
|
server_name example.com;
|
|
|
|
root /var/www/public;
|
|
index index.php;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass php-fpm;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
include fastcgi_params;
|
|
}
|
|
}
|
|
} |