LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-26-2003, 09:13 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
DocumentRoot apache


i finally got apache up and running but now im trying to figure out what directory my webpage goes in. the help files say DocumentRoot /usr/web
no such directoy exists on my machine.

also can i test my own webpage by typing in my address to see if others can acess it. i have no errors now and if i type in http://localhost/ or http://127.0.0.1 then i see the default web page that tells me everthing is good. but if i try to http://www.schrock.no-ip.org then i get a unknown host. could this be due to my fire wall im using firestarter. is there some way i need to configure my firewall to allow for apache. maybe selecting www for my network service access. or maybe just completely open port 80 up.

redhat 8.0

thanks for any advise,
AD
 
Old 02-26-2003, 10:02 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Okay there are a couple of questions in there.

1. If nothing has been changed the default place for your web files is /var/www/html.

2. Yes you must open up your firewall to allow the www service on port 80.
 
Old 02-26-2003, 10:33 PM   #3
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
well i put my generic webpage in the directory file:/mnt/hda2/webpage/TEST1.HTML and im still getting my defualt page. im going to see if i have changed this setting somehow. also maybe you or someone else might know of a way of testing to see if my isp blocks port 80 i checked my isp's website with no luck. i really dont want to call and ask that probly wouldnt be a good idea.

i regesterd a domain name it said it will take 24 hours before it will be excessiblef from the WWW hopefully i can get this going tomarrow.

thanks for all your help Crashed_Again this is a completely new thing to me ive been stuck behind CAD systems for way too long ,
AD
 
Old 02-27-2003, 12:28 AM   #4
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
here is my file:/etc/httpd/conf/httpd.conf
it says that server root is /etc/httpd
hmmmm maybe this is a redhat thing?

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"
 
Old 02-27-2003, 02:38 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 68
What you are interested in is 'DocumentRoot' not ServerRoot.

It will be something like '/var/www/html' and that is where you would place your index.html page.

If you are interested I have an iptables script which will drop all packets except those for port 80.
 
Old 02-27-2003, 07:17 PM   #6
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
'/var/www/html' didnt work i renamed my html file to index.html also

i have firestarter installed. what is your opinion on this?

here is my home page i can see it from the world wide web
www.schrock321.com

i still cant find the right directory to put my webpage though. redhats website says /home/httpd/html - where your HTML files will go

http://www.redhat.com/support/resour...er-Tips-4.html

this directory doesnt exist so i created it.

this is crazy im thinking about reinstalling the server from apt-get instead of what i have been using from on the redhat cd's. maybe its red hat and a different rpm build might have happened with freshrpms.net

thanks,
AD
 
Old 02-28-2003, 12:04 AM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 68
Ok, read your httpd.conf carefully, forget what the docs say, or what a website says and find out what your DocumentRoot is. That is where you put your top level index.html

This is what mine is, but of course your's will be different:
Code:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/home/httpd/htdocs"
either put your index.html here, or change the directive to where you want to serve your website from.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Apache DocumentRoot walterbyrd Linux - Software 1 10-18-2005 03:30 PM
Apache DocumentRoot problem elliottsb Linux - Software 6 02-24-2005 09:40 PM
Apache won't display files in DocumentRoot PiGuy Linux - Newbie 6 01-21-2005 01:33 PM
how to change apache documentroot tr3s Red Hat 6 08-31-2003 10:34 AM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 05:39 PM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration