httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zm <zzzz_m...@hotmail.com>
Subject [users@httpd] Virtual Host port forwarding
Date Tue, 12 May 2009 15:02:39 GMT

Hi,

I've installed Apache HTTP Server 2.2.11 and I'm trying to configure it to
do the following trick:

I have 1 server, connected through 1 router. I payed for domain
"mydomain.com" (ficticious), and it will point toward my router with
success.

My router forwards port 80 to my server IP (192.168.1.1), also to port 80.

In my server, I have 2 services running:

Apache HTTP server on port 80
Webserver (tomcat) on port 8080
SVN server on port 8081

I want my apache server on port 80 to make the following forwardings:

if "www.mydomain.com" forwards to "192.168.1.1:8080"
if "svn.mydomain.com" forwards to "192.168.1.1:8081"
if anything else, fails ... or maybe to a static apache server page that
presents some static html page, saying "hello there, go away" (it could be
defined on apache http server itself).

Is it possible to do that?

What configs should I put on "httpd.conf" VirtualHost?

I'm trying with something like:
<VirtualHost www.mydomain.com:80>
    ServerName 192.168.1.1:8080
</VirtualHost>
<VirtualHost svn.mydomain.com:80>
    ServerName 192.168.1.1:8081
</VirtualHost>

Should this work?

Thanks
-- 
View this message in context: http://www.nabble.com/Virtual-Host-port-forwarding-tp23504328p23504328.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message