Solved

Apache2 and server's new domain

Posted on 2008-10-15
2
195 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

829 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