Open YGQ8988 opened 5 years ago
You could add a new nginx conf for hexo-admin:
sudo vim /etc/nginx/conf.d/hexo-admin.conf
server {
listen 80;
server_name www.xxxx.com;
location /admin {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://127.0.0.1:4000/admin;
}
}
Then access to http:www.xxxx.com/admin.
加载很慢,有没有办法解决呢?
请教 这样设置成功了吗?我在宝塔面板里这么写好像并不行?
I use the NGINX proxy for my hexo. How can I use NGINX to route this hexo-admin?