LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to Protect the Document root in Linux ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-protect-the-document-root-in-linux-4175439244/)

bala.linuxtech 11-29-2012 12:06 AM

How to Protect the Document root in Linux ?
 
Hi guyz ,

I am Using Centos 5.5 Box and Apache 2.2.4 version..,

I am going to share the directories using Apache and i would like to know Is there any other way to protect the Document root without .htaccess and .htpasswd method ?

Pls Guide me Guyz !


Regards
Bala

acid_kewpie 11-29-2012 04:29 AM

anything in those files can be equally specified in the main httpd.conf file.

comparison here http://wiki.apache.org/httpd/Htaccess

bala.linuxtech 11-29-2012 04:31 AM

Quote:

Originally Posted by acid_kewpie (Post 4839406)
anything in those files can be equally specified in the main httpd.conf file.

comparison here http://wiki.apache.org/httpd/Htaccess


once again thanks chris ..

bala.linuxtech 11-30-2012 01:21 AM

Quote:

Originally Posted by bala.linuxtech (Post 4839407)
once again thanks chris ..

Hi chris

I would like to know , any other method is there for protect the document root except .htaccess and .htpasswd method ?

pls help me

Regards
Bala.Linuxtech

bala.linuxtech 11-30-2012 01:23 AM

Quote:

Originally Posted by bala.linuxtech (Post 4840002)
Hi chris

I would like to know , any other method is there for protect the document root except .htaccess and .htpasswd method ?

pls help me

Regards
Bala.Linuxtech

Chris

Please tell me , Is Apache server allows Online modification while sharing the files via apache ?

Thanks in advance

Regards
Bala.Linuxtech

John VV 11-30-2012 02:31 PM

see the Apache docs
for locking down a folder from the httpd.conf
KEEP SELinux set to ENFORCING

KEEP the docroot OWNED BY "APACHE "


All times are GMT -5. The time now is 09:11 AM.