Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Page Loads doesnt ask for pass until refresh |
|
Author |
|
cackles
Joined: 09 Oct 2012 Posts: 2
|
Posted: Tue 09 Oct '12 8:58 Post subject: Page Loads doesnt ask for pass until refresh |
|
|
Hi, Im using apache2.2 on Ubuntu 12.04. Im trying to password protect a page using htacces and/or the directory command.
Basically no matter what method I use to try and password the index page it doesnt work. I can protect pages and dir's below, but not in the root www of a vhost.
basically:
/home/cackles/mysite with index.html and .htaccess will allow index.html to load and wont prompt for a pass until the page is refreshed.
/home/cackles/mysite/subdir will prompt for a pass before it goes any further.
I purged and started from scratch again last night and for nothing, it would seem, well I learned/refreshed a few things so it wasnt a complete bust ... just 7hrs |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 09 Oct '12 11:03 Post subject: |
|
|
What is your AllowOverride set to?
AllowOverride AuthConfig? Or AllowOverride none? |
|
Back to top |
|
cackles
Joined: 09 Oct 2012 Posts: 2
|
Posted: Tue 09 Oct '12 23:54 Post subject: |
|
|
Probably a lack of what I have:
/etc/apache2/sites-available/myconfig
Code: | <VirtualHost *:80>
ServerName mysite.url
DocumentRoot /home/cackles/scrap/
</VirtualHost> |
apache2.conf
Code: | <Directory /home/cackles/mysite/test>
AuthType Basic
AuthName "Enter password"
AuthBasicProvider file
AuthUserFile /home/cackles/scrappass
Require valid-user
</Directory> |
I tried using the /etc/apache2/sites-available/default but when I do I get an internal server error. |
|
Back to top |
|
|
|
|
|
|