Questions tagged [apache2-module]
71 questions
35
votes
1 answer
Where can I find good reference/tutorial on writing Apache modules (in C)?
I've looked all over and can't really find much of anything. I need three basic things:
Good API reference
Some sort of a tutorial
Good architectural overview
I have the module source code and am going through it - but I really don't have much of…

Brad
- 11,262
- 8
- 55
- 74
17
votes
2 answers
Add mod_rewrite to Docker image httpd:alpine
I have almost no experience with Alpine Linux, to be honest, but I like its approach and therefore want to change that. I'm also relatively new to Docker, so please bear with me if this is a "stupid" question.
What I would like to achieve is…

Archivar
- 273
- 1
- 2
- 9
12
votes
3 answers
How can I uninstall an apache2 module?
It looks like I installed the wrong version of the module using apxs2.
Once it's disabled (a2dismod), how do I remove it so I can install the correct version?
Seems elementary, yet...somehow...I'm finding nothing on Google, IRC, etc.

mlissner
- 17,359
- 18
- 106
- 169
7
votes
14 answers
Learning C properly: yes or no?
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…

Jacco
- 23,534
- 17
- 88
- 105
7
votes
1 answer
How to compile mod_proxy_uwsgi or mod_uwsgi?
So I'm trying to use uwsgi behind apache2, but I am doing so on a CentOS 6 machine. (I'm use to Debian/Ubuntu based systems for context.)
I used pip install uwsgi and followed the directions for launching uwsgi with a Django application (via…

Brandon W. King
- 188
- 1
- 10
7
votes
1 answer
FallbackResource on Apache2 (2.2.22 (Ubuntu))
I'm trying to clean up my apache vhosts, since I've got a number of 'Alias's in place, and putting them all into a mod_rewrite can be annoying. However, while I can get to specific URLs (such as http://example.dev/robots.txt, http://example.dev/ on…

Alister Bulman
- 34,482
- 9
- 71
- 110
6
votes
3 answers
How to add mod_proxy_wstunnel to Apache2 2.2 on Raspberry Pi (Backport mod_proxy_wstunnel)
Raspberry Pi is still on Apache 2.2 (2.2.22-13+deb7u4 right now).
To use Apache as Proxy for Websockets ("ProxyPass") Apache Module mod_proxy_wstunnel is required.
Apache Module mod_proxy_wstunnel is available in httpd 2.4.5 and later.
How can I add…

Schelldorfer
- 301
- 1
- 4
- 7
4
votes
3 answers
apache2 FastCGI comm with dynamic server aborted first read idle timeout
Summary: Unable to run any of the most simple “Hello World” FastCGI script, any request always terminating into a time out. Seems there is no communication at all between the server and the FastCGI scripts (using dynamic FastCGI scripts).
The…

Hibou57
- 6,870
- 6
- 52
- 56
4
votes
1 answer
Apache 2.4.x Bandwidth Quota / Throttle / Speed
I'm looking for a new Apache 2.4.x module or solution which allows me to configure Bandwidth Quota's. Long ago I use mod_throttle which only works for 1.3 and is since no longer maintained. I've also been using mod_cband which I've patched to work…

Diemuzi
- 3,507
- 7
- 36
- 61
3
votes
1 answer
How can my Apache 2 module tell if it is being called via an SSL request?
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…

Jeremy Mullin
- 4,170
- 4
- 36
- 54
3
votes
3 answers
How to change PHP Server API to Apache 2.0 Handler from CGI/FastCGI?
I have a Plesk 12 server in which PHP is running with Server API CGI/FastCGI. But some of my script requirements I have to change it to Apache 2.0 Handler.
I have performed several changes in Apache configs to enable Apache 2.0 Handler but not…

Neeraj Kumar
- 1,058
- 1
- 9
- 22
3
votes
1 answer
How to enable mod_proxy_ajp for Apache 2.2.14?
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…

user353829
- 1,244
- 5
- 25
- 38
3
votes
2 answers
How to Debug an Apache Module
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…

Willi Ballenthin
- 6,444
- 6
- 38
- 52
3
votes
2 answers
Phusion Passenger / Apache Not Running Correctly on Mac OSX Maverick
After updating to OS X Maverick on my MacBook, my local dev environment was broken - Apache httpd.h file missing on MacOSX after Mavericks Upgrade (** Updated for Yosemite **)
Now after resolving the issues I can't seem to run my local web server on…

martincarlin87
- 10,848
- 24
- 98
- 145
3
votes
1 answer
Ensure execution order of two Apache Filters
I need to ensure my custom filter always executes before the mod_rewrite. As per Apache Tutor, filters do not run in a deterministic order:
The request processing axis is straightforward: the phases happen strictly in order. But confusion arises in…

mmdemirbas
- 9,060
- 5
- 45
- 53