LinuxQuestions.org
Review your favorite Linux distribution.
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 10-10-2003, 03:45 PM   #1
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Rep: Reputation: 15
very newbie Apache question


on Red Hat 9 Apache 2...
Can access test page (http:\\10.0.0.50)

Cannot find where is test page located.
Checked /var/www...

1. where is test page?
Do I have to replace it?

2.Where I have to copy my web page files?

Couldn't find any info in documentation about this simple step.

Thanks.
Michael.
 
Old 10-10-2003, 03:51 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
All the info and configuration of the Apache web server is in httpd.conf which resides in either:
/etc

or

/etc/apache/

This file contains everything you'll need to know about YOUR system. Take a read through it, and somewhere in there you'll have a variable for the "Document Root"

To find it an easier way, use the command
Code:
cat /etc/apache/httpd.conf | grep DocumentRoot
That'll output the line with DocumentRoot and tell you where the base is for the server.
That's where you'll want all your web pages to go. Alternatively, you can change the DocumentRoot variable to wherever your web pages are now.

-Shade
 
Old 10-10-2003, 04:15 PM   #3
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks Shade.
I printed httpd.conf
and found DocumentRoot "/var/www/html"
So I will drop all my files (with index.html) into it.

About test page. I wanted to find it for fun because the link to Documentation (on local machine) is unfunctional.
I found the problem and want to fix it.
the link is .../manual/index.html
but in manual folder are 2 different index.html files
one index.html.en and second one index.html.fr
I will try to find test page. The problem I don't know file name
and it's not in www subdirectories.
i will try some advices that another people gave me.
Eventually I created two treads about the same "stupid"
issue.

Thanks again.
Michael.
 
Old 10-10-2003, 04:20 PM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
typical installations include /var/www/htdocs/manual/ as the source of documentation.

And yes, you'll have a few index pages for different languages.
It's safe to remove what you don't want/need

-Shade
 
  


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
Newbie Apache question MontyPY Linux - Software 6 03-03-2005 04:59 AM
Newbie Apache port question waltz777 Linux - Networking 8 02-16-2005 10:12 AM
newbie apache question... jjd228 Linux - Networking 1 01-08-2004 01:57 PM
very newbie Apache question mla Linux - Software 6 10-10-2003 04:35 PM
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 09:41 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration