Solved

Apache2 and server's new domain

Posted on 2008-10-15
2
189 Views
Last Modified: 2010-04-21
I just changed a debian (Etch4.04) test server over to production.  The domain and IP address were changed on a separate DNS server's namedb/ns records (Our own name servers).  On the debian server "uname -a" correctly brings up the new domain.

Problem: The domain does not work in a browser (time out).  The connection is refused (via a command line on another server).

What else should be set up for apache2 on Debian 4.04 to use the new domain?
0
Comment
Question by:arikin
2 Comments
 
LVL 20

Accepted Solution

by:
edster9999 earned 125 total points
ID: 22729425
1. Check the DNS is correct and working (from a seperate machine).  Ping it by name and see if you get the right address and can there.

2. Check you are running apache on the server and it is not firewalled off.
go to seperate machine again and type
telnet www.whatever.com 80
This tries to open a connection on port 80 (standard web port).

If this says 'connected' then you are working.  If not then make sure you are running apache and it is on port 80 and accepting requests from outside (check the bind address - if you are not sure set it to 0.0.0.0)
If this is ok check the firewall on the machine and on the network.

3. If all this is ok then you are not getting a page as you have not told apache to server pages for this address.  Are you planning to use multiple addresses / names on this box or will it serve the same pages for every request.
Set this up in httpd.conf or in vhosts.d folder (if it has one)

0
 

Author Closing Comment

by:arikin
ID: 31506584
Thanks for covering all the bases so well.  This turned out to be a firewall.  The IP was being filtered at the gateway switch level because the previous server's settings were still there.
Thanks again.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 91
Delete a folder on a linux computer on a regular basis 10 37
AWS EC2 & RDS Instance 5 36
Linux Real Time Memory on Distinct 24 Cycle 7 22
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question