Browse Source

nginx: remove mu. et al, add /temp/

master
Alison Watson 8 months ago
parent
commit
70717c72e9
1 changed files with 10 additions and 24 deletions
  1. +10
    -24
      network/nginx.conf

+ 10
- 24
network/nginx.conf View File

@@ -5,6 +5,8 @@ events {
}

http {
disable_symlinks off;

include mime.types;
default_type application/octet-stream;
sendfile on;
@@ -12,39 +14,23 @@ http {
gzip on;
charset utf-8;

server {
listen 80;
server_name heavenisin.space;

include common.conf;

location /gopher/ {
root /srv;
index index.html index.htm;
autoindex on;
}

location / {
root /srv/http/pub;
index index.html index.htm;
}
upstream php-handler {
server unix:/run/php-fpm.sock;
}

server {
listen 80;
server_name mu.heavenisin.space;
listen 80;
server_name heavenisin.space;
index index.html index.htm;

include common.conf;
root /var/www/pub_http/;

location / {
proxy_pass http://127.0.0.1:8000/;
location /temp {
alias /tmp/hosting/;
}
}

upstream php-handler {
server unix:/run/php-fpm/php-fpm.sock;
}

server {
listen 81;
listen [::]:81;


Loading…
Cancel
Save