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

problem with Require

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Virtual Hosts not working  
Author Message
cobra

External


Since: Oct 30, 2003
Posts: 2



(Msg. 1) Posted: Fri Oct 31, 2003 1:05 am
Post subject: problem with Require
Archived from groups: alt>apache>configuration (more info?)

hello there !

i wanna restrict the content of a certain dir
so i ve created a user file with
htpasswd -c file user1

then i ve put

<Directory /usr/local/apache2/htdocs/dir>
AuthName test
AuthType Basic
AuthUserFile file
Require user
</Directory>

in my httpd.conf file
then started httpd

unfortunately when doing this it doesn t work and tell me
when trying to access http://127.0.0.1/dir
that authorization failed

so i tried with

Require valid-user

instead , and then it works ...

any idea why i can t specify users with the Require directive ?

thanx

 >> Stay informed about: problem with Require 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 2) Posted: Fri Oct 31, 2003 1:05 am
Post subject: Re: problem with Require [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

yoman wrote:
 > so i ve created a user file with
 > htpasswd -c file user1

 > <Directory /usr/local/apache2/htdocs/dir>
 > AuthName test
 > AuthType Basic
 > AuthUserFile file
 > Require user
 > </Directory>

 > unfortunately when doing this it doesn t work and tell me
<font color=purple> > when trying to access <a style='text-decoration: underline;' href="http://127.0.0.1/dir</font" target="_blank">http://127.0.0.1/dir</font</a>>
 > that authorization failed

 > Require valid-user
 > instead , and then it works ...
 >
 > any idea why i can t specify users with the Require directive ?

Assuming that what you have above is verbatim without typos, you haven't
finished the require statemnet, try:

Require user user1

--
Justin Koivisto - spam.DeleteThis@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: problem with Require 
Back to top
Login to vote
cobra

External


Since: Oct 30, 2003
Posts: 2



(Msg. 3) Posted: Fri Oct 31, 2003 2:04 am
Post subject: Re: problem with Require [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Justin Koivisto wrote:

 > yoman wrote:
  >> so i ve created a user file with
  >> htpasswd -c file user1
 >
  >> <Directory /usr/local/apache2/htdocs/dir>
  >> AuthName test
  >> AuthType Basic
  >> AuthUserFile file
  >> Require user
  >> </Directory>
 >
  >> unfortunately when doing this it doesn t work and tell me
<font color=green>  >> when trying to access <a style='text-decoration: underline;' href="http://127.0.0.1/dir</font" target="_blank">http://127.0.0.1/dir</font</a>>
  >> that authorization failed
 >
  >> Require valid-user
  >> instead , and then it works ...
  >>
  >> any idea why i can t specify users with the Require directive ?
 >
 > Assuming that what you have above is verbatim without typos, you haven't
 > finished the require statemnet, try:
 >
 > Require user user1
 >

yep u re absolutely right !
it solved my problem
thanx a lot ( how silly of me ... )<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: problem with Require 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SSL Problem - Hi All, SSL cert was installed on virtual host apache mod web server but none of the images for the site show up. when looking at the direct link to the image file I get an error 403 message. ie https://mysite.com/images/image.gif everything works fine....

problem with cgi - Hello, I would like to test my cgi-scripts at the apache server but it doesn't work properly instead of the result of the cgg-sript I get a message if I want to download the file. Is there an easy way to solve this problem. (it's just for testing the..

cgi problem - Background: 1. Program works on real world paid hosting (linux server). 2. Program works on Windows home testing server.(Omnihttpd) Just Installed Red Hat 8.0 . Created cgi-bin for main site using.. ScriptAlias /cgi-bin/ "/path/to/my/site/" an...

VirtualHost problem - Hi I just got a new server and im trying to set up virtualhosts again all requests should go to /home/serverHD/bart/www/server/ except www.jcpias.nl and jcpias.nl, which should go to /home/serverHD/jcpias/http/ -------------- part of my httpd.conf..

problem with Alias - Hi all, I've managed to configure Apache with Tomcat so to use the Cocoon framework for the publishing of an e-magazine.. I would like to make available the directory of the magazine (situated in the %CATALINA_HOME%\webapps\cocoon\magazine folder)..
   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 ]