On Wed, Jan 20, 1999, Magnus Stenman wrote:
> It would be nice if httpd would check
> its name when starting up -- if its
> httpsd, define SSL, otherwise don't
>
> Then you only have to create a
> symlink to httpd named httpsd
> to choose which type of server to run
> instead of the "ugly" -DSSL
The problem is that now with Apache 1.3.4 a simple --target=foobar is all you
need to name it "foobar". And so "httpsd" is just a historical example of a
name. A lot of people will use "apache", so where to start and where to end
with this? OTOH renaming a file is not far away from creating a simple wrapper
script named "httpsd" which runs "httpd -DSSL". And the second argument is:
The -DSSL is just the way the _default_ configuration handles the stuff to let
you startup Apache with and without SSL. When you rename it to httpsd you
usually always want to run it with SSL, so why do you not just remove the two
<IfDefine>'s? For instance my real world server configurations never have
<IfDefine SSL>, it's just a convenient way to provide both and this way is the
reasonable way for the default config. But no one forces you to use the
default config ;-)
But when you really want this feature, here is a possible patch
which does the trick for you:
Index: http_main.c
===================================================================
RCS file: /e/apache/SSL/REPOS/mod_ssl/pkg.apache/src/main/http_main.c,v
retrieving revision 1.17
diff -u -r1.17 http_main.c
--- http_main.c 1999/01/10 11:07:23 1.17
+++ http_main.c 1999/01/20 14:06:45
@@ -4551,6 +4551,11 @@
ap_setup_prelinked_modules();
+#ifdef EAPI
+ if (strcmp(ap_server_argv0, "httpsd") == 0)
+ ap_add_config_define("SSL");
+#endif
+
#ifndef TPF
while ((c = getopt(argc, argv,
"D:C:c:Xd:f:vVlLR:Sth"
Although I personally don't want to commit it to the mod_ssl source
tree, because I think it's a too specialized thing.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl) www.engelschall.com/sw/mod_ssl/
Official Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]