home · contact · privacy
Add htwtxt nginx proxy prototype.
[config] / systemfiles / nginx.conf
1 # system integration
2 user www-data;
3 pid /run/nginx.pid;
4
5 # is expected even if empty
6 events {
7 }
8
9 http {
10         # define content-type headers
11         types {
12             text/html                             html htm shtml;
13             text/css                              css;
14             text/xml                              xml;
15             text/plain                            txt;
16             text/plain                            sh;
17             application/xhtml+xml                 xhtml;
18         }
19         default_type application/octet_stream;
20         charset utf-8;
21
22         # logging
23         access_log /var/log/nginx/access.log;
24         error_log /var/log/nginx/error.log;
25
26         # file server
27         server {
28                 location / {
29                         autoindex on;
30                         root /data/www;
31                 }
32         }
33
34         # htwtxt
35         server {
36                 listen 8080;
37                 #server_name htwtxt.plomlompom.com;
38                 location / {
39                         proxy_pass http://127.0.0.1:8000;
40                 }
41         }
42 }