home · contact · privacy
Add htwtxt nginx proxy prototype.
[config] / systemfiles / nginx.conf
diff --git a/systemfiles/nginx.conf b/systemfiles/nginx.conf
new file mode 100644 (file)
index 0000000..5b9b028
--- /dev/null
@@ -0,0 +1,42 @@
+# system integration
+user www-data;
+pid /run/nginx.pid;
+
+# is expected even if empty
+events {
+}
+
+http {
+        # define content-type headers
+        types {
+            text/html                             html htm shtml;
+            text/css                              css;
+            text/xml                              xml;
+            text/plain                            txt;
+            text/plain                            sh;
+            application/xhtml+xml                 xhtml;
+        }
+        default_type application/octet_stream;
+        charset utf-8;
+
+        # logging
+       access_log /var/log/nginx/access.log;
+       error_log /var/log/nginx/error.log;
+
+        # file server
+        server {
+                location / {
+                        autoindex on;
+                        root /data/www;
+                }
+        }
+
+        # htwtxt
+        server {
+                listen 8080;
+                #server_name htwtxt.plomlompom.com;
+                location / {
+                        proxy_pass http://127.0.0.1:8000;
+                }
+        }
+}