Protecting your Linux box
LinuxFreaK
Site Admin
Posts: 5132 Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:
Post
by LinuxFreaK » Tue Jan 06, 2004 7:44 am
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:
Post
by absar » Tue Jan 06, 2004 10:33 pm
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:
Post
by LinuxFreaK » Wed Jan 07, 2004 1:58 am
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 » Sat Jan 17, 2004 6:58 pm
squid wrote: well i need that only authenticated users can access their sites hosted on that server...