Solved

Apache2 and server's new domain

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now