docs/nginx-test.conf
error_log /tmp/error.log;
worker_processes 4;
pid /tmp/nginx.pid;
events {
worker_connections 100;
}
http {
# https://www.exratione.com/2014/03/running-nginx-as-a-non-root-user/
# Set an array of temp and cache file options that will otherwise default to
# restricted locations accessible only to root.
client_body_temp_path /tmp/client_body;
fastcgi_temp_path /tmp/fastcgi_temp;
proxy_temp_path /tmp/proxy_temp;
scgi_temp_path /tmp/scgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Logging Settings
error_log /tmp/error.log;
access_log /tmp/access.log;
upstream php_pass_default {
server 127.0.0.1:9000;
}
server {
listen 8080;
root /tmp/muenchen-transparent/html;
error_log /tmp/error.log;
access_log /tmp/access.log;
set $yii_bootstrap "index-test.php";
charset utf-8;
include nginx-minimal.conf;
}
}