All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

How do I set the timeout for the static health check of a Balancer Member of an Apache reverse proxy

I am trying to configure a reverse proxy. I currently have <Proxy balancer://myset> BalancerMember http://IP1:80 retry=4 BalancerMember http://IP1:80 Balancermember http://IP3:80 ...
Thomas Stokes's user avatar
0 votes
2 answers
78 views

Apache Httpd: Logging Access for Non-privileged Users

I’m wondering if it is common for Apache HTTPD admins to allow read access or read access to copies of /var/log/httpd/${vhost}_error_log? I administer an Apache web server for a University CS ...
deconstruct's user avatar
0 votes
2 answers
221 views

Apache 2.4 Redirect all to index.php

OK, first let me apologize if this question has been asked before. I did a search but didn't immediately find something suitable. I've been looking at the Apache docs but just cannot get this rewrite ...
Paul Allsopp's user avatar
0 votes
0 answers
52 views

Apache Centos mutiple instances and virtual hosts

I installed apache on centos and added two virtual hosts (server1.com and server2.com ): server1.conf Listen 443 https <VirtualHost *:443> DocumentRoot /opt/server1/ ServerName server1....
el sparrow's user avatar
0 votes
0 answers
67 views

SSPI, Treat wrong credentials as anonymous user

I'm running apache 2.4 with xampp, and so far my sspi works well with mod_authnz_sspi. I would like to accept all users, but get their name in $_SERVER['REMOTE_USER'] if they are in my active ...
Neil's user avatar
  • 101
1 vote
1 answer
188 views

What determines the name of Apache PHP Handlers?

When configuring an Apache server to use a Handler to run PHP code, I'm familiar with adding a line similar to below in httpd.conf or .htaccess: AddHandler application/x-httpd-php81 .php This tells ...
frumious's user avatar
  • 123
1 vote
1 answer
96 views

httpd redirect one port number to another

We are trying to redirect requests on port 8555 to port 8443. In our httpd.conf file, we have the following: <VirtualHost *:8555> SSLEngine on # SSL configuration that is irrelevant to this ...
user1207177's user avatar
0 votes
0 answers
213 views

AlmaLinux HTTPD will not recognize the error with .htaccess

Product version: Plesk Obsidian 18.0.47.5 OS version: AlmaLinux 8.7 x86_64 The problem is Apache / HTTPD would not recognize to error its .htaccess from when editing the file at AllowOverride None to ...
Saya Kisaragi's user avatar
0 votes
0 answers
365 views

What is the correct way to enable HTTPS on apache httpd VirtualHost, given a .pem file and a .key file?

I need to get https enabled on a webserver (RHEL 7.9, httpd 2.4.6). We were provided a pem file, with the following format: -----BEGIN CERTIFICATE----- // -----END CERTIFICATE----- -----BEGIN ...
demiglace's user avatar
  • 101
0 votes
0 answers
116 views

ClosedChannelException due to apache AJP

