| Summary: | www-apache/mod_caucho + www-servers/resin-3.{0,1}.* does not dispatch requests to resin | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexander Hoogerhuis <alexh> |
| Component: | Current packages | Assignee: | Krzysztof Pawlik (RETIRED) <nelchael> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | major | CC: | apache-bugs, java |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Alexander Hoogerhuis
2008-09-28 17:56:54 UTC
Further digging from the logs and compiøing the module with --enable-debug shows that resin_config_server_command() is not called when parsing the config files. Here's my relevant config:
ServerName servera.somewhere.com
DirectoryIndex index.jsp
ResinConfigServer servera.somewhere.com 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
resin-3.1.6/modules/c/src/apache2/mod_caucho.c with patched with this:
--- mod_caucho.c 2008-09-28 22:27:14.000000000 +0200
+++ mod_caucho.c.dist 2008-09-28 22:05:11.000000000 +0200
@@ -74,7 +74,7 @@
int pid;
FILE *file;
- file = fopen("/tmp/mod_caucho.log", "a");
+ file = fopen("/tmp/mod_caucho.log", "w+");
pid = (int) getpid();
@@ -295,13 +295,9 @@
config_t *config = pconfig; /* cse_get_server_config(cmd->server); */
int port = port_arg ? atoi(port_arg) : DEFAULT_PORT;
- LOG(("%s:%d:resin_config_server_command(): entry\n", __FILE__, __LINE__,));
-
if (! config)
return 0;
- LOG(("%s:%d:resin_config_server_command(): has config\n", __FILE__, __LINE__,));
-
config->has_config = 1;
/*
shows that this function is never called. Exactly same source on CentOS 5 gives /tmp/mod_caucho.log containing:
[09/Sep/2008:00:32:16 +0200] 15727_-1208522992: mod_caucho.c:298:resin_config_server_command(): entry
[09/Sep/2008:00:32:16 +0200] 15727_-1208522992: mod_caucho.c:303:resin_config_server_command(): has config
I.e. it parses the file.
-A
Bah, the patch is backwrds, apply with --reverse or just add the few lines by hand. -A Looks like Apache configuration problem. Could you try using ResinHost ? No reporter action for over a month. Same results with ResinHost. -A Could you please attach complete mod_caucho config file & VHost definition where you use SetHandler caucho-request |