Questions tagged [httpd.conf]
The main configuration file of Apache HTTP Server is usually called httpd.conf
httpd.conf
2,045
questions
1
vote
0
answers
19
views
Fixing Apache HTTPD Configuration for Blocking Specific Headers and Custom 403 Error Page
I'm facing an issue in Apache httpd. In the littpd.conf. Inside the rewrite.mod I am blocking requests which have these 3 headers
X-HTTP-METHOD
X-HTTP-Method-Override
X-METHOD-OVERRIDE
And the ...
0
votes
0
answers
19
views
Why do we need backslashes here in this piped logging configuration for Apache Httpd Server?
The configuration line is CustomLog "|$/bin/sed -u -E \'s/(ticket)(=|%3D)[a-zA-Z0-9%]+/\\\1\\\2***/g\' >> /dev/stdout" json. The goal is to replace query params like ticket=123 to ...
0
votes
0
answers
21
views
Passing per-request Apache environment variables to Node app
I'm authenticating to Shibboleth IdP using Apache mod_shib and ProxyPass to access a Node application running NestJS. SAML attributes are released as environment variables (strongly preferred) or HTTP ...
0
votes
0
answers
27
views
Apache mod_rewrite How to strip slash off document root AND all URIs
I have apache-2.4.59 on fedora40 and trying to strip any trailing slash(es) from the root and any other URIs using RewriteCond/RewriteRule in my vhost config. I've tried a dozen different combinations ...
0
votes
1
answer
26
views
Apache, deny access to all files and subdirectories except index.php
I have this in my httpd.conf but does not work, request is forbidden typing localhost:
<Directory "${DOCUMENT_ROOT}">
Options -Indexes +FollowSymLinks +Includes +ExecCGI
...
0
votes
0
answers
76
views
Custom Response headers are not receiving in to client side
I have two servers, httpd server has launching in UI application and another server has in Spring boot application.
In spring boot rest end point sending the custom response headers to UI, but that is ...
1
vote
1
answer
45
views
Trying to redirect hotlinked pdf files using RewriteMap in http.conf and RewriteRules in .htaccess
I am trying to redirect external links to pdf files to the html page were the pdf is hosted.
I have updated /etc/apache2/conf.d/includes/pre_main_global.conf, which is an include file for httpd.conf ...
0
votes
1
answer
39
views
Configure Apache httpd to host app with domain and avoid port conflict
I am deploying a React (UI) / Python (backend) application running on port 3001 to a GoDaddy-reserved domain (www.demo.com) with TLS on an Apache (httpd) server within a AWS Amazon Linux 2023 EC2 ...
1
vote
1
answer
65
views
Remove .html and .php extensions from the URL using OpenBSD's httpd.conf file
This might be more of a regex question or maybe a httpd.conf but I think I'm pretty close. Just need a bit of help. Let me say, I always struggle with regex, despite websites like this: https://...
-1
votes
1
answer
102
views
Throwing AH01225: Error reading request entity data while uploading files [closed]
We face an issue of failure in upload files of more than a GB in size which will keep printing apache error.logs during upload in progress as:
[Tue May 07 04:16:35.109777 2024] [cgi:error] [pid 30766] ...
0
votes
0
answers
64
views
After upgrading httpd-2.4.41 to httpd-2.4.58, facing net::ERR_CONNECTION_ABORTED error while uploading large file
Due to CVE-2021-40438 exploit on our old Apache, we had to upgrade from httpd-2.4.41 to httpd-2.4.58.
We face an issue when posting, since we are unable to upload files of more than a GB which will ...
0
votes
0
answers
23
views
Apache error logs of module "proxy_ajp" is not converting to JSON format
We have converted our Apache error logs to JSON format by defining the format in httpd.conf file
ErrorLogFormat "{"timestamp":"%{u}t", "ApacheModule": "%m",...
0
votes
1
answer
81
views
Stuck in a redirect loop (ERR_SSL_PROTOCOL_ERROR in Chrome)
I have a VPS that I administer that is running Apache over CentOS 8. The server uses Cloudflare as a CDN and proxy.
It has come to my attention that one of the four domains on the VPS is down - it ...
0
votes
1
answer
26
views
Apache deadlock when writing in file
I'm using Apache v2.4.56 on Solaris, with libapr 1.6.2. When starting it, it spawns 5 httpd processes. Now from time to time the server get locked and is not accepting requests anymore. It's even ...
0
votes
0
answers
34
views
Getting Forbidden You don't have permission to access this resource error while depolye django project with apache and mod_wsgi
Here is my error from error_log:
\[Fri Mar 22 16:00:09.035343 2024\] \[wsgi:info\] \[pid 63294:tid 63294\] mod_wsgi (pid=63896): Process 'swpdoc' has died, deregister and restart it.
\[Fri Mar ...