V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
onedayoneapple
V2EX  ›  问与答

请教一个 nginx 配置

  •  
  •   onedayoneapple · 2018-12-02 17:33:35 +08:00 · 1832 次点击
    这是一个创建于 1943 天前的主题,其中的信息可能已经有所发展或是发生改变。

    php,nginx,opencart 的网站 https://www.mysite.com/multiscraper/

    这样访问时没问题,但是

    https://www.mysite.com/multiscraper/log

    这样一直时 404

    [error] 5332#0: *32692 open() "/var/www/html/opencart/upload/multiscraper/log" failed (2: No such file or directory)

    nginx 配置 location /multiscraper { alias /var/www/html/opencart/upload/multiscraper; index index.php; } /var/www/html/opencart/upload/multiscraper 这个目录下有 index.php 请教这该怎么弄

    1 条回复    2018-12-02 17:46:20 +08:00
    yangg
        1
    yangg  
       2018-12-02 17:46:20 +08:00
    大概是 alias /var/www/html/opencart/upload/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1063 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:07 · PVG 03:07 · LAX 12:07 · JFK 15:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.