Questions tagged [apache2-module]
71 questions
1
vote
1 answer
Apache Module: Output Keeps Growing on Each Request
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:…

AJ.
- 27,586
- 18
- 84
- 94
1
vote
1 answer
Authentication Module Issues with Apache 2 and Perl
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…

MOSSLover
- 11
- 2
1
vote
1 answer
Secure config for Apache2.4 + PHP-FPM?
Very rusty with PHP and Apache so hopefully this will be an easy question. The Apache Wiki has a page on setting up PHP-FPM with Apache 2.4, but the specified ProxyPassMatch method of forwarding requests for .php files to the php-fpm module is…

bgibson
- 17,379
- 8
- 29
- 45
1
vote
1 answer
Making HTTP request from an apache2 module (c++)
My apache2 module written in c++ works just fine, it handles "page.xyz"-like requests from browser clients, and it can return the appropriate result.
What I need now is to use my module as a client to another server: make a HTTP (GET) request and…

Graphyt
- 55
- 2
- 4
1
vote
1 answer
I'm developing an Apache 2 module. Why is create_server_config is called twice when the service starts up?
I wrote the module code like this:
static void *example_create_server_config(apr_pool_t *p, server_rec *s)
{
syslog(LOG_ERR, "create_server_config");
// create my handler
// my_handler_t *handler = (my_handler_t *)apr_palloc(pool,…

Yifan Wang
- 504
- 6
- 13
1
vote
0 answers
Unable to get header values from `request_rec`
Problem
I want to retrieve value of a header in my custom Apache module. (The header is coming as part of a POST request.) I am doing this:
const char *myHeader = apr_table_get(r->headers_in, "MyHeader");
But, this is giving myHeader =…

mmdemirbas
- 9,060
- 5
- 45
- 53
1
vote
2 answers
session attributes no longer working when going through mod_proxy
I have a tomcat app running on "http://localhost:8080/appexploded/login.jsp" (Tomcat). Now I have installed Apache and am running mod_proxy so that all request on port 80 can be proxied to 8080. In my httpd.conf file, here is what I have:
LoadModule…

frosty
- 21,036
- 7
- 52
- 74
0
votes
1 answer
apache2 - ssl virtual host does not execute cgi scripts
I have the following virtual host configuration
ServerAdmin m@petyo.net
DocumentRoot /home/ren/public/
Options +ExecCGI Indexes
AllowOverride All
…

ren
- 115
- 3
- 14
0
votes
1 answer
Segmentation fault in Apache2 Module
I'm currently reading the book "The Apache Modules Book" to learn writing Apache2 modules.
I tried some examples from the book and in one case I get a segmentation fault, even if I completely copy&paste the source file from the author's website.…

Robert M.
- 1,339
- 1
- 12
- 34
0
votes
1 answer
Error Install apache2-prefork-dev for passenger
Hi guys I have the next problem when I go to install apache2-prefork-dev with this command:
sudo apt-get install apache2-prefork-dev:
.
.
.
The following packages have unmet dependencies:
apache2-prefork-dev : Depends: libaprutil1-dev but it is not…

hyperrjas
- 10,666
- 25
- 99
- 198
0
votes
0 answers
Apache2 RemoteIP module returns 0.0.0.0 when RemoteIPHeader X-Forwarded-For is set
The Apache is running behind Google HTTPS Proxy. Apache RemoteIP module is enabled which seems to work fine. Some requests are flagged in PHP code when Remote IP is 0.0.0.0. After investigation it is guessed that for some X-Forwarded-For IP list…

Sharad Upadhyay
- 65
- 8
0
votes
0 answers
How can I specify the path to redirect requests from apache2 to a tomcat worker node using mod_jk?
I need to specify the path to redirect requests from the apache2 server to the tomcat worker node.
There was a need to balance the load using mod_jk. Before that, ProxyPass was configured:
/api {HOST}:{PORT}/{APP}/api
Now I need to implement the…

autobol
- 1
- 2
0
votes
0 answers
Is there any way to further improve this security configuration of Apache 2 sever on Ubuntu?
I am setting up an Apache 2 server on Ubuntu.
Ubuntu Version: 20.04.5 LTS (GNU/Linux 5.4.0-135-generic x86_64)
Server version: Apache/2.4.41 (Ubuntu)
The web application "currently" does not accept upload nor runs any cgi script, nor does request…

Pro Girl
- 762
- 7
- 21
0
votes
0 answers
504 Gateway Time Out on Load Testing on Apache Instance
I have a Laravel app deployed over Apache Instance Instance Config
T3A.2xLarge (vCPU = 4 , Memory 16 GIB)
I have increased apache timeout to 600 Seconds , configured mpm_prefork Module as below
StartServers …

Kashyap Patel
- 1,139
- 1
- 13
- 29
0
votes
1 answer
How to install Modsecurity 2.9.6 on Debian 11 with Apache2?
If you want you use the new CRS versions you need at least 2.9.6 of libapache2-mod-security2. see:
https://coreruleset.org/installation/
Is this possible on Debian11? I searched for backports but couldn't find any method on getting this version.…

holz
- 13
- 3