Jump to content
php.lv forumi

.htpasswd


ziedinjsh

Recommended Posts

Mapē kuru vēlies aizsargāt, liek .htaccess ar šādu saturu

AuthType Basic
AuthName "Kas i ko?"
AuthUserFile pass_file_path/and_filenaname(.htpasswd)
Require valid-user vai Require user 123

 

pass_file_path atrodas fails, piemēram, .htpasswd ar šādu saturu:

123:paroleshešs

Edited by yancho
Link to comment
Share on other sites

tā saliku ko vajadzēja.. tagad izlec logs, bet ievadot datus parādās:

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, webmaster@amn.tavsdomens.lv and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...