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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-26-2003, 09:13 PM
|
#1
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Rep:
|
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
|
|
|
02-26-2003, 10:02 PM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
02-26-2003, 10:33 PM
|
#3
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Original Poster
Rep:
|
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
|
|
|
02-27-2003, 12:28 AM
|
#4
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Original Poster
Rep:
|
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"
|
|
|
02-27-2003, 02:38 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Rep:
|
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.
|
|
|
02-27-2003, 07:17 PM
|
#6
|
Member
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343
Original Poster
Rep:
|
'/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
|
|
|
02-28-2003, 12:04 AM
|
#7
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,762
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|