LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-26-2011, 12:57 AM   #1
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Rep: Reputation: 0
Cool htdocs folder in apache web server


Hi All, I am using rhel 5.7 and have installed httpd server 2.2.3 thru yum, i want to know that is the htdocs folder automatically created while installing httpd or we have to create it manually, i am referring a manual to setup a report server.
 
Old 09-26-2011, 01:05 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at your /etc/httpd/conf/httpd.conf file at the variable DocumentRoot. That points to where your 'root' directory for your webserver is, normally /var/www/html.

Kind regards,

Eric
 
Old 09-26-2011, 02:01 AM   #3
zackwasa
Member
 
Registered: Sep 2011
Posts: 52

Rep: Reputation: Disabled
The default one is /var/www/html and it is created automatically when apache is installed. There are no files there however and you will get the default apache page when accessing the webserver.

RMI

Last edited by zackwasa; 01-12-2012 at 01:07 AM.
 
Old 09-27-2011, 12:27 AM   #4
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Original Poster
Rep: Reputation: 0
Any difference in 'htdocs' & 'DocumentRoot' ? or both are the same thing. Why manual is referring 'htdocs' rather then Document Root'. Any Idea !
 
Old 09-27-2011, 01:24 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

As I understand it DocumentRoot is the variable used by Apache that contains the path to the documents whilst htdocs refers to a part that might be (and is in some distros) included in the path like in /srv/www/htdocs (for openSUSE if I'm not mistaking). Basically you can put your documents in whatever path you like (watch out for security) as long as you have your DocumentRoot point to it.

Kind regards,

Eric
 
1 members found this post helpful.
  


Reply



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
[Centos] Apache web server - SSL for specific folder Black187 Linux - Server 2 04-20-2011 10:38 PM
apache and user web folder under account directory elimq Linux - Server 2 10-27-2009 08:07 AM
Password protect a web folder on apache andy1974 Linux - Security 13 05-15-2009 01:28 AM
creating folders under opt/lampp/htdocs folder in fedora sent222 Linux - Newbie 3 01-03-2008 04:46 AM
Where is the htdocs folder for Apache? Ekim Gram Linux - Newbie 5 05-24-2003 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:46 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
Open Source Consulting | Domain Registration