htacces vs 500 internal sever error
htacces vs 500 internal sever error
am 14.11.2007 15:50:26 von oken
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
require valid-user
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. :-D
Thank you:
oken
Re: htacces vs 500 internal sever error
am 14.11.2007 20:46:20 von spam
"oken" 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
>
> require valid-user
>
>
> 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. :-D
Try this and see if it works:
allow from all
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.
Re: htacces vs 500 internal sever error
am 14.11.2007 21:07:23 von mark
oken 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
>
> require valid-user
>
>
> 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. :-D
>
> 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 =----
Re: htacces vs 500 internal sever error
am 15.11.2007 07:41:20 von oken
On nov. 14, 20:46, "D. Stussy" wrote:
> "oken" 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
> >
> > require valid-user
> >
>
> > 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. :-D
>
> Try this and see if it works:
>
>
> allow from all
>
> 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...
Re: htacces vs 500 internal sever error
am 15.11.2007 07:45:33 von oken
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...
Re: htacces vs 500 internal sever error
am 15.11.2007 07:51:05 von oken
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
Re: htacces vs 500 internal sever error
am 15.11.2007 13:44:51 von Robert Sandau
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
Re: htacces vs 500 internal sever error
am 15.11.2007 14:23:57 von HansH
"oken" 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
>
> require valid-user
>
>
> 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
Re: htacces vs 500 internal sever error
am 15.11.2007 17:33:39 von oken
Thank you, I will try, but just on Monday can I configure the apache...
Re: htacces vs 500 internal sever error
am 20.11.2007 15:24:06 von oken
[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
Re: htacces vs 500 internal sever error
am 20.11.2007 17:16:05 von oken
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
Re: htacces vs 500 internal sever error
am 20.11.2007 18:54:23 von Robert Sandau
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
Re: htacces vs 500 internal sever error
am 20.11.2007 19:56:09 von HansH
"oken" schreef in bericht
news:3088e3cd-24a3-4a4d-b478-5758db070ec9@c30g2000hsa.google groups.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
Re: htacces vs 500 internal sever error
am 21.11.2007 14:58:11 von oken
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