Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
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 pm I'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;
}