1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/nginad/nginx.conf

32 lines
612 B
Nginx Configuration File
Raw Normal View History

2015-09-18 12:39:27 +02:00
user nobody;
worker_processes 4;
2016-07-21 10:11:52 +02:00
pid /run/nginx.pid;
2015-09-18 11:05:05 +02:00
events {
2015-09-18 12:39:27 +02:00
worker_connections 1024;
2015-09-18 11:05:05 +02:00
}
http {
2015-09-18 12:39:27 +02:00
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
2015-09-18 11:05:05 +02:00
server {
2015-09-18 12:39:27 +02:00
listen 80;
server_name _;
2015-09-24 03:20:57 +02:00
client_max_body_size 4M;
client_body_buffer_size 128k;
2015-09-18 12:39:27 +02:00
root /var/www/html/upload/public;
try_files $uri @php_index;
2015-09-18 11:05:05 +02:00
2015-09-18 12:39:27 +02:00
location @php_index {
2015-09-18 11:05:05 +02:00
include fastcgi_params;
2015-09-18 12:39:27 +02:00
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
2015-09-18 11:05:05 +02:00
fastcgi_pass 127.0.0.1:9000;
}
}
}