werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

samotsvety.org (3047B)


      1 # Old config:
      2 # server {
      3 # 
      4 # 
      5 #      listen 443 ssl; # managed by Certbot
      6 #      ssl_certificate /etc/letsencrypt/live/samotsvety.org/fullchain.pem; # managed by Certbot
      7 #      ssl_certificate_key /etc/letsencrypt/live/samotsvety.org/privkey.pem; # managed by Certbot
      8 #      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      9 #      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
     10 #      # listen 80;
     11 #      # listen [::]:80;
     12 # 
     13 #      root /home/www/werc/werc-1.5.0/sites/samotsvety.org;
     14 #      index index.html index.htm index.nginx-debian.html;
     15 #      server_name samotsvety.org;
     16 # 
     17 #      location / {
     18 #         try_files $uri $uri/ =404;
     19 #      }
     20 # }
     21 
     22 server {
     23     server_name  samotsvety.org; # Replace with your domain name.
     24 
     25     #charset utf-8;
     26 
     27     #access_log  logs/host.access.log  main;
     28 
     29     location / {
     30 
     31     # FastCGI params, usually stored in fastcgi_params
     32     # and imported with a command like the following:
     33     #include        fastcgi_params;
     34 
     35     # Typical contents of fastcgi_params (inlined here):
     36     fastcgi_pass localhost:9000;
     37 
     38     fastcgi_param  QUERY_STRING       $query_string;
     39     fastcgi_param  REQUEST_METHOD     $request_method;
     40     fastcgi_param  CONTENT_TYPE       $content_type;
     41     fastcgi_param  CONTENT_LENGTH     $content_length;
     42 
     43     #fastcgi_param  SCRIPT_FILENAME   /var/www/werc/bin/werc.rc;
     44     fastcgi_param  SCRIPT_NAME        /home/www/werc/werc-1.5.0/bin/werc.rc;
     45     #fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
     46 
     47     fastcgi_param  REQUEST_URI        $request_uri;
     48     fastcgi_param  DOCUMENT_URI       $document_uri;
     49     fastcgi_param  DOCUMENT_ROOT      $document_root;
     50     fastcgi_param  SERVER_PROTOCOL    $server_protocol;
     51 
     52     fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
     53     fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
     54 
     55     fastcgi_param  REMOTE_ADDR        $remote_addr;
     56     fastcgi_param  REMOTE_PORT        $remote_port;
     57     fastcgi_param  SERVER_ADDR        $server_addr;
     58     fastcgi_param  SERVER_PORT        $server_port;
     59     fastcgi_param  SERVER_NAME        $server_name;
     60     fastcgi_param  REMOTE_USER        $remote_user;
     61 
     62     #root /home/uriel/werc/werc-1.5.0/sites/samotsvety.org;
     63     #root   /var/www/werc/sites/$server_addr; # XXX This doesn't work, not sure why :(
     64     #nuno: I confirm that the above doesn't work.
     65     root /;
     66     #root /home/www/werc/werc-1.5.0/sites/samotsvety.org;
     67 
     68     #index  index.html index.htm;
     69   }
     70 
     71     listen 443 ssl; # managed by Certbot
     72     ssl_certificate /etc/letsencrypt/live/samotsvety.org/fullchain.pem; # managed by Certbot
     73     ssl_certificate_key /etc/letsencrypt/live/samotsvety.org/privkey.pem; # managed by Certbot
     74     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
     75     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
     76 
     77 }
     78 
     79 server {
     80     if ($host = samotsvety.org) {
     81         return 301 https://$host$request_uri;
     82     } # managed by Certbot
     83 
     84 
     85   listen 80;
     86     server_name  samotsvety.org;
     87     return 404; # managed by Certbot
     88 
     89 
     90 }
     91 #