Apache 1.3 Custome Module not able to get response code 200



  • 1. Webalizer hides TopURLs from me!
    I am all done and exhausted! Yesterday I've installed Webalizer, customized my .CONF and ran webalizer, voila, statistics were fine. After some changes and some re-runs of webalizer, all of a sudden the whole tables [URLs], [Entry] and [Exit] were not displayed anymore. But that's the main reason, I've installed: I want to see, what files were accessed at my server! The sites totals say: Total Unique URLs: 51 So I guess there is something wrong!? Why doesn't Webalizer display these 51 unique URLs (anymore). I am very sure that the .conf file is correct, I use it at another server and it works fine, with showing the TopURLs! Can you help? Regards, Marco Nassenstein
  • 2. Apache::Sandwich Question
    Where do you upload the files for this mod, and also apart from editing the httpd.conf file with the following, what else needs to be done, ive read the docs with no luck getting it... <FilesMatch "\.sbrc$"> SetHandler perl-script PerlHandler Apache::Sandwich PerlSetVar SandwichHandler server-parsed </FilesMatch> # now specify the header and footer for each major section # <Location /misc> PerlSetVar HEADER "/misc/HEADER.shtml ADS.shtml" PerlSetVar FOOTER "/misc/FOOTER.html" </Location> It is for dynamic hosting, so that a banner code can be entered into the pages of an account each time .html is uploaded... Anyhelp in this from anyone who has set this up for this purpose would be appreciated.
  • 3. Secure server on Apache 1.3
    I have not created a secure virtual server on Apache 1.3 in a long, long, time. The last time, as I remember, you could only have one virtual ssl server. For the second I had to run a second instance of Apache server. Has that changed? Can I run two virtual servers using ssl and using different certificates? Or do they all have to use the same certificates still? Mark

Apache 1.3 Custome Module not able to get response code 200

Postby kalinga » Sat, 01 Jan 2005 01:08:19 GMT

I have written a custom module in C that intercepts each request that
is posted to any URL on the server and processes the request body
(method=POST) during the post read-request handling phase.

If the body is okay, I use DECLINED keyword to pass the request on to
the the URL. I am sending the post request through a java program and I
am trying to get the response code by using the
HTTPURLConnection.getResponseCode() method. Unfortunately, I do not get
any response code....while I expect a 200 since the request was
DECLINED by my custom module and passed on to the URL. On the other
hand I have no problem getting the response code if the request was

The server logs have 200 showing that the request was declined and the
URL was hit but I am unable to get a 200 when I use the above mentioned
java method. Also, if I remove my custom module, the java program gets
a 200 as response code. This makes me think that the problem is with my
module and not with the java program.

Does anyone have any idea why this is happening. Any inputs will be


Similar Threads:

1.Apache 1.3 logfile: what is "200 -"?


Some customers are getting timed out, sometimes, while browsing a site I 
administer.  At these times, I see access_log entries that end with
"POST /track.php HTTP/1.0" 200 -

AFAIK, the hyphen means that Apache does not know how many bytes it sent on 
the wire.  What could cause this?

I believe the users with the problem are all masqueraded behind a single IP 
address.  I have Apache 1.3.20 running under Slackware linux, using vanilla 
common log format.



2.Apache 1.3 [unix]: Directives not having effect


I've been experimenting with Apache for the past few days.  I've made
a few changes but they aren't having the desired effect.

1. When entering the site, the user automatically sees index.htm page.
   My Sol: DirectoryIndex index.htm

2. A page in a sub dir is blocked to everybody except a particular IP.
   <Directory /home/rpandyan/apache/htdocs/block>
      Order Deny,Allow
      Deny from all
      Allow james.virtual.com

3. I have password protected a few pages also but that also isn't
   <Directoy /home/rpandyan/apache/htdocs/hidden>
      AuthType Basic
      AuthName "Restricted Files"
      AuthUserFile /home/rpandyan/apache/passwd/passwords
      Require user James

Note: I have made all changes to the httpd.conf file for efficienty
      The Listen directive works [I see the test page]

If anybody knows what I need to do, please let me know.

3.Help required in getting 300 response in apache


Could anyone help me in getting 300 Multiple Choices response from
Apache server.

I made few files named index.html index.zip and index.exe in the
/var/www/html directory and tried to get this response by invoking

telnet <My Server IP> 80

