Questions tagged [apache-modules]

Apache modules extend the Apache opensource HTTP server core functionality for special purposes.

Please refert to for more details.

Resources:

180 questions
2
votes
0 answers

How to call executable using system call from apache module type_checker hook?

static int x_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) { system("/home/user/workspace/CheckVideo/Debug/CheckVideo.exe"); return OK; } static void…
2
votes
0 answers

How to get the REMOTE_USER variable with PHP under linux

I've already searched for this problem but i didn't find a working solution. May you could help. I have to get with PHP the REMOTE_USER from the loggend in User in the company Domain, so his username in the intranet. The REMOTE_IP an so on is all…
Stefan
  • 21
  • 1
2
votes
1 answer

ZeroMQ apache module

Does anyone have an idea if there is already a zmq module for apache? If there is please share the link or any reference. My scenario is as follows: Server Config: Apache 2.4.12, with prefork PHP 5.5 ZMQ 4.0.X My problem is, whenever I try to…
2
votes
1 answer

Can Apache prepend a header file to any request?

Is it possible to prepend a header file (for example header.php) to any request (for example page.html) without URL Rewriting | redirecting URLs with Apache's mod_rewrite | Running as PHP.
user1000456
2
votes
0 answers

Apache module insert text at the head

So upset about this. I am trying to do a very simple thing here. I try to insert a string at the head of a html file in an Apache module, the code is simple. apr_bucket* txt_esc(apr_bucket_alloc_t* alloc ) { return…
billtian
  • 6,589
  • 4
  • 18
  • 28
2
votes
0 answers

Counting the number of requests an apache module has processed in a day

I have an apache module that we use. What we would like to do is measure the number of requests the module has served in a day. I know we can grep the acess_log or error_log and immediately know the number. I would like to do have some kind of…
user220201
  • 4,514
  • 6
  • 49
  • 69
2
votes
2 answers

How to make Apache restrict access to file except to internal redirects

I am currently developing an Apache module and after parsing POST data from a request to another page, I make an internal redirect to a PHP page that makes some final operations and echoes out an HTML meta refresh tag. This in turn makes the browser…
ravemir
  • 1,153
  • 2
  • 13
  • 29
2
votes
1 answer

Developing Cross Platform Apache Modules using ap_retained_data_create/get in Post Read Config

I had the express pleasure of debugging for hours a quirk in the design for Apache 2.4 while building a cross platform module. The problem I faced is that Apache, when starting, loads the configuration file twice, and thus loads the module itself…
Alex Erwin
  • 333
  • 1
  • 10
2
votes
1 answer

Is there a way to determine the loading order of apache modules

I'm developing an Apache based application witch few custom modules. I'd like to share some functionality in one module with others. I need to wire them together during stratup phase. I want to use GetModuleHandle + GetProcAddress (it will rununder…
Łukasz Bownik
  • 6,149
  • 12
  • 42
  • 60
1
vote
1 answer

Write access for apache to update /var/www folder

I'm writing an apache module that does the following: 1) User requests a page (index.html) 2) Apache module will act as a filter that counts the number of words in index.html and then append the number of words at the footer of the html file. 3)…
1
vote
3 answers

API to access referrer field in Apache Module

I cannot find it in the request_rec* structure? Is there a way by which I can access it in the Apache Module? Thanks!
user855
  • 19,048
  • 38
  • 98
  • 162
1
vote
2 answers

how to use multiple dll in apache created with delphi on 2 different ports

I have created 2 apache dll using delphi and this guide: https://docwiki.embarcadero.com/RADStudio/Sydney/en/DataSnap_REST_Application_Wizard_for_Windows then I tried installing the first on apache like this: LoadModule webbroker_module…
lorife
  • 371
  • 1
  • 12
1
vote
1 answer

How to get module name in log line via ap_log_error in a Apache Module in C?

Would like to get more detail into my error log lines from my apache module. Currently am using this to log a bad request: ap_log_error(APLOG_MARK, APLOG_ERR, 400, r->server,"error msg"); Which results in this in the error log file: [Wed Nov 09…
Dan
  • 2,209
  • 3
  • 23
  • 44
1
vote
1 answer

Apache Custom Module permission issue with calling Libipset

I'm working on an apache module that can check the libipset API to test if an IP is in a list. This is being used as a backup firewall for proxied connections. I've managed to get everything working up until the C script calls type =…
Gnosis
  • 13
  • 4
1
vote
1 answer

Apache Proxy Server Removing Double Slashes

Have configured thumbor on my server as a self hosted CDN. However any URL I pass through it has its double slashes merged and as a result I get an error 400. I am using apache2.4 as a reverse proxy. Here is my virtual host…
1 2
3
11 12