This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Setting up Apache2 with mod_perl and Apache2::AuthCookieLDAP


On 5/6/2014 2:51 PM, Warren Young wrote:
On 5/6/2014 15:10, Andrew DeFaria wrote:

Yeah thanks for all of that but really my real goal was just to get
Apache2::AuthCookieLDAP working.

Plack::Middleware::Auth::Basic supports LDAP auth: http://goo.gl/O7RHgp

Personally I prefer Cygwin Apache because all of the pathing then can be
POSIX-like and can easily port to Linux systems later on. Plus Cygwin's
Perl is, IMHO, far superior to ActiveState.

The two issues are actually separate.  There's nothing making you use
ActiveState Perl to run a PSGI app front-ended by native Windows Apache.
  PSGI apps behind a reverse proxy simply present an HTTP interface to
the proxy.  As far as the proxy server knows, the app providing that
interface could be built in F#.

If you are using a Cygwin based Apache then it will follow symlinks whereas my experience with the Windows based Apache it doesn't.


(Why F#?  Another new favorite tool, and about as different from Perl as
you can get. :) )

However I had set up Apache2 as a Windows service before so I know it's
doable. I just forget how to do it! ;-) I thought it was just to specify
-k or perhaps -DNO_DETACH or something like that...

Did you try -F?

     http://comments.gmane.org/gmane.os.cygwin/60331

That message was about Apache 1.3. I'm on Apache 2.2. There is no -F option:

Adefaria-lt:/usr/sbin/httpd2 -F
httpd2: illegal option -- F
Usage: /usr/sbin/httpd2 [-D name] [-d directory] [-f file]
                        [-C "directive"] [-c "directive"]
                        [-k start|restart|graceful|graceful-stop|stop]
                        [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check
Adefaria-lt:


--
<style type="text/css">
body {
  font:			Helvetica, Arial, sans-serif;
}
p {
  font:			Helvetica, Arial, sans-serif;
}
.standout {
  font-family:		verdana,
			arial,
			sans-serif;
  font-size:		12px;
  color:		#993333;
  line-height:		13px;
  font-weight:		bold;
  margin-bottom:	10px;
}
.code {
  border-top:		1px solid #ddd;
  border-left:		1px solid #ddd;
  border-right:		2px solid #000;
  border-bottom:	2px solid #000;
  padding:		10px;
  margin-top:		5px;
  margin-left:		5%;
  margin-right:		5%;
  background:		#ffffea;
  color:		black;
  font-family:		courier;
  white-space:		pre;
  -moz-border-radius:	10px;
}
.terminal {
  border-top:		10px solid #03f;
  border-left:		1px solid #ddd;
  border-right:		2px solid grey;
  border-bottom:	2px solid grey;
  padding:		10px;
  margin-top:		5px;
  margin-left:		5%;
  margin-right:		5%;
  background:		black;
  color:		white;
  font-family:		courier;
  white-space:		pre;
  -moz-border-radius:	10px;
}
a:link {
  color:		blue;
}

a:visited {
  color:		darkblue;
}

a:hover {
  color:		black;
  background-color:	#ffffcc;
  text-decoration:	underline;
}

a:active {
  color: 		red;
}
</style>
<img src="http://defaria.com/Images/clearscm.com-qrcode.jpg"; align="left" height="100" width="100"/><br>
<a href="http://defaria.com";>Andrew DeFaria</a><br>
<a href="http://clearscm.com";>ClearSCM, Inc.</a><br>


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]