I am getting errors in prod splunk(not able to reproduce error in lower regions) which my senior believe is due to Apache AJP. Below are the errors - [31m10:53:39,465 ERROR [io.undertow.request] (...
ereh's user avatar
  • 1
0 votes
1 answer
353 views

Alias in apache httpd.conf

I am trying to serve robots.txt on an existing https site being served via reverse proxy on an apache windows server. Here is what I added to httpd.conf file however this is not working. What am I ...
desiguy's user avatar
  • 101
1 vote
0 answers
288 views

Apache 2.4 "Require ip" not working for /server-status, /phpMyAdmin etc with VirtualHost directives added in httpd.conf

I recently changed using the Event MPM in my Apache 2.4 installation, alongside PHP-FPM and FastCGI proxy, I hope that wasn't the reason for my problem. I also started working with name-based ...
AkiEru's user avatar
  • 77
0 votes
1 answer
174 views

Configuring Virtual Hosting Httpd - Fedora Server - 'sites-available and sites-enabled' vs 'conf.d/vhost.conf'

The current set-up for my web server is a 1GB nanode using Fedora37 as the distribution for the compute instance. For the web server I am using Httpd (Apache 2.4.54), and am now in the process of ...
CatByte-io's user avatar
0 votes
1 answer
104 views

How to Enable multiple URL's with mTLS in place

Mine is a web server i need multiple URL's of the server enabled with mTLS in place. This is my code. <IfModule ssl_module> Header set Cache-Control "no-store" Header always set Strict-...
Hanumesh Desai's user avatar
1 vote
1 answer
408 views

Why does my condition on %{REQUEST_METHOD} not appear to work in my apache .conf file

I was trying to whittle down the cases where the Access-Control-Allow-Origin is sent in a response to only some specific scenarios such as only for specific request methods. In this situation we ...
jpierson's user avatar
  • 241
0 votes
1 answer
340 views

Systemctl cannot access additional config files for httpd

I have a freshly set up RHEL 8.6 with httpd installed (yum install httpd). In /etc/httpd/conf/httpd.conf additional configs are included on a mounted NFS share: IncludeOptional /cat/soft/apache/...
Ralf L.'s user avatar
0 votes
2 answers
2k views

Apache Proxypass redirects "localhost:port" as url string instead of local service of the port

Environment Server version: Apache/2.4.6 (CentOS) I have two servers which are almost duplicates. aaa.com. and bbb.com. They have almost same Apache rulesets. aaa.com. config <Location "/...
Lunartist's user avatar
  • 125
0 votes
0 answers
13 views

Redirect root / to proxy alias multiple subdomains [duplicate]

So I have been trying and failing at re-write conditions for a site that multiple subdomains for its site The gist is that each market must direct and display code differently do to regulations so ...
Craig's user avatar
  • 1
0 votes
1 answer
670 views

different configurations files to apache2?

I'm pretty new to this, and reading a lot online, but what configuration is right? in apache2, some are talking about httpd.conf, and have all configuration in one file. my installation have 2 ...
Adam Larsson's user avatar
0 votes
1 answer
662 views

Unable to change "MaxSpareServers"?

I wanted to increase the MaxSpareServers. <IfModule mpm_prefork_module> MaxSpareServers 20 </IfModule> However, I get the below error while testing. [root@server_1 conf.modules.d]# ...
beat_it_987's user avatar
0 votes
0 answers
272 views

Are Apache Define directive variables allowed to be overwritten?

Are Apache httpd Define directive variables intended to be allowed to be overwritten? For example, Define SITE example1.com <VirtualHost *:80> ServerName ${SITE} </VirtualHost> ...
Jeff's user avatar
  • 1,426
0 votes
0 answers
2k views

PATCH request returns 404, POST and GET work

I'm working on a web application that interacts with a custom REST API. It's basically a table of data that's updated through the application. I'm trying to use the PATCH method for the updates, but ...
Michael Dandini's user avatar
0 votes
1 answer
49 views

How can I show the subdirectory of a server as an index based on domain used to connect to it?

I have 2 domains running in the same directory off the same IP (Via a CNAME record in each's DNS) the directory shows this in the apache index: index of / domainOne.com/ domainTwo.com/ This is shown ...
Mister SirCode's user avatar
1 vote
0 answers
339 views

Apache 2.4 and Reverse proxy - not redirecting when using VirtualHost

I'm running Apache 2.4 on AWS Linux as httpd. I've a single domain, and all requests are directed via /conf/httpd.conf using Listen: 80 and DocumentRoot "/var/www/html". My current domain ...
anakaine's user avatar
  • 111
0 votes
1 answer
144 views

How to rewrite urls using ProxyHTMLURLMap?

My urls are in this form /sites/site-name/Subpath-2/page-name.page /sites/site-name/Subpath-3/Subpath-4/index.page And this should be rewritten as /sitename/subpath/pagename (the extention .page is ...
Gaurav-Reddy's user avatar
0 votes
1 answer
47 views

Some questions about httpd log

First question: why there are two error log files? One is /var/www/mywebsite/error.log, which is specified in <VirtualHost> with the ErrorLog instruction. The other is /var/log/httpd/error_log. ...
William's user avatar
  • 99
0 votes
1 answer
156 views

How to match domain by external file and create an alias?

Using Apache. I have a txt file of domains that I want to use for mapping directory aliases. But I can't figure it out. The txt-file looks like this: example.com folder1 anotherexample.com folder2 ...
tim's user avatar
  • 101
0 votes
0 answers
16 views

Unable to Determine Request Header Limiter

I'm new to using apache and working on a company product I've been hit with a 405 error with a PUT request. Looking at methods of limiting request headers - it appears this can only be done using ...
Steveguile's user avatar
0 votes
0 answers
170 views

Should I increase MaxSpareServer?

Recently we have surfered a 2 minutes downtime in one Apache Server 2.4. There is not any significant error in error_log like "Max server Limit reached" and neither in acces_log. Moreover, ...
Pablo Luna's user avatar
0 votes
0 answers
567 views

How to log upstream IP in Apache HTTP server?

I'm using Apache Http server as a reverse proxy. I am interested in logging the upstream server IP in access and error logs. I'm looking for something like upstream_addr of Nginx web server.
kgoutham93's user avatar
4 votes
1 answer
766 views

How can I apply HSTS header to all vhosts over 443 in Apache

I'm looking to add the HSTS header in Apache... # HSTS / Header Strict Transport Security Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" ... but ...
oucil's user avatar
  • 587
1 vote
2 answers
1k views

Apache2 - if page not found it gets served from another domain

I am facing a strange behavior with my main host IP and the served virtual hosts, basically I have the following: |- 148.x.x.x /var/www/html/public_html |- domain01.com /var/www/...
H Aßdøµ's user avatar
1 vote
1 answer
1k views

Apache mod_rewrite with Redirect Dropping Authorization Header

I have some Apache mod_rewrite rules set up to redirect Maven deploys from one url/server to another. We're in the process of migrating from Nexus to Artifactory and need these redirects set up so ...
user avatar
0 votes
1 answer
330 views

apachectl reports that it's in worker mode, however the configuration seems to be set to prefork

I'm using a VPS running Apache2.4 and CentOS7. I'm hitting some threading issues and would like to try to run Apache in prefork mode. If I run apachectl -V to check which mode I'm in, I get this ...
Jake Browning's user avatar
0 votes
1 answer
612 views

How to get mod_rewrite specific log messages in Windows Server and which file do I need to get?

I have an issue on getting mod_rewrite specific log. I found this on a website and with help from a friend I managed to get this to run in Windows Server Powershell. Below is the command line: Get-...
Petri's user avatar
  • 49
1 vote
1 answer
6k views

Is it possible to set ServerName with an environment variable in Apache?

How can I set the ServerName directive in Apache to the environment variable HTTP_HOST I have tried: ServerName %{HTTP_HOST} #or ServerName ${HTTP_HOST} or expr=%{HTTPS} Define server_name %{...
user avatar
1 vote
1 answer
2k views

Apache HTTPD 2.4.x: How to "direct" users to a a custom error page if certain characters are present in the URL/URI?

so I have this apache config where I'm trying to "rewrite" users to a custom error page but it's not working. I entered http://localhost/index.html/ddgdg%:sdsdfs in the browser and I didn't get my ...
mrjayviper's user avatar
0 votes
2 answers
364 views

Non-Wordpress domain on Bitnami WordPress multi-site

I've been fighting this issue for quite some time and perhaps don't have a good enough understand of Apache. I have a Bitnami Wordpress Multi-site installation running on AWS lightsail. I have 3 WP ...
jpsnow72's user avatar
  • 115
1 vote
1 answer
156 views

Why is this VirtualHost definition activating when the ServerName doesn't match? [duplicate]

I've got a httpd24 server that I want to use to server multiple domains. I've got a 3 VirtualHost definitions. <VirtualHost *:443> ServerName one.example.com # SSL stuff DocumentRoot "...
Programming Guy's user avatar
1 vote
1 answer
2k views

httpd: Syntax error on line 523

I have a late 2009 Imac with Mac OS 10.13.6 High Sierra, installed XAMPP 7.0.30 and trying to run openEMR 5.0.1, I am a really beginner on Server world and PHP too. At the begining Apache server ...
Chema Moriñigo's user avatar
0 votes
0 answers
335 views

New line in apache rewrite rule

Using RewriteMap in Apache 2.4 for some variable conversion referring this. Everything seems fine. Able to test the external program alone and it gives the expected output. As per the link, the map ...
Anitha.R's user avatar
  • 101
0 votes
1 answer
298 views

Kerberos + LDAP in Apache httpd - ObjectSID

I am doing LDAP authorization along with Kerberos authentication in httpd 2.4. I am retrieving objectSID from ldap and found that to be not in readable format. Referring this and this, have used a ...
Anitha.R's user avatar
  • 101
0 votes
1 answer
212 views

Setting value via variable in apache httpd.conf

I have the following entry in my apache config file: <LocationMatch "/hls-vod/(?<id>[0-9][0-9])/(.*)"> HLSHttpStreamingEnabled true HLSMediaFileDuration 8000 HttpStreamingContentPath "$...
Brad's user avatar
  • 619
3 votes
1 answer
4k views

How do I use a custom variable in an If-Else statement inside an Apache config?

Here's my code (I've commented out the if-else part as it's not working) snippets/contents of my config files /etc/httpd/conf.d/staff.vhost Define host_domain "staff" Include /etc/httpd/conf.d/...
mrjayviper's user avatar
3 votes
1 answer
2k views

How to exclude RewriteMap if REQUEST_URI is not found

I have an old site wordpress site I am in the process of migrating. There are about 50000 urls that need to be redirected. For this I am using DBM files which seem to be working fine, however during ...
Donna Delour's user avatar
0 votes
1 answer
659 views

Apache24u / phpinfo: still showing old version

Ive upgraded the server from default apache 2.4.6 to the apache24u (https://centos.pkgs.org/7/ius-x86_64/httpd24u-2.4.34-1.ius.centos7.x86_64.rpm.html). when I check it via shell, I get the correct ...
Raheel Hasan's user avatar
1 vote
1 answer
3k views

Apache: No matching DirectoryIndex

I'm newbie in apache, i have the following directory structure: html |-- moodle |-- singapur |-- app |-- public |-- js |-- css |-- img |...
ignacio.saravia's user avatar
5 votes
3 answers
35k views

Apache 2.4 updated, now throws: Cannot define multiple Listeners on the same IP:port

I've just updated Apache to 2.4.3 on my AWS instance (running Linux AMI). After the update finished, Apache crashed with the following: Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/...
Edmond Tamas's user avatar
1 vote
2 answers
92 views

Including 2 CAs in VirtualHost in Apache using httpd for https phone/server handshake

I'm trying to load a server cert from godaddy so have xxxxxxx.crt, and bundle.crt, I've made a key/csr which we used to create the certs. I'm now trying to load another cert as the phone we're using ...
juju's user avatar
  • 131
1 vote
1 answer
314 views

How to force Apache to skip binding to failed interface? [closed]

I run Apache inside VirtualBox on a laptop. I also used IP based VirtualHost-s. I want to be able to have LAN access whenever I move about, to certain pre-known networks. The IP, however, is not "...
Ate Somebits's user avatar