Prefer Apache .htacess Over Configuration in Apache Conf Files

Prefer the dot htaccess file over configuration in the Apache sites available folder.

Why You Should Apply Config to htaccess when possible

  • 1 == Prefer .htaccess configuration over /etc/apache2/sites-available
  • 2 == [.htaccess] is easier to install and change
  • 3 == [.htaccess] is more robust and highly portable
  • However Tomcat may be the Exception
  • 4 == Can Tomcat Proxy ProxyPass ProxyReverse be done in [.htaccess]
  • 5 == If NO then the below Proxy bits need to be retained

Leave a Reply

Your email address will not be published. Required fields are marked *