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.
Enable .htaccess ?
Enable .htaccess ?
Well, I have a fresh install VestaCP, my problem is .htaccess dont work, how enable this?
I need change the extension from a file php to png with .htaccess
I need change the extension from a file php to png with .htaccess
Re: Enable .htaccess ?
Nginx doesn't support .htaccess files.
.htaccess files are a resource/performance hog and this is not good for your website/server speed.
Every time Apache handles a request it first checks and processes any .htaccess file in the same directory as the file it is serving. Not everyone knows this but Apache also goes through all the parent directories, and in every single one of them it checks for .htaccess files.
Another issue with dynamic .htaccess files is the fact it is really insecure as it is providing a way to alter server and website settings from a single file that is located inside the home directory of each website. This won't happen if you have your rules inside your Nginx configuration, as only root permission is granted to access them.
.htaccess provides a convenient shortcut for the lazy admin or developer, but also kills performance, makes configuration issues more difficult to track down, and opens yet another attack vector on your site.
You're well rid of them.
.htaccess files are a resource/performance hog and this is not good for your website/server speed.
Every time Apache handles a request it first checks and processes any .htaccess file in the same directory as the file it is serving. Not everyone knows this but Apache also goes through all the parent directories, and in every single one of them it checks for .htaccess files.
Another issue with dynamic .htaccess files is the fact it is really insecure as it is providing a way to alter server and website settings from a single file that is located inside the home directory of each website. This won't happen if you have your rules inside your Nginx configuration, as only root permission is granted to access them.
.htaccess provides a convenient shortcut for the lazy admin or developer, but also kills performance, makes configuration issues more difficult to track down, and opens yet another attack vector on your site.
You're well rid of them.
-
- Posts: 88
- Joined: Thu Mar 06, 2014 7:52 pm
- Contact:
Re: Enable .htaccess ?
If I want to disable .htaccess, all I need to do is change AllowOverride All to None in the template (.tpl) files, right?JRJr wrote:Nginx doesn't support .htaccess files.
.htaccess files are a resource/performance hog and this is not good for your website/server speed.
Every time Apache handles a request it first checks and processes any .htaccess file in the same directory as the file it is serving. Not everyone knows this but Apache also goes through all the parent directories, and in every single one of them it checks for .htaccess files.
Another issue with dynamic .htaccess files is the fact it is really insecure as it is providing a way to alter server and website settings from a single file that is located inside the home directory of each website. This won't happen if you have your rules inside your Nginx configuration, as only root permission is granted to access them.
.htaccess provides a convenient shortcut for the lazy admin or developer, but also kills performance, makes configuration issues more difficult to track down, and opens yet another attack vector on your site.
You're well rid of them.