Questions tagged [apache2-module]
71 questions
0
votes
1 answer
How to replace string with a string having space characters in substitution part of mod_substitute
In my apache 2.4 httpd server, I want to add this small javascript snippet in my response using mod_substitute.
Like this -
AddOutputFilterByType Substitute text/css
Substitute…

datastax
- 144
- 1
- 2
- 13
0
votes
1 answer
How to open a file from apache2 in VS Code using 'code .'
I am using apache2 server where I have my Git repo cloned. I want to be able to open the folder in VS Code using code . but when I run that command it says -bash: code: command not found - Do I have to install a package on the server and if so,…

Raj Chudasama
- 3
- 4
0
votes
1 answer
How can I disable the switch back to mpm_prefork by Apache Security update?
my Apache2 on Ubuntu 16.04 runs mpm_event, but on every Security Update Apache switch back to mpm_prefork. Why and how can I disable this, so mpm_event is still configured?
I found this:…

Burner
- 981
- 19
- 41
0
votes
2 answers
How to programmatically obtain the apache2.conf file directory or path inside a module?
I have a module that is hooking ap_hook_child_init. From that callback I would like to obtain the directory where the main apache2.conf file lives (or the full path to that file, I'll parse out the directory).
That callback takes a server_rec…

marathon
- 7,881
- 17
- 74
- 137
0
votes
1 answer
How can I run my own apache module on Ubuntu 10.10
I want to play with my own apache module (in C or C++, maybe python), but I cannot find any solution for it. I missing apache header files (I have no httpd folder in /etc/apache2/ which contain includes), even if I copy that I missing some header…

sennin
- 8,552
- 10
- 32
- 47
0
votes
1 answer
Is this ok to use COM in Apache module
I need to write a module for Apache. The server will be running under Windows and it looks that I will need to utilize some functionality which is implemented as COM.
Is this ok to use COM in Apache module or should I try to avoid this?

Victor Ronin
- 22,758
- 18
- 92
- 184
0
votes
1 answer
ImportError: No module named lxml.etree failed in Apache2 CGI
The error is only happened in web. If I run it in console, it is OK.I am working in ubuntu.
I have setup apache2 using CGI for handle python and tried to displayed the python version in the code and can prove web and console both running on same…

yangbin990
- 83
- 7
0
votes
1 answer
Any luck with mod_libpq under Apache 2.2 and/or win32?
Has anyone had luck compiling mod_libpq for Apache 2? I know there were some fairly major changes so the source might have to be updated, but has it been done already by someone?
Also, has it been compiled for win32 (either version of Apache, or…

Kev
- 15,899
- 15
- 79
- 112
0
votes
2 answers
Strawberry Perl with mod_perl2: building Apache2 modules from CPAN
I have Strawberry Perl 5.10 and mod_perl2 installed per these instructions on the mod_perl mailing list without a problem. However, trying to install various Apache2:: modules that my scripts use result in errors. One (Apache2::Reload) I was able…

Kev
- 15,899
- 15
- 79
- 112
0
votes
1 answer
How to use apache session along with basic authentication (in apache2.4)?
I see most examples using it with form-based authentication (i.e. we load the mod_auth_form.so and other session modules). Is it possible to use this session timeout along with basic authentication (i.e. we load mod_auth_basic.so ) ?
Also, I know…

Crusaderpyro
- 2,163
- 5
- 29
- 53
0
votes
1 answer
Apache module in C: how to write data to client socket?
I have created a simple mod_perl module, which writes a 0-terminated string to the Flash-clients connecting to the port 843. It works ok, but uses 20m per httpd-child at my CentOS 5 Linux machine.
So I'm trying to rewrite my module in C, but I'm not…

Alexander Farber
- 21,519
- 75
- 241
- 416
0
votes
2 answers
Ubuntu, How to link .exp file in C?
How to link .exp file in C?
I can link .so, .o, .a, .la, lo and .slo files.
But there is file httpd.h with .exp file only(No .so, .o, .a, .la, lo and .slo files) and I need to use a function from it.
And, I am getting undefined symbol…

Tahir Ramzan
- 43
- 1
- 10
0
votes
1 answer
Threading in Apache2.2
I am using threading to post data on server.threading is working fine and Data is receiving at the server but Every time i am getting Segmentation Fault/core dump exception for every request.
My thread function
void* APR_THREAD_FUNC…

sumit chansouliya
- 81
- 2
- 9
0
votes
1 answer
eEach virtual host with different php cinfiguration
I have two virtualhosts on an apache web server. There is a document root for each of them:
>>/var/www/vhosts/
I set up a php-fpm, now I want to set different open_basedir for each of them.
I removed
>>/etc/php.ini
then created two php.ini in…

Mehrdad Islamkhah
- 67
- 1
- 1
- 6
0
votes
1 answer
Apache2 virtual hosts links in website no working
I installed apache2 server and enabled a2ensite for my domain name. I followed link - https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts to setup virtual hosts.
Now when I type my domain name, the…

skool99
- 780
- 1
- 16
- 35