LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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


Closed Thread
  Search this Thread
Old 10-22-2009, 02:43 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
Multiple Directory Indexing and Security??


I have a Fresh Fedora 11 running on my Dell Laptop.I was exploring Directory Indexing and Security aspect of Apache.
One Doubt I have on my mind and would like to be suggested is:

Say, Under /etc/httpd/conf/httpd.conf
I have entry like:

Code:
DocumentRoot "/var/www/html"
Code:
<Directory "/var/www/html/pdfs">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
Restart the Apache Service.
Whenever I browse http://localhost/pdfs

It works Fine !!


Now Say, I have one more Directory to share: Say, /www/publish

Will this entry work:

Code:
<Directory /www/publish>
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
Then I wonder what URL I need to enter into Browser.
Am I doing something wrong?

Is One DocumentRoot restricted to one Apache Server?
Pls Suggest?

Last edited by your_shadow03; 10-22-2009 at 02:47 AM.
 
Old 10-22-2009, 03:11 AM   #2
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
Is it /www/publish or /var/www/publish?
Have you tried this?
 
Old 10-22-2009, 03:14 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I have checked the file:

It is /www/publish?
Will it Work ??

Do I need declare seperate DocumentRoot for the same?
I doubt..I think :

ONE DOCUMENTROOT IS RESTRICTED TO ONE APACHE SERVER.
Am I wrong?

Last edited by your_shadow03; 10-22-2009 at 03:16 AM.
 
Old 10-23-2009, 04:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Closed ... one of serverl (>5 dupes/closely related threads)
 
  


Closed Thread


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
Apache Directory Indexing and permission? your_shadow03 Linux - Newbie 3 10-20-2009 11:30 PM
Can not disable Directory Indexing on a Slackware 9.1 Apache 1 Webserver... mtlhd Linux - Server 4 09-22-2009 11:13 AM
recoll indexing error while indexing Mail/ [SOLVED] ajnabi Linux - Software 1 09-14-2009 01:44 AM
Directory Indexing Apache bborisovich Linux - Server 2 03-07-2008 09:16 AM
Apache Directory Indexing 403 Error 70k51k Linux - Software 0 09-30-2003 12:26 AM

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

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