Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess 1

Status
Not open for further replies.

crescen7

IS-IT--Management
Aug 20, 2001
29
US
I'm getting an internal server error which seems to be generated by an .htaccess file created as stated in the INSTALL file for "vqadmin" (an email admin gui for qmail). I'm not sure I created the file correctly, the INSTALL says to create ".htaccess" , and place it in the vqadmin file. But it won't save to the file unless I name it as "something.htaccess"

Any hints or best sources for what the correct protocol is when creating htaccess files?
 
Hi,

The way I read it ( you just create a .htaccess file in /usr/local/apache/cgi-bin/vqadmin which has the following content :

AuthType Basic
AuthUserFile /usr/local/apache/conf/vqadmin.passwd
AuthName vQadmin
require valid-user
satisfy any

If you are using a linux /unix system there should be no problem in creating a file beginning with a period (means its hidden from a regular 'ls' - do a 'ls -la' instaed). For example to create an empty file you can just do :

cd /usr/local/apache/cgi-bin/vqadmin/
touch .htaccess

then show it with :

cat .htaccess

Hope this helps
 
Hi,

I had the same problem on a windows machine and I solved it by adding quote marks to the AuthName.

To save a file as htaccess, open notepad, save as .htaccess and make sure that you have "Save as All files" selected.

Here is an example of what I use:

AuthUserFile /AuthGroupFile /dev/null
AuthName "Restricted Area"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

If you have any problems, just ask.

Hope this helps Wullie

 
I've got the .htaccess file created nowexactly as the INSTALL file directs, and I've got a directory tag in httpd.conf.

I even tried the &quot; &quot; method suggested above.

But.. I'm now getting a 403 Forbidden error.

Any more clues?

Thanks
 
Hi,

Is that readable by the userid under which apache is running ? (usually 'apache'). You may have created the file(s) as root but not changed permissions so that the httpd task can actually read the files itself.

# chown apache.apache /usr/local/apache/cgi-bin/vqadmin/.htaccess
# chown apache.apache /usr/local/apache/conf/vqadmin.passwd

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top