My primary language is PHP, but I have done some (not very much) programming in other languages.
I've written 2 modules for Apache in C.
I wrote them in C because this was one of the things where performance did matter. (generating projected maps of the world on the fly and output to .png).
These modules work, and that's as far as I ca...
Using the apache2 C api, I have created a child_init callback (registered through ap_hook_child_init) that is supposed to set up a per-process resource when the server is first started. Then, as each request comes in through the handler (registered through ap_hook_handler) I want the handler to look up that resource for its own use.
Cur...
I've been writing an Apache module recently. It's been interesting to work with the memory pool paradigm, but I'm clearly not doing something right. I've got a segfault, and I cannot seem to find it. My current debug cycle involves ap_rprintfs and a make script that rebuilds and reloads Apache.
What kind of tools are available for work...
I have Apache 2.1.14 installed and running in production - due to a new requirement, I need to start using the module mod_proxy_ajp.
Running the './httpd -l' script does not show the compiled module 'mod_proxy_ajp'.
Is there a way I can enable mod_proxy_ajp withough having to recompile the Apache instance?
Thanks.
...
I am SharePoint Developer trying to get a Perl module to work with Subversion, but I think something is wrong with my syntax. I just need to get the username and password, pass it into the webservice, get a true/false and authenticate based on that information. Here is the code to the module in Perl:
package Apache2::AuthGetUser; #aut...
Hi all,
I have an idea for a project based on the Apache module API. So, I am writing my first Apache module to learn the API- just a simple hostname lookup:
URL: http://localhost/hostname/stackoverflow.com
Response data:
Host: stackoverflow.com
Address: 69.59.196.211
Address type: AF_INET
When the request does not include a hostna...
I am developing a module for Apache which contains an output filter that I would like to always be invoked so that it can determine whether to process the request data or just pass the data along. Since I would like the module to be compatible with Apache 2.0 as well as 2.2, I do not want to use mod_filter.
Ideally I would like to do th...
Hi,
I wonder if it's possible for an Apache module to change global config structures.
What I want to achieve is injecting new vhosts without Apache restart. Of course I'm aware that the changes would fully take effect after all workers have recycled, but for me - it's still better than a restart.
I've written an Apache module before...
Hello,
We're using path-based-authorization module for Apache SVN.
It all works fine, except that when users try to check out code they have access to, their SVN clients get confused if they don't have at least read access to the parent directories - all the way up to root. It works, but some clients just get confused sometimes.
Beca...
I would like to use Mod_Cache apache module for only images on my server. But I don't where I can write a regexp for only fetch image files and how to limit cache size. Apache doc said this module should be use with care, what is safiest config?
I already use ETag and expires headers, but if a user comes with an empty cache it will bette...
I have a module that needs to return a reference URI in its payload. If called via an SSL connection, I need to build a URI that has the https prefix. I can easily get the port number from the request, but the problem is the user could have picked any port for SSL (and in fact this particular Apache instance always starts out with a non-...
Hello,
I have created a simple mod_perl module, which writes a 0-terminated string to the Flash-clients connecting to the port 843. It works ok, but uses 20m per httpd-child at my CentOS 5 Linux machine.
So I'm trying to rewrite my module in C, but I'm not sure how to access the client socket through the conn_rec struct that my protoco...