26 lines
668 B
Nginx Configuration File
26 lines
668 B
Nginx Configuration File
pid /tmp/pid.pid;
|
|
daemon off;
|
|
events {}
|
|
http {
|
|
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 /dev/stdout main;
|
|
|
|
server {
|
|
listen 8080;
|
|
server_name localhost;
|
|
|
|
root /tmp/2h;
|
|
location / {
|
|
try_files $uri $uri.html $uri/ =404;
|
|
autoindex on;
|
|
types {
|
|
text/html html htm shtml;
|
|
text/css css;
|
|
application/javascript js;
|
|
}
|
|
}
|
|
}
|
|
}
|