# Passbolt install in a subfolder

**URL:** <https://community.passbolt.com/t/passbolt-install-in-a-subfolder/2885>\
**Category:** Installation Issues\
**Created:** [July 2, 2020, 2:55pm UTC](https://community.passbolt.com/t/passbolt-install-in-a-subfolder/2885 "2020-07-02T14:55:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MrPass](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MrPass](https://community.passbolt.com/u/MrPass)\
**Post date:** [July 7, 2020, 7:31am UTC](https://community.passbolt.com/t/passbolt-install-in-a-subfolder/2885/5 "2020-07-07T07:31:48Z")

</div>

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/:

```auto
[...]
	location ^~ /passbolt {
		alias /var/www/passbolt/webroot; 
		try_files $uri $uri/ @passbolt;

		location ~ \.php$ {
	        include snippets/fastcgi-php.conf;
 			fastcgi_param SCRIPT_FILENAME $request_filename; 
			fastcgi_pass 127.0.0.1:9000;
		}
	}

	location @passbolt {
		rewrite /passbolt/(.*)$ /passbolt/index.php?/$1 last;
	}
[...]

```

And, now I can access to my Passbolt by [http://localhost/passbolt](http://localhost/passbolt) !  
Hope that can help someone else.

Regards ! 🙂

---

_[View the full topic](https://community.passbolt.com/t/passbolt-install-in-a-subfolder/2885)._
