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
260
votes
9 answers

Apache Proxy: No protocol handler was valid

I am trying to proxy a subdirectory to another server. My httpd.conf: RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] The problem is that Apache is always logging this: AH01144: No protocol handler was…
das_j
  • 4,444
  • 5
  • 31
  • 47
12
votes
2 answers

HTTP requests and Apache modules: Creative attack vectors

Slightly unorthodox question here: I'm currently trying to break an Apache with a handful of custom modules. What spawned the testing is that Apache internally forwards requests that it considers too large (e.g. 1 MB trash) to modules hooked in…
pinkgothic
  • 6,081
  • 3
  • 47
  • 72
9
votes
6 answers

No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/run/php/php5.6-fpm.sock (*) failed

I have such virtual host settings ServerAdmin webmaster@localhost DocumentRoot /var/www/html SetHandler "proxy:unix:/var/run/php/php5.6-fpm.sock|fcgi://localhost/" …
user
  • 99
  • 1
  • 1
  • 2
9
votes
2 answers

XSendFile won't serve the files in Apache 2.2

I'm using mod_xsendfile (v0.12) to serve static files where Django is controlling access to the files based on users and permissions. In my conf file, I have: XSendFile On XSendFilePath e:/documents/ Order allow,deny …
boatcoder
  • 17,525
  • 18
  • 114
  • 178
8
votes
2 answers

ERROR: Module mod_vhost_alias does not exist

I am trying to enable mod_vhost_alias in apache. I did some Googling and found a command sudo a2enmod mod_vhost_alias I tried that but then I get this ERROR: Module mod_vhost_alias does not exist! How do I make mod_vhost_alias exist? Download it…
Drew LeSueur
  • 19,185
  • 29
  • 89
  • 106
7
votes
2 answers

URL Rewriting doesn't seem to work. Apache2

I would like it so that when the user goes to http://mysite.com/home that it redirects him to http://mysite.com/page.php?id=home. This is what I put in my .htaccess, but it doesn't seem to work. RewriteEngine On RewriteRule ^/(.+)$ page.php?id=$1…
Alexandre Hitchcox
  • 2,704
  • 5
  • 22
  • 33
6
votes
3 answers

How to enable mod_info in Apache?

I've gone through the Apache guide to enable to mod_info. As per doc: To configure mod_info, add the following to your httpd.conf file. SetHandler server-info You may wish to use mod_access inside the…
Amit Nagar
  • 261
  • 3
  • 4
  • 14
5
votes
2 answers

Global variables in Apache Server

I'm writing some apache (2.2) modules in C and I'm pretty new at it, so I was wondering: I need to know if it's possible to create a global variable that will be initiated whenever the apache server starts to run. See, I need to have a list of host…
user795810
  • 105
  • 1
  • 10
5
votes
3 answers

How to install mod_auth_openidc module in an Apache server running on Docker

I am trying to add the mod_auth_openidc module to an Apache server running on Docker. After adding LoadModule auth_openidc_module modules/mod_auth_openidc.so, I create the image and run it, getting this error: httpd: Syntax error on line 69 of…
codependent
  • 23,193
  • 31
  • 166
  • 308
5
votes
1 answer

Developing Apache Module using java

I see lot of examples on how to build a Apache Module using perl, C but there is no documentation to describe how to build a Apache Module using java. Is it possible to build a Apache Module using Java?
roronoa_zoro
  • 619
  • 4
  • 17
5
votes
1 answer

What does mod_auth_passthrough do?

What does apache module mod_auth_passthrough is for exactly? It seems to be shipped with CPanel and sometimes is active. What exactly is it for and what does it do?
Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
5
votes
3 answers

How do I write CGI scripts using Haskell?

I want to make a Web application in Haskell (for example, it could be a blog, forum, or some dynamic web pages), what do I need? (I know that I need an http server (such as apache or lighttpd). I also know that I should know some Haskell…
mono
  • 53
  • 1
  • 3
4
votes
1 answer

How can I write an Apache module in C++?

I'd like to write an Apache module in C++. I tried a very barebones module to start: #include "httpd.h" #include "http_core.h" #include "http_protocol.h" #include "http_request.h" static void register_hooks(apr_pool_t *pool); static int…
Daniel Wagner
  • 145,880
  • 9
  • 220
  • 380
4
votes
1 answer

Apache / Define stickiness with JSESSIONID

I try to define stickiness in Apache. Here is the definition in proxy.conf: BalancerMember https://localhost:5006/doc route=node1 BalancerMember https://localhost:5008/doc route=node2 ProxySet…
MIDE11
  • 3,140
  • 7
  • 31
  • 53
4
votes
2 answers

Apache module command parser prototype

I am creating an Apache2 module and experiencing a weird compilation problem. This is prototype of my function used to parse config command named "analytics_ip": static const char *apr_cfg_set_analytics_ip(cmd_parms *cmd, void *config, const char…
Kryštof Hilar
  • 609
  • 2
  • 10
  • 22
1
2 3
11 12