×

Loading...
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!

在自家的服务器上安装电子记账网络应用Firefly-III

我用的是Nginx,不知道怎么设置才能让该应用出现在网站的子目录。现在在根目录,不方便安装其他的应用。有建议的话不胜感激。
Report

Replies, comments and Discussions:

  • 枫下家园 / 电脑电信 / 在自家的服务器上安装电子记账网络应用Firefly-III +1
    我用的是Nginx,不知道怎么设置才能让该应用出现在网站的子目录。现在在根目录,不方便安装其他的应用。有建议的话不胜感激。
    • 改firefly.conf文件里的location section +1
      • 关于设置子目录,我找到了这个链接 。但自己试了半天还是不行。有时间再好好研究一下,主要不熟悉网络服务器的配置方法。
        Here is my current server block (below). I have a separate wordpress blog installed on /blog and need to route /blog to the directory "/home/forge/example.com/public/blog". I've tried a few option...
        • 你的需求说的不清楚,我建议你说的具体点,应该很多人愿意帮忙的。
          • 比方我现在使用应用,需要访问192.168.0.3。但我想改成访问192.168.0.3/firefly-iii
            • 你加个/firefly-iii 的location不行吗?
              • 我试过把location / {...}改成location /firefly-iii {...}。不行。还按上面那个链接试过把location ~ \.php$ {...}改过。都不行。
                • 你看看这个?

                  I am using nginx and want to expose Firefly III under /budget/

                  The following snippet might help:

                  
                  location ^~ /firefly-iii/ {
                     deny all;
                  }
                  
                  location ^~ /budget {
                     alias /var/www/firefly-iii/public;
                     try_files $uri $uri/ @budget;
                  
                     location ~* \.php(?:$|/) {
                        include snippets/fastcgi-php.conf;
                        fastcgi_param SCRIPT_FILENAME $request_filename;
                        fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
                        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
                     }
                  }
                  
                  location @budget {
                     rewrite ^/budget/(.*)$ /budget/index.php/$1 last;
                  }
                  • 还是不行,我完全照着他这个不行,自己又试着结合原来的调整了几下,也不行。
                    • 呃…… 这东东不接触你的机器没法搞,要不你就弄个docker来玩。
                      • 是的。谢谢了。