Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Hide .user.ini

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
mrluisiko99
Posts: 7
Joined: Sun Jan 18, 2015 3:18 pm

Hide .user.ini
  • Quote

Post by mrluisiko99 » Thu Jul 05, 2018 10:34 pm

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?
Top

gmalets
Posts: 20
Joined: Tue Jun 26, 2018 7:36 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Hide .user.ini
  • Quote

Post by gmalets » Fri Jul 06, 2018 6:36 am

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:
Do you using http or https protocol?
If https then you need to edit /home/username/conf/web/website.nginx.ssl.conf

Code: Select all

location ~ ^/\.user\.ini {
deny all;
}
and then "systemctl restart nginx"
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password