LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configuring apache to point to internal server (http://www.linuxquestions.org/questions/linux-networking-3/configuring-apache-to-point-to-internal-server-585803/)

immortaltechnique 09-19-2007 08:13 AM

Configuring apache to point to internal server
 
:scratch:
Hi all,
Now am having a slight dilemma here. This is my scenario: I have a webserver running fedora 7 and it has 2 ips public and private. It also hosts one website and am using xampp as my webserver and database.
Now inside my network i have another server running the same OS that has only one private address and hosts an E learning system. I want the e learning system to be accessible from the internet but its only possible via a public ip which i dont have at the moment.
For the time being how can i configure the public webserver to allow requests to my second server hosting the elearning system securely from the internet?

Your input will really be appreciated.
Thanks

rossonieri#1 09-19-2007 03:23 PM

hi,

for that purpose - you can create a reversed-proxy virtual server which handling request for the internal web-server. put another alias (CNAME) for the site in the DNS, and do the translation (reversed-proxy)on your public-facing web-server.

the documentation is available on apache's site.

HTH.

acid_kewpie 09-19-2007 03:45 PM

check out the proxypass and proxypassreverse directives for apache, and the examples in the documentation for that. should sort you out fairly easily.

immortaltechnique 09-20-2007 09:08 AM

Thanks alot for your timely reply. Now i am using xampp and it has all the configuration files thrown in a folder known as extras but there is no single file that has the proxyreverse module.
However i found it in the /etc directory. I wanted help on how this file is used from any one who has done it before in xampp.

Thank you.

acid_kewpie 09-20-2007 01:52 PM

your choice of xampp is largely irrelevant. apache is still going to be configured the same. the directives listed go inside your virtual host directives, wherever you put them, probably just the standard httpd.conf


All times are GMT -5. The time now is 04:33 PM.