Quote:
|
Originally Posted by thunder04
Works great! You are the master!
Now, for one last question...lol...
I don't have any use for this as of now...but I am curious (for my own knowledge)...
Let's say I have 'http://foo.com/bar/*'. How would I set up a redirect to redirect from 'http://foo.com/bar/*' to 'http://bar.foo.com/*'? I guess a practical application may be for redirecting users from a hypothetical 'http://www.themn12.com/forums/*' to 'http://forums.themn12.com/'*
Again, many thanks.
|
sounds good that your problem is solved. stating in simple words, m not a master

the study goes on

.
tht is a nice question, see for 'http://forums.themn12.com/*' to happen, you can make use of following ideas.For application to be loaded from
http://www.themn12.com/forums to
http://forums.themn12.com/
1. define Virtualhost within themn box and "redirect match" any request starting with ^/forums to
http://forums.themn12.com , as your virtual host registers this URL, there will be no problem.
2. You may make use of virtual hosting also to define IP address based virtual hosts which shall be listening on different IP addresses within themn12 box. this can be done by creating dummy interface.
3. Build up a local LAN for individual servers having instances of http running on them for different applications like forum. Name these individual servers the "ServerName forums.themn12.com" as well as put the entry of these servers in the hosts file of the main webserver, i.e themn12 box. remember, this LAN must be an internal one and keep the traffic from internet to passthrough themn12 box otherwise you might create a security issue. this allows you to redirect the huge traffic on individual machines rather then on a single themn12 box.
Generally speaking the best choice would be
to go for first, if traffic is little and you want it to be robust.
to go for second, if you need to have many different domains established (however, you can use many instances of http on a single server also for this.)
to go for third, if there is large performance issue, specially on a Production server.
do remember that you will have to add entry of the host in /etc/hosts otherwise this would fail badly as DNS lookup will never be able to figure out the one way traffic.
-Rahul.