Get /index HTTP/1.1
Host: <My server IP>
Accept: application/*

But The server sends the index.exe file with 200 response.

Pls help me in getting the 300 Response code.


4.Problems debugging an Apache 1.3 module under Windows

I'm trying to debug my Apache 1.3 module (and yes, yes
I _have_ been told I should be switching to 2.0, but, at this
stage, the amount of gutting required to convert the
module just to get a new version of the same module
doesn't seem worthwhile, even if that version has all the
bells and whistles 2.0 is supposed to have - ), using
Windows 200, service Pack 2 and Visual C++ .NET.

my nodule has an "Enable" command, which is
supposed to enable my nodule's functionality on the
"<Location>"s and "File>"s on which it appears

I've tried debugging the module by both building my
module as a DLL and then running the Apache executable,
as well as attaching to the running Apache service
(which actually consists of two "Apache.exe" processes -
although I don't know why there are two,or the
difference between them)

I created empty stub routines (on each of which I set a
breakpoint so I could see when it was executed)
for just about all the module's functions, including the "config"
routines ("create_server_config", "merge_dir_config" and
friends), as well as the "response phase" routines
("check_user_auth", "filename_translate" and the response
handlers) ...

My problem is that, while using the Apache "Start Menu"
item to restart the server trips the "config" routine breakpoints
and the command handler breakpoints, using either debugging
technique while browsing a location "enabling" my module
on a website I know is on the local machine (which, one would
think, would trip the  "response phase" routines'
breakpoints) stubbornly refuses to trip those routines'
breakpoints: it's as of the module isn't running at all, when
I know it should be doing so.

So what am I doing wring?  Is my debugging technique
incorrect? ... or is there some other problem?


5.FPE in ld-linux-x86-64.so loading custome dso in Apache

Hello CUP,

One of my clients is seeing an FPE in ld-linux-x86-64.so when loading a
custom dso in Apache (actually httpd is dlopen-ing mod_php5.so which is
dlopen-ing my dso which is dynamically linked with some other libs). The
backtrace is inlined below.

At least I assume it's blowing up loading my dso - with my dso disabled,
httpd loads and runs ok.

# gdb /usr/sbin/httpd2-prefork
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run -X
Starting program: /usr/sbin/httpd2-prefork -X
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)


[Thread debugging using libthread_db enabled]
[New Thread 47783686579872 (LWP 11366)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)


Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 47783686579872 (LWP 11366)]
0x00002b758030468f in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00002b758030468f in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
#1  0x00002b7580304a77 in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2
#2  0x00002b7580306028 in _dl_relocate_object () from /lib64/ld-linux-x86-64.so.2
#3  0x00002b758030c2a5 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#4  0x00002b75803081f6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#5  0x00002b758030bacb in _dl_open () from /lib64/ld-linux-x86-64.so.2
#6  0x00002b75811961fa in dlopen_doit () from /lib64/libdl.so.2
#7  0x00002b75803081f6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#8  0x00002b758119658d in _dlerror_run () from /lib64/libdl.so.2
#9  0x00002b7581196171 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#10 0x00002b7582edf486 in php_dl () from /usr/lib64/apache2/mod_php5.so
#11 0x00002b7582f3dfe3 in ?? () from /usr/lib64/apache2/mod_php5.so
#12 0x00002b7582f6e937 in zend_llist_apply () from /usr/lib64/apache2/mod_php5.so
#13 0x00002b7582f3dfaa in php_ini_register_extensions () from /usr/lib64/apache2/mod_php5.so
#14 0x00002b7582f388bb in php_module_startup () from /usr/lib64/apache2/mod_php5.so
#15 0x00002b7582ff5825 in ?? () from /usr/lib64/apache2/mod_php5.so
#16 0x00002b7582ff58ad in ?? () from /usr/lib64/apache2/mod_php5.so
#17 0x000055555558c93c in ap_run_post_config () from /usr/sbin/httpd2-prefork
#18 0x0000555555579fd7 in main () from /usr/sbin/httpd2-prefork
(gdb) q
The program is running.  Exit anyway? (y or n) y

The client is running SUSE server on "big" hardware. I have an OpenSUSE
10.3 install here and the extension loads and runs perfectly. I have many
other people using the extension and no one has reported this problem. I
have recompiled *everything* with no change. It seems to be this one
particular installation.

Ldd on all binaries yields the expected "ELF 64-bit LSB executable,
AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked
(uses shared libs), for GNU/Linux 2.6.4, stripped" with the exception
of my extension which is "not stripped".

My dso is very small but it is linked with a largish (5MB) .so created
from numerous .a archives of -fpic compiled code. Also, the big lib the
dso is linked with is created using a version script so that only the
handful of symbols used by the extension are exported.

So httpd loads mod_php.so which calls dlopen on my dso and at that point
an FPE occurs in do_lookup_symbol_x.

Could it be that the loader is trying to relocate something that is not
relocatable because of how things are linked?

Has anyone seen anything like this before?

Can anyone recommend a method for debugging this issue?

Could this be an issue which the linux loader?

Any help would be appreciated,

6. Apache 1.3 - suexec permission problems

7. Apache 1.3 & ProxyPass

8. apache 1.3 : mod_proxy/mod_rewrite, timeouts and retries?

Return to unix


Who is online

Users browsing this forum: No registered users and 80 guest