Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

htacces vs 500 internal sever error

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Setup SQL connection on IIS7  
Author Message
oken

External


Since: Nov 14, 2007
Posts: 1



(Msg. 1) Posted: Wed Nov 14, 2007 6:50 am
Post subject: htacces vs 500 internal sever error
Archived from groups: alt>apache>configuration (more info?)

Hello!

I have Windows 2000 and apache 2.2.
I have the following problem:
I want to protect the x:/www_1/www/asdf directory with this simple
htaccess:

AuthUserFile .htpasswd
AuthName "Private Area"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>

and a .htpasswd, witch in the same directory...
and in the httpd.conf there is AllowOverride All

I write the good password to the box, and then come the Error 500.

Sorry of my bad English. Very Happy

Thank you:

oken

 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
D. Stussy

External


Since: Nov 01, 2007
Posts: 25



(Msg. 2) Posted: Wed Nov 14, 2007 11:46 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"oken" <tek.david.RemoveThis@gmail.com> wrote in message
news:1195051826.802423.252490@o38g2000hse.googlegroups.com...
> Hello!
>
> I have Windows 2000 and apache 2.2.
> I have the following problem:
> I want to protect the x:/www_1/www/asdf directory with this simple
> htaccess:
>
> AuthUserFile .htpasswd
> AuthName "Private Area"
> AuthType Basic
> <Limit GET POST>
> require valid-user
> </Limit>
>
> and a .htpasswd, witch in the same directory...
> and in the httpd.conf there is AllowOverride All
>
> I write the good password to the box, and then come the Error 500.
>
> Sorry of my bad English. Very Happy

Try this and see if it works:

<Limit GET POST>
allow from all
</Limit>
require valid-user

Note that the require is OUTSIDE of limit. That should give you the 401
response needed to prompt the user for an ID/PW.

 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
Mark

External


Since: Aug 06, 2006
Posts: 52



(Msg. 3) Posted: Wed Nov 14, 2007 3:07 pm
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

oken <tek.david.RemoveThis@gmail.com> wrote in news:1195051826.802423.252490
@o38g2000hse.googlegroups.com:

> Hello!
>
> I have Windows 2000 and apache 2.2.
> I have the following problem:
> I want to protect the x:/www_1/www/asdf directory with this simple
> htaccess:
>
> AuthUserFile .htpasswd
> AuthName "Private Area"
> AuthType Basic
> <Limit GET POST>
> require valid-user
> </Limit>
>
> and a .htpasswd, witch in the same directory...
> and in the httpd.conf there is AllowOverride All
>
> I write the good password to the box, and then come the Error 500.
>
> Sorry of my bad English. Very Happy
>
> Thank you:
>
> oken
>

I might be wrong, but I didn't think you could have a AuthUserFile in the
same directory that you were trying to protect...

--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 4) Posted: Wed Nov 14, 2007 10:41 pm
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On nov. 14, 20:46, "D. Stussy" <s....TakeThisOut@bde-arc.ampr.org> wrote:
> "oken" <tek.da....TakeThisOut@gmail.com> wrote in message
>
> news:1195051826.802423.252490@o38g2000hse.googlegroups.com...
>
>
>
> > Hello!
>
> > I have Windows 2000 and apache 2.2.
> > I have the following problem:
> > I want to protect the x:/www_1/www/asdf directory with this simple
> > htaccess:
>
> > AuthUserFile .htpasswd
> > AuthName "Private Area"
> > AuthType Basic
> > <Limit GET POST>
> > require valid-user
> > </Limit>
>
> > and a .htpasswd, witch in the same directory...
> > and in the httpd.conf there is AllowOverride All
>
> > I write the good password to the box, and then come the Error 500.
>
> > Sorry of my bad English. Very Happy
>
> Try this and see if it works:
>
> <Limit GET POST>
> allow from all
> </Limit>
> require valid-user
>
> Note that the require is OUTSIDE of limit. That should give you the 401
> response needed to prompt the user for an ID/PW.

