Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 23rd, 2001, 12:27 PM
boldingl boldingl is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 18 boldingl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Apache, firewall and DNS

this is really beginning to confuse me.

I have setup my webserver behind a fireall - the firewall is simply forwarding port 80 requests to the webserver.

The webserver has the same IP address (inside the firewall) as the outside address of the firewall.

I have my DNS hosted at easyDNS, and have created host records for both www.mydomain.com as well as mydomain.com - rather than using the easyDNS default of aliasing www.mydomain.com to mydomain.com (the apache manual recommeds having a CNAME record for each host)

I have set my /etc/hosts file so that for all domains I have something like:

my.ip.address mydomain.com www.mydomain.com

I have also setup apache to use namebased virtual hosts, specifying the firewalls outside IP address in the NameVirtualHost directive.

At the moment, whenever I browse to ANY of my domains I get the same as I would if I browsed to my IP address - its as if the virtualservers are not working.

Any ideas?

Reply With Quote
  #2  
Old July 24th, 2001, 04:58 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I have set my /etc/hosts file so

hosts file is intended for local use. You want all vhosts to be resolvable to the same IP as www.mydomain.com, so tell easyDNS to host the new domain and point it to the same IP address as www.mydomain.com.

>> the apache manual recommeds having a CNAME record for each host

I don't agree with that. I suggest multiple A records which is more reliable.

>> The webserver has the same IP address (inside the firewall) as the outside address of the firewall

This is correct. Your next step is to make sure anyone on the web can lookup your vhost and resolve to the same IP as www.mydomain.com. Do not even attempt to configure Apache if DNS part is not yet configured properly.

Reply With Quote
  #3  
Old July 24th, 2001, 08:24 AM
boldingl boldingl is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 18 boldingl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the help...

I've now removed all the stuff for the vhosts from /etc/hosts.

an NSLOOKUP of my www.mydomain.com resolves to the correct ip address, a ping also goes to the correct ip address.

I've installed lynx on the webserver - from this machine I can access and browse the vhosts without a problem.

it appears that the DNS is set up correctly - as I can resolve the correct IP addresses.

It seems very bizarre.

Reply With Quote
  #4  
Old July 24th, 2001, 09:35 AM
boldingl boldingl is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 18 boldingl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm going to try something...

I have two machines behaving in the same manor.

It occured to me that I used to have them setup as 192.168.1.100 and 192.168.1.200 respectively - the broadcast address being 192.168.1.255 and default GW on each being 192.168.1.1 and 192.168.1.2 respectively (the internal IP address of my firewalls).

Having changed the IP address of the webservers to their respective outside IP addresses I think I now need to change the ip addresses of the internal firewall nics, and also change the broadcast and default gateways - this hadn't already been done.

I'll have to get my ISP to do that as my machine are colocated, we'll see what happens.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache, firewall and DNS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway