dip

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

sites.conf (1817B)


      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 
     60 ### fsfi server
     61 server {
     62     ssi on;
     63     server_name fsfi.web;
     64     root /var/www/html/fsfi/_build;
     65     index index.html index.php;
     66 
     67     location / {
     68        autoindex on;
     69     }
     70 
     71     location ~ \\.php$ {
     72         try_files $uri $uri/ =404;
     73         fastcgi_pass unix:run/php72-fpm.sock;
     74         fastcgi_index index.php;
     75         include fastcgi_params;
     76         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     77     }
     78 }
     79 
     80 # vm server.
     81 server {
     82     ssi on;
     83     server_name vm.web;
     84     root /var/www/html/vm;
     85     index index.php index.html;
     86 
     87     location / {
     88        autoindex on;
     89        include /etc/nginx/mime.types;
     90        rewrite ^/(land|macro|wp|wild|people|fashion).*$ /gallery/$1/ permanent;
     91        rewrite ^/as/photography-classes/?$ /as permanent;
     92     }
     93 
     94     location ~ \\.php$ {
     95         try_files $uri $uri/ =404;
     96         fastcgi_pass unix:run/php72-fpm.sock;
     97         fastcgi_index index.php;
     98         include fastcgi_params;
     99         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    100     }
    101 }