I tried but the error is the same...
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 5) Posted: Wed Nov 14, 2007 10:45 pm
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I tried to put the htpasswd file to another directory, for example x:/
www_1/www/ Should I use /,\, or " ??? I tried all, but it isn't
work...
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 6) Posted: Wed Nov 14, 2007 10:51 pm
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

here are a part from the httpd.conf. Is this correct, or should I more
modules load?

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so

#LoadModule mod_authnz_ldap modules/mod_authnz_ldap.so

LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 7) Posted: Thu Nov 15, 2007 8:33 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you, I will try, but just on Monday can I configure the apache...
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
Robert Sandau

External


Since: Nov 15, 2007
Posts: 1



(Msg. 8) Posted: Thu Nov 15, 2007 10:00 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi oken,



oken wrote:

>> > I want to protect the x:/www_1/www/asdf directory with this simple
>> > htaccess:
>>
>> > AuthUserFile .htpasswd

That is not right. What you have to write is the complete path starting in
the root directory. In Windows it is not a slash "/".
It has to be a backslash "\".

AuthUserFile x:\www_1\www\asdf\.htpasswd


Nevertheless you should never put the .htpasswd file in the same directory
like the .htaccess file. Put it one directory above. For example:

AuthUserFile x:/www_1/www/.htpasswd



Example of the .htaccess file

AuthType Basic
AuthName "Restricted Files"
AuthUserFile c:\home\.htpasswd
Require user ExampleUser


Best regards

Robert
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 162



(Msg. 9) Posted: Thu Nov 15, 2007 10:00 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"oken" <tek.david.TakeThisOut@gmail.com> schreef in bericht
news:1195051826.802423.252490@o38g2000hse.googlegroups.com...
> I have Windows 2000 and apache 2.2.
> I have the following problem:
> I want to protect the x:/www_1/www/asdf directory with this simple
> htaccess:
>
> AuthUserFile .htpasswd
> AuthName "Private Area"
> AuthType Basic
> <Limit GET POST>
> require valid-user
> </Limit>
>
> and a .htpasswd, witch in the same directory...
> and in the httpd.conf there is AllowOverride All
>
> I write the good password to the box, and then come the Error 500.
>
Wondering why is't not ask already ...
Can you quote the error logged.

HansH
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 10) Posted: Tue Nov 20, 2007 6:24 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

[Tue Nov 20 15:25:27 2007] [notice] Parent: Received restart signal --
Restarting the server.
[Tue Nov 20 15:25:27 2007] [notice] Child 3980: Exit event signaled.
Child process is ending.
[Tue Nov 20 15:25:27 2007] [notice] Apache/2.2.3 (Win32) PHP/5.1.6
configured -- resuming normal operations
[Tue Nov 20 15:25:27 2007] [notice] Server built: Jul 27 2006 16:49:49
[Tue Nov 20 15:25:27 2007] [notice] Parent: Created child process 3060
[Tue Nov 20 15:25:28 2007] [notice] Child 3060: Child process is
running
[Tue Nov 20 15:25:28 2007] [notice] Child 3980: Released the start
mutex
[Tue Nov 20 15:25:28 2007] [notice] Child 3060: Acquired the start
mutex.
[Tue Nov 20 15:25:28 2007] [notice] Child 3060: Starting 250 worker
threads.
[Tue Nov 20 15:25:28 2007] [notice] Child 3060: Starting thread to
listen on port 80.
[Tue Nov 20 15:25:29 2007] [notice] Child 3980: Waiting for 250 worker
threads to exit.
[Tue Nov 20 15:25:30 2007] [notice] Child 3980: All worker threads
have exited.
[Tue Nov 20 15:25:30 2007] [notice] Child 3980: Child process is
exiting

this is the log when i restart the apache, if i get error 500, it
won't change.
i tried all of the solutions, but now if i enter the username, pass it
return with the same form...

oken
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 11) Posted: Tue Nov 20, 2007 8:16 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

And I find this in the domain-error.log

[Tue Nov 20 17:21:41 2007] [error] [client 79.121.4.206] (OS 2)The
system cannot find the file specified. : Could not open password
file: C:/Program Files/Apache Software Foundation/Apache2.2/.htpasswd


