Hi everybody!
I have a problem about redirection over Apache2 over Debian Lenny. We have build a LAMP, and our programmer make a software with these features:
When you put on your browser (i.e.)
http://hugohome.org/inside, you access to the program in /var/www/vhosts/hugohome/inside. And when you put
http://hugohome.org/outside you access to the program in /var/www/vhosts/hugohome/outside. Today, if you just put
http://hugohome.org our Apache answers 403 (forbidden), because we had blocked folder access. (You know....isn't the right way). Our Apache's Document Root is in /var/www/vhosts/hugohome.
Our goal is to change definitely
http://hugohome.org to access -> /var/www/vhosts/hugohome/inside. This is our main intention. Also, we can continue with
http://hugohome.org/outside pointing to /var/www/vhosts/hugohome/outside. I thought, hmm easy!: I can change the DocumentRoot to /var/www/vhosts/hugohome/inside and try with an Alias to outside. But the problem is that the programmer has taken the software reference with /var/www/vhosts/hugohome and when I tried to change the Document Root the programas didn't work fine (loops, error 404, etc).
¿How can I do?. I have tried with Apache with many manners, but I just have a relative success with:
"RedirectMatch ^/$ http://hugohome.org/inside/". It works, but the Browser shows the ugly
http://hugohome.org/inside. Our intention is just show
http://hugohome.org. Unfortunately we can't work directly with the DNS servers, and I guess that I can resolve with (i.e.) Apache and Bind together.
¿Any ideas?. Any help will be truly appreciated!!
Have a beautiful weekend!
Hugohome