LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Virtual host (https://www.linuxquestions.org/questions/linux-newbie-8/virtual-host-768395/)

nagavinodh 11-11-2009 06:52 AM

Virtual host
 
Hi,
I need to run different applications from different servers and connect these applications.

is it possible to redirect via apache server.
Os:red hat4.2
Apache version2.0.63
Here different server has different applications.
We installed the apache on 172.19.0.25.
172.19.0.23 has two applications

http://server1.yan.com:8001/
http://server1.yan.com:8011/
I would like to redirect these applications through apache as proxy (172.19.0.25).

centosboy 11-12-2009 02:32 AM

Quote:

Originally Posted by nagavinodh (Post 3752808)
Hi,
I need to run different applications from different servers and connect these applications.

is it possible to redirect via apache server.
Os:red hat4.2
Apache version2.0.63
Here different server has different applications.
We installed the apache on 172.19.0.25.
172.19.0.23 has two applications

http://server1.yan.com:8001/
http://server1.yan.com:8011/
I would like to redirect these applications through apache as proxy (172.19.0.25).


have a look at mod_proxy for apache

Code:

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

nagavinodh 11-12-2009 04:02 AM

virtaul host at apache
 
Quote:

Originally Posted by centosboy (Post 3753922)
have a look at mod_proxy for apache

Code:

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

thanks for reply.
I tried to use the mod_proxy.I don't know how to add the entry in httpd.conf.
apache

centosboy 11-13-2009 07:23 AM

Quote:

Originally Posted by nagavinodh (Post 3754009)
thanks for reply.
I tried to use the mod_proxy.I don't know how to add the entry in httpd.conf.
apache

look at some examples

Code:

http://www.helicontech.com/ape/doc/mod_proxy.htm
you dont have to add the entries in httpd.conf. you can add them in /etc/httpd/conf.d/filename.conf or a .htaccess file


All times are GMT -5. The time now is 04:34 AM.