GithubHelp home page GithubHelp logo

NGINX配置问题 about ourls HOT 4 CLOSED

chaunceyruan avatar chaunceyruan commented on July 27, 2024
NGINX配置问题

from ourls.

Comments (4)

chaunceyruan avatar chaunceyruan commented on July 27, 2024

抱歉,看到关闭问题中有nginx配置。

但是,全部配置完成后还是 HTTP ERROR 500 错误

有个问题:
config.php 里 'base_url' => 'http://example.com/' 加不加 'http://' 或 后'/' 还是都可以

from ourls.

takashiki avatar takashiki commented on July 27, 2024

500的话要看具体报错信息了,你可以开启debug和nginx的error_log看看。

base_url目前必须是完整url包含'/'。

from ourls.

xiaooloong avatar xiaooloong commented on July 27, 2024
server {
    listen 80;
    server_name sicaudm.com;
    root /path/to/ourls/public;
    index index.php;
    location / {
        try_files $uri $uri/ /index.php;
    }
    include enablephp.conf;
}

我使用的 nginx 配置

from ourls.

chaunceyruan avatar chaunceyruan commented on July 27, 2024

感谢 takashiki 和 xiaooloong 的帮助。

问题已经解决,应该是我自己的配置问题,nginx配置好就可以了,谢谢。

from ourls.

Related Issues (16)

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.