Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [apache-2.4]

Version 2.4 of the Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

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

Want Apache Location to have different authorization than overlapping Directory

I am running an application in Apache 2.4. The application is served out of /usr/share/myapp/cgi-bin. Access to this application is restricted to those who have authenticated with Shibboleth. The ...
user avatar
  • 2,571
0 votes
0 answers
9 views

apache in docker: best practice to manage logs written to mounted volume?

What the best practice to write and manage log files written by Apache HTTPD running in a container? We run Apache HTTPD using docker base image httpd:2.4-bullseye. Right now HTTPD is configured to ...
user avatar
0 votes
0 answers
10 views

reverse proxy Apache that redirects filtering by ip and path

I am trying to create a reverse proxy with apache that if it receives a request with /thisismypath as path and the ip address that make that request is 192.168.2.12 the it should redirect to 192.168.1....
user avatar
  • 1
0 votes
0 answers
10 views

using external disc for media files with RewriteRule

My apache DocumentRoot folder is $HOME/MyProject/src. Large external disc is mounted on a server on /storage path. I have a bunch of rewrite rules set on in apache .conf. For example: RewriteEngine on ...
user avatar
  • 129
0 votes
0 answers
17 views

Apache24 on windows returns 'It works' only instead of the virtual hosts

I have configured Apache 24 with mod_wsgi on windows 2016 server for my Django applications and deployed three websites with different IP addresses. I have also configured ssl certificates for each ...
user avatar
0 votes
1 answer
9 views

redundant load balancer for Tomcat

I have three Tomcat webservers in a VMWare cluster. In the first place we thought of using Apache as a load balancer in physical server but this would be a SPOF. I have searched around and I found ...
user avatar
0 votes
1 answer
16 views

icingaweb2 not reachable on apache

the icingaweb2 is not reachable, although it is running on the server with the apache and icinga2. I already have all the prerequisites, that are documented on the official site set up. However, when ...
user avatar
  • 11
0 votes
0 answers
13 views

Apache2 Server Connected To AWS ALB With HTTP2

I have an Apache2.4 web server that is connected to AWS ALB. Since the ALB provides HTTP2, I have not configured the Apache server itself to enable the HTTP2 module and the HTTP2 seemed to be working ...
user avatar
0 votes
0 answers
35 views

How to figure out what is bad about a 400 bad request, on an Apache-server

The overarching question How do I see what is 'bad' about a 400 - bad request? Info about the error When I click around the WordPress-backend, then between 3 and 7 requests (out of 95-100) give me a:...
user avatar
  • 111
0 votes
0 answers
13 views

Apache stops responding after a while when activating HTTP/2

I have apache 2.4.41 on Ubuntu 20.04 and run a certain application through PHP-FPM, with the MPM set to 'event'. Recently, in an attempt to speed up the application, I enabled HTTP/2 in the ...
user avatar
0 votes
1 answer
16 views

Editing fail2ban apache-noscript config to add "AH10244: invalid URI path"

