Nginx Reverse Proxy Configuration Notes

将 yoursite.com 域名下的所有路径反向代理到 localhost:8080: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 server { root /var/www/html; server_name yoursite.com; location / { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_redirect off; } # SSL settings } 将根路径代理到 localhost:8080,并将 /web02/ 代理到 localhost:18080: ...

2023-11-01 · 1 分钟 · 173 字 · Carinnan

Install Nextcloud Server with Snap, Nginx, and HTTPS

Snap provides an easy and clean way to install Nextcloud. Prepare a domain name resolved to the IP address of your server. 1 2 3 # Debian/Ubuntu, as root: apt install snapd snap install nextcloud Enter your domain in a browser, complete the setup shown on the welcome page, then enable HTTPS: ...

2022-09-09 · 2 分钟 · 230 字 · Carinnan