Hi there,
I am trying to set up a reverse proxy using apache (httpd) on CentOS-6.
I am using the default httpd configuration so
[code]DocumentRoot "/var/www/html"[/code]
However, it turned out by my test that I have to put my .htaccess file under /var/www in order to have the reverse proxy working.
If it is instead placed under /var/www/html, the reverse proxy does not work.
But shouldn't I put it under the DocumentRoot?
Thanks a lot.
Shi
httpd:where should the .htaccess file be?
Re: httpd:where should the .htaccess file be?
It must be placed inside your documentroot.
AllowOverRide must be changed from None to All in the httpd.conf file for .htaccess to work.
Thanks,
AllowOverRide must be changed from None to All in the httpd.conf file for .htaccess to work.
Thanks,