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
0
votes
2 answers

Is there more than GET or POST for HTTP?

I'm learning about writing Apache modules for a project I'm working on. I found the official guide, which turns out to be very informative. On the first page, "Developing modules for the Apache HTTP Server 2.4", the section "Building a handler",…
Cole Tobin
  • 9,206
  • 15
  • 49
  • 74
0
votes
1 answer

Apache access the server_rec for a module

I want to get at the value in server_rec.module_config. Does request_rec have any sort of reference to the server_rec? I am not seeing one in the httpd.h file but I could be missing it. Basically I want to access the configuration file for the…
thaweatherman
  • 1,467
  • 4
  • 20
  • 32
0
votes
1 answer

Apache module, determine name of config file passed into function

No, I am NOT asking where to find httpd.conf I have been given code for a module that I need to tinker with and since I can't find any good documentation on the subject I am asking you. const char* receiver_set_config_path(cmd_parms* cmd, void*…
thaweatherman
  • 1,467
  • 4
  • 20
  • 32
0
votes
1 answer

Using flush on apache as cgi

I was using PHP as CGI on an apache webserver. Back then I was writing to text files using scripts. But flush() did not work. To make flush() work I changed to php as "apache module". Now flush works, but I cannot access the files anymore(permission…
Brutus Cruciatus
  • 404
  • 3
  • 18
0
votes
1 answer

apache2 module custom http header

I'm try to redirect a illegal access and bring user to a log-in page, if user get permission and continue to access original, I need to keeping original request url. I try to write original url into http header zone, but I cannot retrieve this data…
code0tt
  • 41
  • 8
0
votes
1 answer

mod_evasive module DOSSystemCommand and DOSEmailNotify option are not working

I have installed apache2 with mod_evasive module on Ubuntu 10.04 and I would like to get an email alert whenever mod_evasive blacklist an IP. For that I have mentioned my email address in /etc/apache2/conf.d/modevasive. when I send an email from…
0
votes
1 answer

Apache module development, correct way to store variables of request

At the moment I store them in global. Is that the correct way ? I want the variable to stay with the current request and goes away after the request is finished. For example: int data1; int data2; apr_status_t my_input_filter (ap_filter_t *f,…
w00d
  • 5,416
  • 12
  • 53
  • 85
0
votes
1 answer

Apache Module development: PHP SESSION access

I am trying to develop an Apache 2 module that, among other functions, should intercept certain POST variables, and then establish a PHP session underneath, setting all the relevant session variables. One option I've considered was using cookie…
ravemir
  • 1,153
  • 2
  • 13
  • 29
0
votes
2 answers

How to Restrict an Apache Module (Handler) to a Virtual Host (vhost)

I have an apache module which uses the ap_hook_post_read_request hook to perform an internal redirect when certain conditions are met. I would like to restrict this handler to a single virtual host but currently it fires on all virtual hosts (there…
Andrew
  • 716
  • 1
  • 8
  • 19
0
votes
1 answer

Configuring the Apache module mod_xsendfile: which .htaccess file do I modify?

Our software updates reside in a private folder outside of the public root. To download them, users must log into our Drupal community so that it can check their permissions before retrieving the file. The current way these files are being…
maxedison
  • 17,243
  • 14
  • 67
  • 114
0
votes
1 answer

I would like to understand how overriding a set C struct is possible?

In building a module for Apache web server, I have encountered several instances where the declaration of a structure says that it only takes const char* members as in the declaration of apr_table_t and apr_array_header_t, but examples I am finding…
Alex Erwin
  • 333
  • 1
  • 10
0
votes
1 answer

MKV, MP4, or FLV for web video streaming

I'm currently on edge with what container I should use for the videos I put on my website. I recently started uploaded videos of game play/walkthroughs and saw the need for a container that could hold HD video without limitations on file size,…
Marc Brown
  • 601
  • 2
  • 11
  • 26
-1
votes
1 answer

How to limit file download bandwidth based on cookies

I want to create premium membership plans in my wordpress site in a way that for example gold users can download files without any limits but regular users have to download files at maximum 200KB/s speed. It's simple to save a cookie when user…
Mohammad
  • 241
  • 1
  • 2
  • 8
-1
votes
3 answers

Cannot install perl module Apache2::Const in ubuntu

I am having problem with installing perl module Apache2::Const. When i am trying to install it using cpan.pm it shows the following error Warning: Cannot install Apache2::Const, don't know what it is. I am using Ubuntu 12.04, Apache/2.2.22 ,Perl…
Hafsal
  • 81
  • 2
  • 7
-1
votes
1 answer

Apache2 module for PHP class

Possible Duplicate: Convert PHP Class in apache module I'm looking for some guidance on the web to create an apache2 module which, when loaded, is able to expose a class in php: if I create a php class as // myclass.php class myClass { …
1 2 3
11
12