Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-03-2005, 02:46 PM   #1
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Virtual hosts and port forwarding


I've set up an apache2 server on a debian machine (let's call it webmachine).
I've got another debian, running as a router/firewall (let's call it fwmachine).

I've defined 2 virtual hosts on my httpd config : test1.webmachine and test2.webmachine.
I configured wildcards dns with bind9 on fwmachine, so that *.webmachine points to webmachine.

OK, this works fine.

Then I changed the httpd config so that the virtual hosts are defined with my dyndns domainname : and

I redirected port 80 to webmachine.
I enabled wildcard dns on, so that is resolved with my public IP.

So, I thought it would work as well as on my lan... anyway it doesn't : whatever the name (, I use to access my website it's the webpage of which opens on the webbrowser.

Does anyone have an idea... I just don't see what difference it makes between the 2 cases I described, so every new test I try is more silly than the former...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Forwarding port 80 to two hosts from a Linksys router ridertech Linux - Networking 1 08-19-2004 12:56 PM
Virtual Hosts, defaults on port 81 with Apache not working S3ct0r Linux - Networking 2 06-19-2004 03:35 PM

All times are GMT -5. The time now is 10:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration