You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
user {{ nginx_user }};
|
|
worker_processes {{ worker_processes }};
|
|
|
|
error_log {{ log_dir }}/error.log;
|
|
error_log {{ log_dir }}/error.log notice;
|
|
error_log {{ log_dir }}/error.log info;
|
|
|
|
events {
|
|
worker_connections {{ worker_connections }};
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log {{ log_dir }}/access.log main;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
#keepalive_timeout 65;
|
|
gzip on;
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
#server_name _;
|
|
|
|
root /srv/dynmap/web;
|
|
|
|
index index.php index.html index.htm;
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then
|
|
# as directory, then fall back to displaying a 404.
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# pass PHP scripts to FastCGI server
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi.conf;
|
|
}
|
|
|
|
# deny access to .htaccess files, if Apache's document root
|
|
# concurs with nginx's one
|
|
#
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|
|
|
|
#include sites-enabled/*;
|
|
}
|
|
|