http redirect /var/www on ubuntu12.04
I've setup several virtual hosts by using a2ensite.
That works fine. What I would like to change is the access to:
Right now it goes to /var/www/index.html
I would like to change that to one of my vertual servers.
I know I can do:
mv www www_orig
ln -s /home/my/virtul/server1 www
Is this the best way? I would rather use some kind of redirect.
I am having trouble figuring out exactly how to use apache Redirect
and if it is applicable to my situation/goal.
The same with Alias.
Really do not want to use mod_rewrite, even if it applies.
still a lot to learn.... :-(
You can add:
However, I also have external access enabled through the router (137.x.y.z) to that server.
And now those http requests still go to /var/www/index
How do I change that?
Thanks. Great point to modifying default.
I've changed default's root path and everything works as expected.
If nobody else adds anything - I'll mark it solved in a few days.
|All times are GMT -5. The time now is 06:52 AM.|