DeveloperSide.NET Forums
July 14, 2020, 08:41:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: .htaccess isnt working along with Httpd.conf  (Read 13000 times)
0 Members and 2 Guests are viewing this topic.
Mosco
Guest
« on: March 04, 2004, 05:37:34 AM »

Hello,

Ok here is my problem, I cant ger .htaccess to work on my windows Xp server. I was told to put this code into my httpd.conf file,

<Directory /usr/local/www/mydomain.com/secure>
AuthType Basic
AuthName "Members Only"
AuthUserFile /usr/local/www/passwords
Require valid-user
</Directory>

But every time i edit my conf file and have this command in their
(AuthUserFile)

My apache says
Error
cannot perofrm the requested operation.
Logged
TCPMeta
Jr. Member
**
Posts: 60


View Profile
« Reply #1 on: March 04, 2004, 05:11:51 PM »

Heres a cool guide on how to fix that problem.

http://www.yolinux.com/TUTORIALS/LinuxTutorialApacheAddingLoginSiteProtection.html
Logged
Anonymous
Guest
« Reply #2 on: March 04, 2004, 07:15:22 PM »

Thankz but i already know how to make a .htaccess file and .htpasswd file... i wanted some one to help me out with my error
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #3 on: March 06, 2004, 01:30:22 AM »

How about checking apache2\logs\error.log ? It could provide more info.

Have you granted access to the dir /usr/local/www/ ?

You might also want to read up on

http://httpd.apache.org/docs-2.0/howto/auth.html

http://httpd.apache.org/docs-2.0/mod/mod_auth.html

Have you uncommented...
"LoadModule auth_module modules/mod_auth.so"
...under httpd.conf?
'‘AuthUserFile’ needs that module loaded, and by default it is commented out.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Anonymous
Guest
« Reply #4 on: June 28, 2004, 08:32:29 PM »

Quote
Have you granted access to the dir /usr/local/www/ ?


Quote
on my windows Xp server
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 on: June 28, 2004, 08:44:05 PM »

You can create directory <drive>:\usr\local\www\ under Windows.  And some do use this structure under Windows to run a Web-Server.

Considering that Apache is working for this user, I would assume that he understands the dir path.  The error is a result of a missing loadmodule line.  Anything else would have resulted in many more problems.

Also, as long as the files are under the same drive that Apache is running under, no drive needs to be specified.

BTW, / and \ can be used under most config files with the same effect.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Fenwick
Jr. Member
**
Posts: 50


View Profile
« Reply #6 on: June 28, 2004, 09:17:51 PM »

Additional note:

Everytime you make a change to the Apache "httpd.conf" file - you must restart the server - as per the directions provided for the new changes to take affect.
Logged

magination is the Only Limitation

Phantasia a community based forum on security and additional help with server software. Site is beta-mode - and will start filling forums with additional help as soon as possible
 
http://myphantasia.cjb.net/
jboy
Jr. Member
**
Posts: 39


View Profile
« Reply #7 on: June 30, 2004, 04:13:23 AM »

Quote from: "Fenwick"
Additional note:

Everytime you make a change to the Apache "httpd.conf" file - you must restart the server - as per the directions provided for the new changes to take affect.


I just restart my computer, it seem to work fine.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #8 on: June 30, 2004, 04:35:34 AM »

And every time you restart your computer, all the Services (ex: Apache2) are restarted also.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!