服务器问答
/etc/nginx/conf.d# cat wiki.conf
server {
listen 1919;
server_name www.A.tk;
location / {
proxy_pass http://ip-addr:3000;
root /var/www/wikijs/;
index index.js init.js agent.js;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}
/etc/nginx/conf.d# cat tank.conf
server {
l抗投诉服务器isten 1919;
server_name B.cf;
# rewrite ^(.*)$ https://blog.eyeblue.cn$1 permanent;
location / {
proxy_pass http://ip-addr:6010;
root /srv/tank;
index index.html;
proxy_set_header host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass_request_headers on;
client_max_body_size 8m;
}
}
/etc/nginx/conf.d# cat ../sites-enabled/default
# Default server configuration
#
server {
listen 1919 default_server;
listen [::]:1919 default_server;