I have the following (default) /etc/fail2ban/filter.d/apache-noscript.conf configuration file: [Definition] script = /\S*(?:php(?:[45]|[.-]cgi)?|\.asp|\.exe|\.pl|\bcgi-bin/) prefregex = ^%(...
user avatar
  • 73
0 votes
0 answers
31 views

Apache - Active Directory LDAP authorization

I'm running Apache 2.4 on Fedora 34. I've configured user authorization based on Active Directory usernames and passwords with "ldap_module" and "authnz_ldap_module" and this entry ...
user avatar
  • 21
1 vote
1 answer
14 views

Apache2 - How to serve static files on a specific folder?

I have 2 virtual hosts serving 2 different sites in my Ubuntu Server 20.04 both in port 80 and 443. I want to use the same server to serve some static files for download on a custom port, let's say ...
user avatar
0 votes
1 answer
25 views

Redirect all access on IP address to domain name need to click proceed to redirect

I have this config in my apache: <VirtualHost *:80> ServerName default <Location /> Redirect / https://domain.name </Location> </VirtualHost> <...
user avatar
1 vote
1 answer
28 views

How to adjust SELinux to allow not so large file downloads in Apache?

I have a centos 7 server running Apache 2.4 that will happily allow users to download files until they get to a certain size. I've noticed the problem with mp4 video files; I host both low and full ...
user avatar
  • 11
0 votes
0 answers
17 views

Memcached throws errors when using it as session handler

We are trying to use Memcached (1.5.22) as a session handler on a server with Apache + PHP 7.4, however, we have observed random errors with the message below: session_start(): Failed to read session ...
user avatar
  • 217
0 votes
0 answers
12 views

Allow only specific ports on Apache non-SSL requests and redirect

I am serving 3 NodeJS websites on Apache. The VirtualHosts of these websites are as follows: website1 <VirtualHost *:80> DocumentRoot "/var/www/html/[website1]" ServerName &...
user avatar
0 votes
2 answers
33 views

Is it possible to redirect a DNS to a different server in Apache?

Let's say a DNS named system.example.com is redirected to my server IP where I have Apache installed in it. Let's also say the domain example.com was bought in GoDaddy and I have no admin control over ...
user avatar
  • 101
0 votes
0 answers
20 views

Load balancing apache 2.4 ProxyPass configuration meaning

I'm studying apache 2.4 and I've found this configuration as example. What I don't understand is the definition of ProxyPass, they have defined "balancer://cluster/example1/api" but in the ...
user avatar
  • 1
0 votes
2 answers
24 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 "/...
user avatar
0 votes
1 answer
18 views

Request exceeded the limit of 10internal redirects on cPanel Server

I just created a subdomain called virtual from cPanel and its return 500 error. When I check the error_log I see below error: AH00124: Request exceeded the limit of 10internal redirects due to ...
user avatar
0 votes
0 answers
382 views

proxy_fcgi:error: The timeout specified has expired: Error dispatching request to : (polling)

my web server reaches the state of being unreachable every 1-2 days until I completely restart the server. The server is Debian Bullseye with the newest Apache + PHP 7.4. I'm using FPM, because I want ...
user avatar
0 votes
0 answers
27 views

Systemctl reports service failed after user manually restarted Apache. Can systemd and reality be synched without restarting processes?

I have an Apache instance that starts with a systemd unit. A user manually stopped and restarted the instance. Now systemctl reports the service as "failed". Other than stopping and ...
user avatar
  • 21
0 votes
1 answer
20 views

Apache <RequireAny> only when HTTPS

I'd like to use Basic Auth only when HTTPS is used. Having a .htaccess like this the user must enter password twice RewriteEngine On RewriteOptions Inherit # Rewrite to HTTPS (except for let's ...
user avatar
0 votes
0 answers
7 views

.htaccess allow specific extension via webdav

I have an apache server with webdav. I would like to allow only files with .zip extension to be uploaded with PUT or deleted with DELETE methods.
user avatar
0 votes
1 answer
12 views

Why does Apache2 not respect Last-Modified headers?

On a I have: ProxyPass /public ! in order to have content under this path served as static files directly from the file system. But it seems that the If-Modified-Since and If-None-Match ...
user avatar
0 votes
1 answer
26 views

Strange issue with forwarding auth headers from apache to nginx - Non empty header(se_custid/ein) not found in the request to proceed

On the setup describe below, Looks like apache is not able to forward required headers to nginx or nginx while forwarding initial request is not forwarding full URL but just relative path. The idea ...
user avatar
0 votes
0 answers
29 views

Is it possible to verify TLS if a server doesn't provide an issuer cert?

I'm trying to configure Apache httpd v2.4 for LDAP authentication to AD. LDAPS certificates are issued by the internal CA. For whatever reason (I'm not on the AD team), neither our prod or non-prod ...
user avatar
0 votes
0 answers
15 views

suEXEC is disabled: Invalid owner

I got apache server with ubuntu and direct admin, after move my website into this server, I wanted to set permission for public_html chown -R admin:admin / but accidentally pressed enter button and ...
user avatar
  • 111
1 vote
1 answer
23 views

Issue with Apache 2.4 and VirtualHosts

Can somebody tell me what I'm doing wrong here, I have 1 server running Apache 2.4 with 3 VirtualHosts in it, setup this way: <VirtualHost helpedsk.example.com:80> ServerAdmin nobody@example.com ...
user avatar
0 votes
0 answers
24 views

Apache2 LDAP Authentication - invalid Username leads to Error 500

I have a directory on my apache2 that only a certain group of my active directory should be able to access. This is in my apache2.conf: <Directory /var/www/html/mydirectory/> ...
user avatar
  • 1
0 votes
0 answers
14 views

Apache: Why do GET requests fail between domains that are sharing an IP?

As the subject says, I am having trouble making GET requests between domains that share an IP. This was working for quite some time but in the past couple of years it started happening. When the ...
user avatar
0 votes
0 answers
11 views

Apache VirtualDocumentRoot multiple subdirectories possible

I have a local Apache server for developing pages. Therefore, I have a root folder where all the different pages are in subfolders. Those folders then have another subfolders for the public content. ...
user avatar
0 votes
0 answers
5 views

controlling apache target using cookie

