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: Can't start Apache when using Authentication |
|
Author |
|
FMonk
Joined: 05 Oct 2011 Posts: 2
|
Posted: Wed 05 Oct '11 16:45 Post subject: Can't start Apache when using Authentication |
|
|
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
|
Posted: Thu 06 Oct '11 1:54 Post subject: |
|
|
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
|
Posted: Thu 06 Oct '11 2:04 Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|
|
|