Hi everyone !
This is my first time on this forum but i really need some help.
Moreover, my english is not very good, i’ll do my best :).
So, i want to have Passbolt in a subfolder of my web server like http://localhost/passbolt/.
Because now, i need to have another web site.
However, i do my best in order to fine a solution but it doesn’t work…
I know, in the official documentation they say : " Note: the configuration does not support serving passbolt on a subdirectory fashion. For example, scenarios like https://mydomain.com/passbolt are not supported by default"
How can i activate this feature?
I tried to modify this file : “/etc/passbolt/passbolt.default.php”, with ‘base’ => ‘/passbolt’. It didn’t work.
I tried to play with my location in “/etc/nginx/sites-available/default” but no success too…
It also would be wise to make the other site you have on the server also serve from a unique, established path so there is no confusion. Paths (subfolders) are useful when you have control over the call to the server. Otherwise, you might want to go with a subdomain approach instead.
This is very helpful.
However, i have another problem now…
Phpinfo page work at the /, so PHP-FPM is running and the configuration is good.
At the /passbolt path, the PHP code is not executed but downloaded…
I know that is a problem from PHP-FPM but i don’t know what i am doing wrong.
Mostly, it works on my root…
I’ve made some search on the web but nothing works for me.
I’ve found a solution, after few days of searching !
Thanks for your help, i understand how it work the server block and location in NGINX.
First, i will reinstall by sources because the package configure nginx automatically.
Cause, with the package, when i try to modify passbolt.default.php, this configuration was not loaded.
So, by sources, i can modify this configuration before that nginx was configured.
I’ve modified this file : “/etc/passbolt/passbolt.default.php”, with ‘base’ => ‘/passbolt’.
Then i run the install script.
After that, i’ve deleted the nginx-passbolt.default.conf in /var/www/nginx/sites-enabled/ and i put this conf in the default configuration in /var/www/nginx/sites-enabled/: