Giter Club home page Giter Club logo

Comments (3)

jicg avatar jicg commented on June 12, 2024

linux 使用docker ,wins 用安装包 https://github.com/jicg/liteblog/files/2481053/liteblog.msi.zip

from liteblog.

Xavier-Zeng avatar Xavier-Zeng commented on June 12, 2024

linux 使用docker ,wins 用安装包 https://github.com/jicg/liteblog/files/2481053/liteblog.msi.zip

大佬有没有用nginx进行部署呢?我用nginx进行部署的时候,将nginx.config中的server配置如下:

server {
    listen       80;
    server_name  localhost;

    charset utf-8;
    access_log  /home/a.com.access.log;

    location /(css|js|fonts|img)/ {
        access_log off;
        expires 1d;

        root /home/go/src/beeblog/static;
        try_files $uri @backend;
    }

    location / {
        try_files /_not_exists_ @backend;
    }

    location @backend {
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host            $http_host;

        proxy_pass http://127.0.0.1:8080;
    }
}

用其他主机的客户端浏览器进行登陆的时候,浏览器显示长时间无法响应。我以前没有在远程服务器部署过,请问大佬知道怎么解决吗?

from liteblog.

jicg avatar jicg commented on June 12, 2024

server_name 一般 都是写域名的好像。

from liteblog.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.