You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrzej Kukula <An...@navopgd.pl> on 2002/02/11 07:43:13 UTC

Response 500 on nonexistent domain

Hello.

I have set up caching proxy for my users. I've chosen 1.3.23's mod_proxy,
and set it up according to the example in the configuration file. Okay,
documents are cached, but I can't control access to the proxy using system
accounts. I tried two modules found in modules.apache.org, both of them
failed (mod_auth_sys didn't even compile, mod_auth_shadow doesn't by default
compile statically -- and I prefer not to use modules in caching httpd, and
I don't know what to do to force it to compile statically). So make me
sure -- probably the only thing is to prepare another password file with
just usernames and passwords extracted from /etc/shadow, and then have a
script to keep them in sync - it's crazy isn't it?

Another weird thing is when I enter some nonexistent domain into my browser,
I'm getting HTTP 500 response code. I turned on debug logging and saw
something like the following:

[Fri Feb  8 17:32:07 2002] [info] created shared memory segment #557061
[Fri Feb  8 17:32:08 2002] [notice] Apache/1.3.23 (Unix) configured --
resuming normal operations
[Fri Feb  8 17:32:08 2002] [info] Server built: Feb  8 2002 15:44:33
[Fri Feb  8 17:32:08 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Feb  8 17:33:18 2002] [debug] proxy_cache.c(1018): Request for
http://www.apapapapap.com/, pragma_req=(null), ims=0
[Fri Feb  8 17:33:18 2002] [debug] proxy_util.c(1373): File
/var/spool/httpd/j/U/o/DFv1odlQyajlsAVClww not found
[Fri Feb  8 17:33:18 2002] [debug] proxy_cache.c(1271): Local copy not
present or expired. Declining.
--at this point it returns 500 internal server error
[Fri Feb  8 17:33:36 2002] [debug] proxy_cache.c(1018): Request for
http://www.apache.org/, pragma_req=no-cache, ims=0
[Fri Feb  8 17:33:36 2002] [debug] proxy_util.c(1373): File
/var/spool/httpd/e/N/B/GEZhec3W0QeR4_jb2EA not found
[Fri Feb  8 17:33:36 2002] [debug] proxy_cache.c(1271): Local copy not
present or expired. Declining.
[Fri Feb  8 17:33:37 2002] [debug] proxy_cache.c(1382): Response is not
cacheable, unlinking /var/spool/httpd/e/N/B/GEZhec3W0QeR4_jb2EA
[Fri Feb  8 17:33:37 2002] [debug] proxy_http.c(537): Content-Type:
text/html
[Fri Feb  8 17:33:37 2002] [debug] proxy_cache.c(1018): Request for
http://www.apache.org/images/asf_logo_wide.gif, pragma_req=no-cache,
ims=994053087
[Fri Feb  8 17:33:37 2002] [debug] proxy_cache.c(1271): Local copy not
present or expired. Declining.
[Fri Feb  8 17:33:38 2002] [debug] proxy_cache.c(1441): Reusing cached last
modified
[Fri Feb  8 17:33:38 2002] [debug] proxy_cache.c(1457): Expiry date is
1013272415
[Fri Feb  8 17:33:38 2002] [debug] proxy_cache.c(1575): Create temporary
file /var/spool/httpd/tmpw9sJuW
[Fri Feb  8 17:33:38 2002] [debug] proxy_cache.c(834): If-None-Match:
specified and we got a strong match - return 304
[Fri Feb  8 17:33:38 2002] [debug] proxy_cache.c(852): If-Modified-Since
specified and not modified, try return 304
[Fri Feb  8 17:33:38 2002] [debug] proxy_cache.c(869): Use local copy,
cached file hasn't changed
....

With httpd_2.0.28 things are even worse: everything works fine until I try
to enable disk cache :) Then I'm getting compilation errors...

Just tell me how to fix those things with 1.3.23? I use Mandrake Linux 8.1
on an i586, kernel 2.4.8. Usual sort of stuff...


Regards,
Andrzej Kukula


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org