Hello,

I successfully compiled and ran Cherokee 6.00b700 in MinGW using:

CPPFLAGS="-I/usr/local/include" \
LDFLAGS="-L/usr/local/lib" \
LIBS="-lssl \
-lcrypto \
-lws2_32 \
-lgdi32" \
./configure \
--prefix=c:/cherokee \
--sysconfdir=c:/cherokee \
--enable-trace \
--enable-static-module=all \
--enable-static \
--enable-shared=no \
--enable-beta \
--disable-pthread \
--disable-readdir_r \
--enable-tls=openssl
make
make install

Unfortunately, win32_misc.h has:

#define strerror(e)       win_strerror(e)

but then win_strerror() in win32_misc.c calls strerror(), leading to infinite 
recursion.

Here's a fix for it:

$ diff -uw cherokee/win32_misc.c.bak cherokee/win32_misc.c
--- cherokee/win32_misc.c.bak   Wed Jan 10 07:22:50 2007
+++ cherokee/win32_misc.c       Mon Jun 25 00:34:26 2007
@@ -356,6 +356,11 @@
 /*
  * A smarter strerror()
  */
+
+#ifdef strerror
+#undef strerror
+#endif
+
 char *win_strerror (int err)
 {
   static char buf[512];   /* !! not thread-safe */

I'd be happy to commit this fix myself, if someone wants to grant me commit 
access.

Here's the config file I used:

server!port = 80
server!port_tls = 443
server!timeout = 20
server!keepalive = 1
server!keepalive_max_requests = 1000
server!pid_file = c:/cherokee/var/cherokee.pid
server!server_tokens = full
server!encoder!gzip!allow = html,html,txt
server!mime_files = c:/cherokee/cherokee/mime.types, 
c:/cherokee/cherokee/mime.compression.types

vserver!default!logger = combined
vserver!default!logger!access!type = file
vserver!default!logger!access!filename = c:/cherokee/var/cherokee.access
vserver!default!logger!error!type = file
vserver!default!logger!error!filename = c:/cherokee/var/cherokee.error

vserver!default!document_root = c:/cherokee/var/www/
vserver!default!directory_index = index.php,index.html
vserver!default!directory!/!handler = file
vserver!default!directory!/!priority = 1

vserver!default!directory!/icons!document_root = 
c:/cherokee/share/cherokee/icons/
vserver!default!directory!/icons!handler = file
vserver!default!directory!/icons!priority = 2

vserver!default!directory!/cherokee_themes!document_root = 
c:/cherokee/share/cherokee/themes/
vserver!default!directory!/cherokee_themes!handler = file
vserver!default!directory!/cherokee_themes!priority = 3

vserver!default!ssl_certificate_file = c:/cherokee/cherokee/ssl/cherokee.pem
vserver!default!ssl_certificate_key_file = c:/cherokee/cherokee/ssl/cherokee.pem
vserver!default!ssl_ca_list_file = c:/cherokee/cherokee/ssl/cherokee.pem

Both http://localhost/ and https://localhost/index.html work,
but https://localhost/ returns:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>403 Forbidden</title></head>
<body>
<h1>403 Forbidden</h1>
You have no access to the requested URL
<p><hr>
Cherokee web server Port 443 0.6.0b (Win32)
</body>
</html>

Is this a bug or a config file issue?

Thanks,

-Ross
_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to