LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Multiple Directory Indexing and Security?? (https://www.linuxquestions.org/questions/linux-newbie-8/multiple-directory-indexing-and-security-763629/)

your_shadow03 10-22-2009 01:43 AM

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?

cola 10-22-2009 02:11 AM

Is it /www/publish or /var/www/publish?
Have you tried this?

your_shadow03 10-22-2009 02:14 AM

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?

Tinkster 10-23-2009 03:51 PM

Closed ... one of serverl (>5 dupes/closely related threads)


All times are GMT -5. The time now is 11:22 PM.