LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 32
Virtual hosts and port forwarding


Hi,

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 : test1.mydomain.dyndns.org and test2.mydomain.dyndns.org.

I redirected port 80 to webmachine.
I enabled wildcard dns on dyndns.org, so that anything.mydomain.dyndns.org 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 (test1.mydomain.dyndns.org, foo.mydomain.dyndns.org...) I use to access my website it's the webpage of test2.mydomain.dyndns.org 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...
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:27 PM.

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