Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

newbie questions!

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Basic newb question about http and ports  
Author Message
user2514

External


Since: Oct 15, 2003
Posts: 2



(Msg. 1) Posted: Wed Oct 15, 2003 7:06 pm
Post subject: newbie questions!
Archived from groups: alt>apache>configuration (more info?)

if u want to set some password for different users to access some
protected subdirectories which under public_html, is it putting
something into .htaccess and how, or which part of doc do i have to read
for this? thanks Smile

 >> Stay informed about: newbie questions! 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Oct 15, 2003 7:06 pm
Post subject: Re: newbie questions! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

pc_newbie <ay RemoveThis @computermail.net> wrote:
 > if u want to set some password for different users to access some
 > protected subdirectories which under public_html, is it putting
 > something into .htaccess and how

Use htpasswd to generate the username/passwords couples, then add in
..htaccess the required rules to have Apache looking at the
right password file.

See the documentation on <a style='text-decoration: underline;' href="http://www.apache.org" target="_blank">www.apache.org</a> about authentication.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: newbie questions! 
Back to top
Login to vote
kangus

External


Since: Oct 15, 2003
Posts: 3



(Msg. 3) Posted: Wed Oct 15, 2003 7:06 pm
Post subject: Re: newbie questions! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"pc_newbie" <ay RemoveThis @computermail.net> wrote in message
news:3f8ce3ab_1@news.iprimus.com.au...
 > if u want to set some password for different users to access some
 > protected subdirectories which under public_html, is it putting
 > something into .htaccess and how, or which part of doc do i have to read
 > for this? thanks Smile
 >
I just spent two hours fighting this...

mkdir /home/somedomain/public_html/passdir
htpasswd -cb /home/somedomain/.htpasswd billbob bobbill
(this next part is the part I missed )
chgrp apache .htpasswd
chmod 644 .htpasswd
(If the web process can not see the .htpasswd file it will not let in access
the directory)

In your /etc/httpd/conf/httpd.conf file add:
<Directory /home/somedomain/public_html/passdir>
AuthUserFile /home/somedomain/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName "Restricted Files"
Require valid-user
</Directory>
Or add the above to /home/somedomain/public_html/passdir/.htaccess file

put an index.html file in the passdir directory then
<a style='text-decoration: underline;' href="http://somedomain.com/passdir" target="_blank">http://somedomain.com/passdir</a>
you will get a login window - enter the username billbob and password
bobbill

RTM works if the manual has all the steps to make the process work, in this
case the manual does not mention access rights to the .htpasswd file or
whatever you call your file.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie questions! 
Back to top
Login to vote
user2514

External


Since: Oct 15, 2003
Posts: 2



(Msg. 4) Posted: Thu Oct 16, 2003 5:42 pm
Post subject: Re: newbie questions! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kevin wrote:
 > "pc_newbie" <ay DeleteThis @computermail.net> wrote in message
 > news:3f8ce3ab_1@news.iprimus.com.au...
 >
  >>if u want to set some password for different users to access some
  >>protected subdirectories which under public_html, is it putting
  >>something into .htaccess and how, or which part of doc do i have to read
  >>for this? thanks Smile
  >>
 >
 > I just spent two hours fighting this...
 >
 > mkdir /home/somedomain/public_html/passdir
 > htpasswd -cb /home/somedomain/.htpasswd billbob bobbill
 > (this next part is the part I missed )
 > chgrp apache .htpasswd
 > chmod 644 .htpasswd
 > (If the web process can not see the .htpasswd file it will not let in access
 > the directory)
 >
 > In your /etc/httpd/conf/httpd.conf file add:
 > <Directory /home/somedomain/public_html/passdir>
 > AuthUserFile /home/somedomain/.htpasswd
 > AuthGroupFile /dev/null
 > AuthType Basic
 > AuthName "Restricted Files"
 > Require valid-user
 > </Directory>
 > Or add the above to /home/somedomain/public_html/passdir/.htaccess file
 >
 > put an index.html file in the passdir directory then
<font color=purple> > <a style='text-decoration: underline;' href="http://somedomain.com/passdir</font" target="_blank">http://somedomain.com/passdir</font</a>>
 > you will get a login window - enter the username billbob and password
 > bobbill
 >
 > RTM works if the manual has all the steps to make the process work, in this
 > case the manual does not mention access rights to the .htpasswd file or
 > whatever you call your file.
 >
 >
 >



Davide Bianchi & Kevin , thank you very much for your helps Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: newbie questions! 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Basic Newbie CommonName Questions. - Hi Experts: This is my first project that has required encryption, or any of this security stuff. I've configured Apache 2.0.47 to use mod-SSL, I hope. My environment is Solaris 8 on Intel, with all recommended patches. In my..

Some newbie questions regarding using .htaccess for passwo.. - Apologies if this is the wrong group for this, I tried searching dejanews but was unable to narrow my search down enough to get anything useful. The scenario: Local soccer team wants a password protected directory on their site, we have found a host/ISP...

Apache 2.0.47 and mod_ssl questions - Hi, I would like to upgrade our server from 1.3.27 with ssl to the new apache server. I have been browsing around on the apache site, but cannot seem to find any information on a step by step howto install apache 2.0 with ssl support. Is the mod_ssl...

questions about setting up users access - Greetings everyone, I have some questions about setting up and give users access to a httpd server. Ok, I have a single apache server (2.0.x) running on linux redhat 9.0, set the whole linux box up yesterday. Lets say I want to setup accounts, and..

Apache rotatelogs vs. logrotate questions - Hi, I am just searching the perfect solution for logfile-rotation, I hope that readers of this group are somewhat familiar with that ;) The goal is to get a 24-hour rotation exactly at midnight and the logfiles named "%y-%m-%d-access.log" lo...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]