LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache directory links to other host (https://www.linuxquestions.org/questions/linux-server-73/apache-directory-links-to-other-host-675309/)

javaholic 10-09-2008 08:49 AM

Apache directory links to other host
 
i have two Appache servers running one is has started serving up streaming media the other is the main homepage.

I would like to create a link from the main homepage to the IP of the other host so it can be viewed from main site. I hope that made sense.

so like www.mainsite.com/otherhost/ would link to the main servicing page of an internal host server runnning the media stream like http://192.168.0.42/ or something like that.

I'm a bit unclear as to whether virtualhosts will do this for me.

robertjinx 10-09-2008 08:58 AM

You could do that with mod_rewrite and mod_proxy, otherwise I dont think it works.

javaholic 10-09-2008 09:04 AM

so it is really just a DNS thing.

robertjinx 10-09-2008 09:16 AM

No man, its a proxy thing, u will use the ip address to "transparently" redirect you to the inside website... something like that. I dont really know exacly how to explain, but look at httpd.apache.org at modules mod_rewrite or mod_redirect and mod_proxy for this issue.

I did this once, but I am not using Apache anymore and I need to do it myself to be able to explain it to you. So just try.

javaholic 10-09-2008 09:19 AM

i seem to remember doing something along time ago now with the windows version of apache. but we are talking about years ago now.

javaholic 10-09-2008 11:30 AM

Which methed would be choosen on performance alone?


All times are GMT -5. The time now is 07:13 AM.