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, 01:52 PM   #1
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Rep: Reputation: 15
very newbie Apache question


On RH9 Apache 2.x
I am able to access test page.

Help please,

1. where is test page located?
I checked /var/www...
2 where exactly I have to place my web page.

Weird, but in manual I didn't find this "simple" hint.
Thanks.

Michael.
 
Old 10-10-2003, 01:57 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you are using the defualt install it should be:
/var/www/html

You can probably find out with:
grep DocumentRoot /etc/httpd/conf/httpd.conf | grep -v "#"
 
Old 10-10-2003, 01:58 PM   #3
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
i think by default it goes in /usr/local/apache2/htdocs (if you installed apache in another location go there and find htdocs) and you can change it from /usr/local/apache2/conf/httpd.conf
 
Old 10-10-2003, 01:59 PM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
mla

Test Page is loaded if no HTML file is found in /var/www

Pete
 
Old 10-10-2003, 03:02 PM   #5
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks for answer.

My web page is in folder. Do I have to copy all files to /var/www directly? It will be mess with folders in www directory.

Michael.



[root@RH9 www]# ls -l
total 20
drwxr-xr-x 2 root root 4096 Jul 31 11:40 cgi-bin
drwxr-xr-x 3 root root 4096 Sep 29 10:39 error
drwxr-xr-x 3 root root 4096 Jul 31 11:40 html
drwxr-xr-x 3 root root 4096 Sep 29 10:39 icons
drwxr-xr-x 13 root root 4096 Sep 29 10:43 manual
[root@RH9 www]# cd html
[root@RH9 html]# ls
usage

[root@RH9 html]# ls -la
total 12
drwxr-xr-x 3 root root 4096 Jul 31 11:40 .
drwxr-xr-x 7 root root 4096 Jul 31 11:40 ..
drwxr-xr-x 2 webalizer root 4096 Sep 23 13:38 usage
 
Old 10-10-2003, 03:11 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
By default, the apache configuration file looks in /var/www/html for a file called index.html. So put your page in that directory and call it index.html and you will be good to go. All this stuff is defined in httpd.conf which can be found in /etc/httpd/conf. Take a look at the file and you will see how everything is setup.
 
Old 10-10-2003, 03:35 PM   #7
mla
Member
 
Registered: Sep 2003
Location: Canada
Posts: 86

Original Poster
Rep: Reputation: 15
Linux is cool with www.linuxquestions.com ))))))

after I took a look to httpd I found test page location

/var/www/error/noindex.html

Now I can fix the problem on it. Link to local documentation doesn't work after default installation of documentation package.
there is error on default test page.
Thanks to all.
 
  


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


All times are GMT -5. The time now is 10:02 PM.

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