Operating System - Linux
1753916 Members
8011 Online
108810 Solutions
New Discussion юеВ

Re: apache in linux red hat

 
Inter_1
Frequent Advisor

apache in linux red hat

Hi,

I have installed the apache in Linux red hat and it works fine. Now I have to change the httpd.conf to point to another server in the network, but I don't kow exactly what to do. I have made some changes (see attachment). The remote server has the WebLogic application server.

thanks
Taulant
I like to fix things.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: apache in linux red hat

Shalom,

http://www.linuxjava.net/howto/webapp/

The basic concept is to redirect traffic from one server to another. It can all be done with httpd.conf

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: apache in linux red hat

The "new" server where you want to redirect the page, can be reached from the clients or is in a Internal network protected by a firewall?

You can use apache redirect if the client can directly connect to the other server, you need iptables Port Address Translation if you want that clients can access internal servers that cannot be reached directly.

Usage:

Redirect / http:///

Example:

Redirect / http://www.newserver.com
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Inter_1
Frequent Advisor

Re: apache in linux red hat

Ok, but how can i redirect it. What changes do I have to make in httpd.conf

Thanks
Taulant
I like to fix things.
Ivan Ferreira
Honored Contributor

Re: apache in linux red hat

Please tell us if the clients can reach the new URL directly.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Inter_1
Frequent Advisor

Re: apache in linux red hat

from this apache server (10.10.0.15 I can access the url.
I want when I would write http://localhost that should be redirected to http://10.10.0.26:7003/MainLogin.jsp

Thanks
I like to fix things.
Inter_1
Frequent Advisor

Re: apache in linux red hat

Thanks, I did the Redirection.

I have this kind of configuration.
if i do http:10.10.0.15 (apache server) it redirect to http://10.10.0.26:7003/MainLogin.jsp

Is any other configuration to show me in the browser the Ip 10.10.0.15:7003/MainLogin.jsp
instead of http://10.10.0.26:7003/MainLogin.jsp

in order not to show as ridirection?


thanks


I like to fix things.
Inter_1
Frequent Advisor

Re: apache in linux red hat

I have seen httpd.conf in one apache server these kind or configuration for reason above.

In this case the apache is in Ip 10.0.11.90 and the redirection is in Ip 10.10.111.90

They use this configuration and I want to know why they use that and you can I implememnt it.

see attachemt

Thanks a lot
Taualnt

I like to fix things.