I'm having trouble setting up password protection on a server. The procedure involves creating an .htpasswd and an .htaccess file which would be used to protect a directory or file. I created the .htaccess file offline, giving details of where the .htpasswd file would be located etc., saved it as a text file, and then uploaded it as .htaccess into the directory I wanted to password protect. I then created the
htpasswd file using Telnet by typing 'touch .htpasswd' at the prompt, and then entered a new password and username within the file. When I tried it out it said that it either didn't know what username the password belonged to and vice versa. Thus I could not access the directory I had protected. Could it be where the files are situated or
even how they are created that is causing this problem? Can anyone please explain what I am doing wrong. Any help would be greatly appreciated.
Here are some URL's which give tutorials on how to use htpasswd/.htaccess files to password protect your page:
Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version.
In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Learn the basics of if, else, and elif statements in Python 2.7.
Use "if" statements to test a specified condition.:
The structure of an if statement is as follows:
Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of modules and packages in Python.
Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…