logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can't start Apache when using Authentication
Author
FMonk



Joined: 05 Oct 2011
Posts: 2

PostPosted: Wed 05 Oct '11 16:45    Post subject: Can't start Apache when using Authentication Reply with quote

Hello,

I am able to launch Apache 2.2 for use with SVN on Windows 7 and all works as intended when I use this configuration in httpd.conf:

Code:
# Configure Subversion repository
<Location /svn>
   DAV svn
   SVNParentPath F:/svn
</Location>


However, Apache won't start when I implement authentication:

Code:
# Configure Subversion repository
<Location /svn>
   DAV svn
   SVNParentPath F:/svn

   AuthName “Subversion repository”
   AuthType Basic
   AuthUserFile F:/svn_conf/svnpsswd
   Require valid-user
</Location>


I have included:
Code:
LoadModule dav_svn_module   modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so


and copied the associated files to the Apache modules directory.

I have also used htpasswd to generate F:/svn_conf/svnpsswd.

One problem I have is that when Apache doesn't start because of some error, there is no error code to use as a starting point. This makes it difficult for a novice like myself. Are there more descriptive error codes generated I am not aware of?

I have been searching for a solution for about week now and any help would be greatly appreciated.

Thanks![/code]
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 06 Oct '11 1:54    Post subject: Reply with quote

There is, it just may be in the event log in Windows instead of Apache's error log cause the server fails before the log is opened.

But, this may be a simple one, look at
AuthName “Subversion repository”

Do not use those cutesy quotes in your config, anywhere. Just use the plain old boring ones

AuthName "Subversion repository"
Back to top
FMonk



Joined: 05 Oct 2011
Posts: 2

PostPosted: Thu 06 Oct '11 2:04    Post subject: Reply with quote

I have no idea how I put those fancy quotes there. I used Windows notepad to edit it. The 'no-frills' quotes work perfectly!

Great catch!

Thanks Razz
Back to top


Reply to topic   Topic: Can't start Apache when using Authentication View previous topic :: View next topic
Post new topic   Forum Index -> Apache