I have an apache web server with authentication based on mod_mellon mode (IDP OKTA). Authentication is done only on the Uri "/example". Everything is OK on authentication. Post-...
user avatar
  • 101
0 votes
1 answer
29 views

Apache VirtualHosts not working/redirecting? (Reverse proxy)

I am trying to set up Apache as a reverse proxy on a new Ubuntu 22.04 virtual machine. We have an existing Apache reverse proxy on Ubuntu 18.04 where everything is working as intended. This new ...
user avatar
0 votes
1 answer
15 views

RequireAll in Apache 2.4.41 (Ubuntu) not working

The directive below, to limit access to a site to a single IP address, has been working happily for months but I suspect a recent update to Apache may have changed the behavior. Instead of limiting ...
user avatar
0 votes
1 answer
19 views

Inventory of all vhosts across multiple webservers

I was tasked to create an inventory of all websites/webapps hosted on our infrastructure (couple thousand sites hosted on around 120 Linux VMs). Most of the sites are served by Apache (httpd 2.4) but ...
user avatar
0 votes
0 answers
7 views

How does a ProxyPass impact the server resources in Apache?

In our local office, we have a developement server, with kind of limited resources. When multiple developers are using this server, the load becomes really big on it, to the point it starts becoming ...
user avatar
0 votes
0 answers
18 views

Apache KeepAlive with Cloudflare

I use Cloudflare with WAF enabled. My Apache server that is called by Cloudflare has KeepAlive enabled. But from what I understand, KeepAlive will keep active connections for existing users, but since ...
user avatar
  • 217
0 votes
1 answer
23 views

Apache proxy to back end services

I need to create a conf file for apache web server (Linux) , that will act as proxy for multiple back end services om the same server. Each backend service is running as systemd service on separate ...
user avatar
0 votes
0 answers
46 views

Mounting a filesystem for all processes from within a service/webserver

I'm trying to create a local website that allows me to decrypt a file, mount its contained filesystem and start a systemd service without accessing the console. The started service then uses the files ...
user avatar
1 vote
2 answers
71 views

How to enable http/2 from a Centos Package/yum?

I'm running the following version of Apache on Centos 7: httpd.x86_64 2.4.6-97.el7.centos.5 @updates httpd-tools.x86_64 2.4.6-97.el7.centos.5 ...
user avatar
  • 27
0 votes
0 answers
18 views

Apache Reverse Proxy BandWidth Mismatch

I have a fleet of Apache reverse proxy in AWS . I see Access logs of my reverse proxy is always under reporting bytes IN and bytes Out when compared to what is noticed in origin server logs as well as ...
user avatar
0 votes
0 answers
27 views

Wordpress error PCLZIP_ERR_MISSING_FILE (-4) when I'm trying to install, update a plugin, but the error is solved temporarily if I restart the server

Whenever I try to install or update a wordpress plugin, I get this error: PCLZIP_ERR_MISSING_FILE (-4) This is also happening if I edit a template from a layout manager or if I do anything that ...
user avatar
1 vote
1 answer
15 views

RewriteCond for APIKEY

I am trying to create a RewriteRule which looks at the incoming Header for an APIKey and if it contains a matching string then it will redirect to respective URL else, it should be inaccessible. I am ...
user avatar
1 vote
1 answer
20 views

Find the script an Apache process is running

I have Apache 2.4 configured as mpm_prefork on an Ubuntu server. It happens that via htop I have seen that there are processes that use a lot of CPU. How do I find out exactly what url/php script this ...
user avatar
  • 217
0 votes
0 answers
16 views

Finding root cause for TCP retransmissions

We have an product based on a 3rd party application, running on an apache server connected to a firebird (v2.5.3) database. Unfortunately, we got to a point were we are getting timeouts when users try ...
user avatar
  • 283
0 votes
0 answers
30 views

ProxyPass only works on localhost (127.0.0.1)

my httpd configuration is like this: ProxyRequests On SSLProxyEngine On ProxyPass /wss/ http://127.0.0.1:6789/ ProxyPass /wss2/ http://49.12.36.109:6789/ ProxyPass /wss3/ http://www.testingmcafeesites....
user avatar
0 votes
0 answers
40 views

Unable to access Wordpress Dashboard with nginx reverse proxy

I am facing a bit of an issue when setting up WordPress with Nginx as reverse proxy to Apache backend. All the pages are loading, but i get an error when i try to login to wp-admin dashboard. The ...
user avatar
0 votes
0 answers
30 views

Slow response time when server is idle, fast response time when server is loaded?

I'm running a 40 thread / 125GB RAM server. The server is based on CentOS 7. I have noticed that the server response time is higher when the server is idle: You can see on the screenshot here that ...
user avatar

1
2 3 4 5
113