We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Hide .user.ini
-
- Posts: 7
- Joined: Sun Jan 18, 2015 3:18 pm
Hide .user.ini
How can I hide .user.ini file in Wordpress installation?
I've tried to include that different ways on /home/username/conf/web/website.nginx.conf:
---
location ~ \.user\.ini$ {
deny all;
}
---
location ~ ^/\.user\.ini {
deny all;
}
---
And to add ini on htaccess and htpasswd:
location ~* "/\.(htaccess|htpasswd|ini)$" {
deny all;
return 404;
}
---
How can I hide it? Should it be included with Wordpress template?
I've tried to include that different ways on /home/username/conf/web/website.nginx.conf:
---
location ~ \.user\.ini$ {
deny all;
}
---
location ~ ^/\.user\.ini {
deny all;
}
---
And to add ini on htaccess and htpasswd:
location ~* "/\.(htaccess|htpasswd|ini)$" {
deny all;
return 404;
}
---
How can I hide it? Should it be included with Wordpress template?
Re: Hide .user.ini
Do you using http or https protocol?mrluisiko99 wrote: ↑Thu Jul 05, 2018 10:34 pmI've tried to include that different ways on /home/username/conf/web/website.nginx.conf:
If https then you need to edit /home/username/conf/web/website.nginx.ssl.conf
Code: Select all
location ~ ^/\.user\.ini {
deny all;
}