48 lines
1.2 KiB
Nginx Configuration File
48 lines
1.2 KiB
Nginx Configuration File
# load dynamic nginx modules
|
|
include /etc/nginx/modules-enabled.d/*.conf;
|
|
|
|
# see http://nginx.net for info & docs
|
|
|
|
worker_processes 10;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
include /etc/nginx/conf-enabled.d/*.conf;
|
|
|
|
http {
|
|
log_format req_time '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for" $request_time "$upstream_addr"';
|
|
access_log /var/log/nginx/access.log req_time;
|
|
proxy_temp_path /var/spool/nginx/tmp/proxy;
|
|
fastcgi_temp_path /var/spool/nginx/tmp/fastcgi;
|
|
client_body_temp_path /var/spool/nginx/tmp/client;
|
|
client_max_body_size 10M;
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
|
|
gzip on;
|
|
|
|
# text/html doesn't need to be defined there, it's compressed always
|
|
gzip_types text/plain text/css text/xml application/x-javascript application/atom+xml;
|
|
|
|
# gzip_comp_level 9;
|
|
include /etc/nginx/sites-enabled.d/*.conf;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
location / {
|
|
fastcgi_pass localhost:9009;
|
|
include fastcgi_params;
|
|
}
|
|
}
|
|
}
|