dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

sites.conf (2163B)


      1 ### sicp server
      2 server {
      3     server_name lpsg.web;
      4     root /var/www/html/lpsg;
      5     index index.html;
      6 
      7     location / {
      8        autoindex on;
      9     }
     10 }
     11 
     12 ### sicp server
     13 server {
     14     server_name sicp.web;
     15     root /var/www/html/sicp;
     16     index index.html;
     17 
     18     location / {
     19        autoindex on;
     20     }
     21 }
     22 
     23 ### cached web
     24 server {
     25     ssi on;
     26     server_name cached.web;
     27     root /var/www/html/cached-web;
     28     index index.html;
     29 
     30     location / {
     31        autoindex on;
     32     }
     33 }
     34 
     35 ### taoup server
     36 server {
     37     ssi on;
     38     server_name taoup.web;
     39     root /var/www/html/taoup;
     40     index index.html;
     41 
     42     location / {
     43        autoindex on;
     44     }
     45 }
     46 
     47 ### taoup server
     48 server {
     49     ssi on;
     50     server_name rs.web;
     51     root /var/www/html/rs;
     52     index index.html;
     53 
     54     location / {
     55        autoindex on;
     56     }
     57 }
     58 
     59 server {
     60     ssi on;
     61     server_name dingy.web;
     62     root /var/www/html/ds;
     63     index index.html;
     64 
     65     location / {
     66        autoindex on;
     67     }
     68 }
     69 
     70 
     71 ### fsfi server
     72 server {
     73     ssi on;
     74     server_name fsfi.web;
     75     root /var/www/html/fsfi/_build;
     76     index index.html index.php;
     77 
     78     location / {
     79        autoindex on;
     80     }
     81 
     82     location ~ \\.php$ {
     83         try_files $uri $uri/ =404;
     84         fastcgi_pass unix:run/php72-fpm.sock;
     85         fastcgi_index index.php;
     86         include fastcgi_params;
     87         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     88     }
     89 }
     90 
     91 # vm server.
     92 server {
     93     ssi on;
     94     server_name vm.web;
     95     root /var/www/html/vm;
     96     index index.php index.html;
     97 
     98     location / {
     99        autoindex on;
    100        include /etc/nginx/mime.types;
    101        rewrite ^/(land|macro|wp|wild|people|fashion).*$ /gallery/$1/ permanent;
    102        rewrite ^/as/photography-classes/?$ /as permanent;
    103     }
    104 
    105     location ~ \\.php$ {
    106         try_files $uri $uri/ =404;
    107         fastcgi_pass unix:run/php72-fpm.sock;
    108         fastcgi_index index.php;
    109         include fastcgi_params;
    110         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    111     }
    112 }
    113 
    114 # nfsw server.
    115 server {
    116     server_name nfsw.dingy;
    117 
    118     location / {
    119         try_files $uri @nfsw;
    120     }
    121     location @nfsw {
    122         uwsgi_pass 127.0.0.1:4201;
    123         include uwsgi_params;
    124     }
    125 }