Page 1 of 1

htaccess error

Posted: Thu Mar 26, 2020 11:15 am
by 8teenbay
Hello,

Moved my website to a new server with the same php configuration (7.3) and out going traffic stopped working. I also see this error and don't know how to fix it really since I don't have a server administrator: ".htaccess file in your /te3/ directory is not working. Currently anyone can access files inside your "tedata" directory and that is a huge security flaw. You have to protect your "tedata" directory immediately. Consult your server administrator"

Can you help me? Thanks in advance!

Re: htaccess error

Posted: Mon Mar 30, 2020 2:39 pm
by texpert
Hello,

it's hard to say why your .htaccess is not working. Maybe you are using nginx?


Best regards,
Alex

Re: htaccess error

Posted: Tue Mar 31, 2020 7:51 am
by 8teenbay
texpert wrote:Hello,

it's hard to say why your .htaccess is not working. Maybe you are using nginx?


Best regards,
Alex
Yes, I'm using Nginx. I moved to a new server and now it's not working fine. Anyway, the last server was also working with Nginx and I had any problem

Re: htaccess error

Posted: Thu Apr 02, 2020 6:36 am
by texpert
Hello,

the nginx doesn't support .htaccess (see here).
You can import your .htaccess to nginx.conf (maybe the htaccess to nginx converter helps you).

example:
location ^~ /te3/tedata {
deny all;
}

Best regards,
Alex