我用的是Nginx,不知道怎么设置才能让该应用出现在网站的子目录。现在在根目录,不方便安装其他的应用。有建议的话不胜感激。
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;
}