home · contact · privacy
1072651ca39c1006eef72735c9a4784ee715f146
[config] / all_new_2018 / linkable_etc_files / web / etc / nginx / nginx.conf
1 # system integration
2 user www-data;
3 worker_processes auto;
4 pid /run/nginx.pid;
5
6 # is expected even if empty
7 events {
8 }
9
10 http {
11         # define content-type headers
12         types {
13             text/html                             html htm shtml;
14             #text/css                              css;
15             #text/xml                              xml;
16             #text/plain                            txt sh rst md;
17             #application/xhtml+xml                 xhtml;
18             #application/pdf                       pdf;
19             #image/jpeg                            jpg jpeg;
20             #image/png                             png;
21         }
22         default_type application/octet_stream;
23         charset utf-8;
24
25         # logging deactivated due to DSGVO
26         #access_log /var/log/nginx/access.log;
27         #error_log /var/log/nginx/error.log;
28
29         # HTTP server: only enforce HTTPS 
30         server {
31                 listen 80;
32                 return 301 https://$host$request_uri;
33         }
34
35         # HTTPS server
36         server {
37                 listen 443 ssl;
38                 server_name web20181130.plomlompom.com;
39                 ssl_certificate /etc/letsencrypt/live/web20181130.plomlompom.com/fullchain.pem;
40                 ssl_certificate_key /etc/letsencrypt/live/web20181130.plomlompom.com/privkey.pem;
41                 root /var/www/html/;
42                 index index.html index.htm index.nginx-debian.html;
43         }
44 }