LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2010, 05:51 PM   #1
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 117

Rep: Reputation: 15
httpd.conf question


Hi guyz,
Quick question...

httpd.conf file:

ServerRoot "/etc/httpd"
DocumentRoot "/var/www/html"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

My question is, is <Directory /> option referencing ServerRoot or DocumentRoot??

Thanks in advance!!
 
Old 09-06-2010, 05:54 PM   #2
fbobraga
Member
 
Registered: Jul 2010
Location: S„o Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
I think it would be none of them: is the machine/host root... but check-out it: http://httpd.apache.org/docs/current...html#directory

Last edited by fbobraga; 09-06-2010 at 05:57 PM.
 
Old 09-06-2010, 07:15 PM   #3
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 117

Original Poster
Rep: Reputation: 15
Can anyone confirm??
 
Old 09-06-2010, 07:21 PM   #4
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

That I believe is document root but did you type that?
 
Old 09-06-2010, 09:16 PM   #5
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 117

Original Poster
Rep: Reputation: 15
Yes jmc1987.

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

AND

<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Both are in my httpd.conf
 
Old 09-06-2010, 11:06 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The <Directory /> refers to all files on the system (in case you have web-accessible files in multiple location referred to by an alias or ScriptAlias, e.g. CGI scripts in /var/lib/cgi or somesuch). The <Directory /var/www/html> specifically refers to files within /var/www/html, i.e. under the document root. Remember you can serve files outside of the document route using Alias or ScriptAlias directives (and probably by other means too but those are the ones that are popping into my head).
 
  


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
httpd.conf question leicaphotos Linux - Newbie 3 01-28-2009 01:16 PM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd.conf <Directory> question lothario Linux - Security 3 02-12-2005 03:10 PM
httpd.conf question automicro Linux - Software 1 08-09-2003 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 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