Should I copy the .htpasswd file to the C:/Program Files/Apache
Software Foundation/Apache2.2 directory???
Please help...

oken
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
Robert Sandau

External


Since: Nov 20, 2007
Posts: 1



(Msg. 12) Posted: Tue Nov 20, 2007 2:01 pm
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi oken,

oken wrote:

> And I find this in the domain-error.log
>
> [Tue Nov 20 17:21:41 2007] [error] [client 79.121.4.206] (OS 2)The
> system cannot find the file specified. : Could not open password
> file: C:/Program Files/Apache Software Foundation/Apache2.2/.htpasswd

If you use windows it is not a slash "/". It has to be a backslash "\".
You have to use a slash "/" only on unix/linux systems.


>
>
> Should I copy the .htpasswd file to the C:/Program Files/Apache
> Software Foundation/Apache2.2 directory???

It depends on your .htaccess file.
In your .htaccess file is a line

AuthUserFile C:\Program\.....

In this specified path the .htpasswd file has to be.


Best regards
Robert
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 162



(Msg. 13) Posted: Tue Nov 20, 2007 4:01 pm
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"oken" <tek.david.DeleteThis@gmail.com> schreef in bericht
news:3088e3cd-24a3-4a4d-b478-5758db070ec9@c30g2000hsa.googlegroups.com...
> And I find this in the domain-error.log
>
> [Tue Nov 20 17:21:41 2007] [error] [client 79.121.4.206] (OS 2)The
> system cannot find the file specified. : Could not open password
> file: C:/Program Files/Apache Software Foundation/Apache2.2/.htpasswd
>
>
> Should I copy the .htpasswd file to the C:/Program Files/Apache
> Software Foundation/Apache2.2 directory???
> Please help...
>
From your initial posting:
| I want to protect the x:/www_1/www/asdf directory with this
| simple htaccess:
|
| AuthUserFile .htpasswd

Either move the file to
C:/Program Files/Apache Software Foundation/Apache2.2/
or use full path with the directive, like
AuthUserFile x:/www_1/www/asdf/.htpasswd

HansH
--
One step further down the road, many more to go
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
oken

External


Since: Nov 14, 2007
Posts: 7



(Msg. 14) Posted: Wed Nov 21, 2007 5:58 am
Post subject: Re: htacces vs 500 internal sever error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for all...
I solved the problem...
I used online password generator, so i wrote the bad password, now i
use the local htpasswd.exe to generate password and it's working...
It works with / and \ too...

oken
 >> Stay informed about: htacces vs 500 internal sever error 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
.htacces - Im trying to help a friend set up custom 404s on his hosting on his school's server, cause their default ones are painful to the eyes. I have him put "ErrorDocument 404 /404/404.php" in a htaccess in his www directory, and when he did, everyth...

handling an error response 'HTTP 1.1 599 Internal Error' - Hi All, I have an application that returns an error page that is ugly and am trying to get apache to replace it with something a little nicer. The page comes from an app server which is accessed via reverse proxy ( ProxyPassReverse ). The error page's....

need help with FollowSymLinks option from .htacces - I added Options +FollowSymLinks to a .htaccess file in a subdirectory of my public_html. the AllowOverride option in the directory for this public_html states that Options can be overridden. The link goes to a file OUTSIDE the public_html directory....

htacces: apache 1.3.27 under Windows 2k - a Newbie - Hello, As I see from the posts in this group I understand that quite a number of people have problems with the .htaccess file. I am one of them. I am running Apache 1.3.27 under Windows. I created the password file with the name 'passwords' in:..

athentication with .htacces fails in a specifc directory - Hi, I made the following test: ===== Test OK ========== ---- httpd.conf --- Alias /teste /var/tmp/teste/ <DirectoryMatch /var/tmp/teste/> Options ExecCGI AllowOverride All Order Allow,Deny Allow From All </DirectoryMatch>..
   Web Hosting Problem Solving Community! (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 ]