How to secure Websites hosted on Apache

Protecting your Linux box
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear Saeeds,
Salam,

Code: Select all

ServerName server

DocumentRoot "/home/httpd/htdocs"

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

<Directory /mrtg>
    Options FollowSymLinks
    AuthType Basic
    AuthName "Administrator's Only"
    AuthUserFile "/home/httpd/passwd/passwd"
    Require valid-user
    ErrorLog /home/httpd/logs/server_log
</Directory>
Best Regards.
Farrukh Ahmed
absar
Cadet
Posts: 13
Joined: Sat Nov 29, 2003 11:55 pm
Location: Islamabad
Contact:

RE:

Post by absar »

Nice Effort by Färrükh Ähmëd but it can be done using .htaccess file technique.

Regards
Absar Naqvi
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: RE:

Post by LinuxFreaK »

Dear Absar,
Salam,
absar wrote:Nice Effort by Färrükh Ähmëd but it can be done using .htaccess file technique.
I just trying to help him what he need. but if people can read some documentation like there is one for Apache at http://httpd.apache.org/docs/ then i think they will get the answer :)

Best Regards.
Farrukh Ahmed
tagoremanu
Cadet
Posts: 1
Joined: Sat Jan 17, 2004 6:50 pm
Location: India
Contact:

Post by tagoremanu »

squid wrote:well i need that only authenticated users can access their sites hosted on that server...
Post Reply