Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to redirect request to my new apache server?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can someone help me how to redirect the requests to my new apache server. i want to reduce the load of my old apache server.

surgee
(visitor)
surgee@usa.net

 
If you have a dns server that is protecting them both, you can put them into round robin rotation. Theoretically, it balances the load equally between the two ip's. How this works is you dns table holds two ip addresses that point to one name. So when user A types in he gets pointed at the first ip. If he types it again, he'll get directed to the second ip. So essentially, your web servers have two names in the dns server. Their real one, and their fake one. The fake one is what is load balanced. HTH.

Mike
 
If you want to redirect visitors based on certain criteria like the page they're trying to access, their IP, or the page that referred them then you can use mod_rewrite (if your apache installation supports it) to route these requests to your other apache server.

It's not as easy as the DNS method, but it gives you more control on who to redirect and who to serve.

Cryptonium
 
Thankyou.

I have 2 more questions now.


Now I have set up a new apache server and moved all the files and directories(web pages) from the previous server as my management wanted to have it that way.
It is on Solaris 8 and Apache 1.3.20 with mod_ssl.
Installed in /usr/local directory. Moved (except bin)
all other files(conf, cgi-bin,etc..) have been moved to
/usr/local/etc/httpd directory.
When I start (/usr/local/apache/bin/apachectl start) it gives and error
fopen: No such file or directory
httpd: could not open document config file /usr/local/apache/conf/httpd.conf.


My waisgate (gateway) software is running in the old server,
how do i authenticate from this server. Should i do a proxypass or rewrite.. and how do i do that. I need this help urgently.

surgee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top