The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
google unix.com




Thread: apache problem
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-26-2008
glen.barber glen.barber is offline
Registered User
  
 

Join Date: May 2008
Location: Philadelphia, PA, USA
Posts: 117
Quote:
Originally Posted by k2k View Post
hi all,
I can't get my index.html to display on the web browser. Please point it out the reason.
What operating system? What does your apache error log say?

Quote:
this is what i had done so far:
1. I have registered a dns name pointing to my public ip (it is done automatic)
2. my server name is set same as the dns name
3. I have configured httpd.conf like this
ServerName http://xsoldier2006.dnsdojo.org // my dns name
DocumentRoot "/var/www/html" // i place my index.html in /var/www/html
DirectoryIndex index.html index.html.var
HostnameLookups off
The ServerName option does not take 'http://'. Just the hostname of the machine. Generally output from
Code:
/bin/hostname
Make sure your /etc/hosts file matches what you put here.

Quote:
4. I have my index.html in the /var/www/html folder

what else should i do? did i miss a step? why it is not on the browser? thanks
Also, does your ISP block port 80? You can check at Open Port Check Tool .

Last edited by glen.barber; 10-26-2008 at 12:56 AM..