jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.77k stars 299 forks source link

how to use nginx agent hexo-admin #183

Open YGQ8988 opened 5 years ago

YGQ8988 commented 5 years ago

I use the NGINX proxy for my hexo. How can I use NGINX to route this hexo-admin?

colorfulshark commented 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.

linupychiang commented 4 years ago

加载很慢,有没有办法解决呢?

ufoozhenghao commented 3 years ago

请教 这样设置成功了吗?我在宝塔面板里这么写好像并不行?