Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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)

0
votes
1answer
69 views

Apache 2.4 [proxy_http:error] [proxy:error]

I have enabled Apache proxy and http_proxy modules in order to reverse proxy some requests coming on port 80, only for a virtualhost, to localhost:3000 (where nuxt with node is running). The proxy ...
0
votes
1answer
18 views

Apache 2.4 vhost configuration - How to “hide” parts of the url for CMS and browser

Apache 2.4.38 on Windows We are just about to start using a new content management system, Enonic, hosted in the cloud. I am now trying to configure an internal alias for the test instance to point ...
-1
votes
0answers
21 views

Apache randomly freezes for 5-10 minutes, then fixes itself

I'm running a map tile server with Apache 2.4.18 (Ubuntu). The server gets about 10 requests per second. The server works fine most of the day, however I would get these random server "freezes" (...
2
votes
1answer
74 views

Failed to start Apache Server after configuring Client Authentication

CentOS 7 | Apache 2.4.6 I have built a private Certificate Authority (CA) and two certificates (one for the server and one for a client). Then, I configured the Apache to use the certificate X.509 ...
0
votes
0answers
15 views

Invoice Ninja Installation Possible Permissions Error?

I recently installed a new instance of Invoice Ninja on a CentOS 7 VM, I followed the documentation exactly, which outlines that I should follow this guide, which I did, however, I am presented with ...
0
votes
0answers
11 views

How does explicitly defining proxy workers relate to MaxRequestWorkers in Apache?

I have the exact setup and question which was asked and answered here: Apache mod_proxy_fcgi: One proxy worker per vhost? However, I do not fully understand the answer, which suggests that each ...
0
votes
1answer
32 views

Apache reverse proxy to localhost doesn't work

I want to use the open source ELK stack. Kibana has no security at all in the free version. My Idea is, that I put Kibana behind an Apache reverse proxy using Apache's basic authentication, but ...
2
votes
0answers
29 views

Shared hosting: Apache RewriteRule [P] flag security concern

I want to setup PHP-FPM with Apache in a shared hosting environment. The recommended way is to use mod_proxy_fcgi. Each customer has his own FPM pool, running PHP processes under his own system user. ...
0
votes
0answers
29 views

Why is Apache ignoring my proxy timeout?

Consider the following Apache 2.4.6-89.el7.centos configuration snippet for proxying to PHP as inspired by the Wiki: <VirtualHost *:443> ServerName example.com DocumentRoot /var/www ...
1
vote
1answer
34 views

Apache Redirect without include document root in rewrite rule

I have this working rule: RewriteRule ^(.*)/amp/$ https://example.com/$1?amp=1 [QSA,R=301,NC,NE,L] For redirecting https://example.com/register/amp/ to https://example.com/register?amp=1. And it is ...
1
vote
0answers
11 views

Set Apache2 to deny SSL connection to vhost without cert

Currently when a host is pointed to it that doesn't have a vhost entry, Apache will try to serve a certificate for the wrong host (which happens to be the first alphabetical). This is in spite of the ...
2
votes
1answer
32 views

htaccess redirect / (root) only and mask URL

I have a web server as a part of a company network (Apache). Our main page is only a landing page and I have an employee hub as a subfolder example.com/hub. I would like to keep /hub website on the ...
0
votes
0answers
16 views

Best practice for <Include> file placement?

I'm migrating an apache configuration from a Red Hat machine to a Debian machine, and the source configuration uses directives in its site configurations. Debian clearly has opinions about how ...
0
votes
0answers
11 views

Apache userdir for guest user with home folder in /tmp

I need to setup Apache userdir for a guest user in /tmp/guest-jpQ6cE/public_html. I've used these commands to set the correct permissions: $ chmod o+x ~ $ chmod o+x ~/public_html $ chmod -R o+r ~/...
1
vote
0answers
97 views

What is causing my php-fpm child workers to hang?

A low-traffic website on a web server I manage is periodically down with a 503 error until php-fpm is restarted. The setup is: DigitalOcean droplet CentOS 7.6 Apache 2.4 (Event) PHP 5.6.40 (FPM) (...
0
votes
1answer
54 views

ModSecurity CRS 3 - Disable SQLi Rule For URI Pattern

I am trying to disable rule 942100 (an SQLi rule) when certain values are present in the URI, but apache won't start so something is wrong. My attempt (in REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf):...
0
votes
0answers
22 views

Apache: bypass global CSP configuration with .htaccess

I recently implemented some strong Content Security Policies on my Apache server (v.2.4.25). Works like a charm. Here is what I have in the apache.conf <IfModule mod_headers.c> Header set ...
1
vote
1answer
22 views

Lock access to error_log from url

I have a website on WordPress. Versions: WordPress 3.3.1 PHP 7.2.13 Apache 2.4.37 My problem is that, error_log file is exposed to be viewed from url. For example: www.example.com/wp-content/...
1
vote
2answers
889 views

Authorization based on custom Header (Apache)

I have a service running behind a Apache Reverse-Proxy that uses the custom headers "username" and "role" to identify users and their role. I want Apache HTTPD to restrict access to to people whose ...
0
votes
0answers
536 views

Apache RewriteMap DB to match against list on RewriteCond

how to check url exist in some external file . Just checking given request URI is in the list of vanity urls. Vanity url's file present at /mnt/var/www/html/vanity_urls.txt RewriteMap vanityurls ...
0
votes
2answers
64 views

How can I use Apache as a reverse proxy for https?

My company uses a CMS system hosted in the cloud. We want to create internally DNS-aliases to make it easier for developers to remember. Reading the documentation for mod_proxy_connect I do think it ...
1
vote
1answer
26 views

Set an attribute as MellonUser on mod_mellon

I'm failing to setup MelonUser on my Apache configuration. The NAME_ID my IdP provides in really a session ID that changes every time, and it's the only data available in the Subject of the response. ...
1
vote
0answers
49 views

TLS handshake times out for a few users only

A few of my clients are unable to visit any of my HTTPS-enabled websites. The browser spends a lot of time negotiating the TLS handshake. Ultimately, a timeout occurs. The server: Apache2 on Ubuntu, ...
0
votes
1answer
40 views

Load Average 140% on Apache 2.4

I have the following problem, I have 120 wordpress servers on the server, on average Load Average was 3-4%, suddenly it increased to 140% and it keeps sticking all the time. I thought it was MySQL ...
-2
votes
0answers
24 views

Apache Proxy - URL redirection is not working

I have configured URL re-direction in Apache Server. But it is not working as expected. 2 services running in the server, one on port 80 and another on port 9999. Can you please help me to resolve ...
1
vote
1answer
47 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 ...
0
votes
0answers
20 views

Forward/proxy POST request but always serve static file

What I would like to do is forward/proxy/fcgi a request (POST) to an external process/server but have the response come directly from Apache serving a static file. The response of the external process ...
0
votes
0answers
25 views

Logging - Apache Access log Unknown Characters Ubuntu

Hi I would like why access.log on apache looks like this? Could someone help me? at the bottom part it appears appears to be good. ^_?^H^@^[D?\^@^Ciym?\x??^K~?_?O?HeR"^33 ^[>>?RwIe^R??^...
0
votes
0answers
31 views

apache .conf file 404 error and the wrong file loaded

I'm running a few personal websites off a ubuntu 16.04 VPS server and I'm trying to modify each site so that no ".html" will appear as the suffix to the website and that "www." will not appear as a ...
0
votes
0answers
25 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 ...
0
votes
0answers
26 views

Target a URL path with htaccess and Rewrite to display image

Let's start by exposing the case. I have a web created in drupal that I have to modify. With an absurd amount of content, then, I need to change a URL of the src of the images by another URL and I ...
1
vote
1answer
110 views

Possible reverse proxy issue with Apache from HTTPS (external) to HTTP (internal)

I have a server running Ubuntu 18.04 with .NET Core 2.1, Kestrel and Apache2. I am using LetsEncrypt for SSL and the domain was set up with SSL. Prior to installing .NET Core and hosting the project ...
0
votes
0answers
19 views

nginx entire site case insensitive without redirect

I have several WordPress sites that I've inherited managing. On this one particular site, running nginx, (and CloudFlare if that matters) you can use any case on pages after the URL. For example, ...
0
votes
0answers
22 views

2 directories listing with different credentials in 1 virtual host conf?

Is it possible to list 2 different directories, each with their own different username/password in the same documentroot in the same virtual host conf? Ultimate goal is to browse to: https://...
1
vote
1answer
54 views

Apache 2.4 mutual authentication - AH01797: client denied by server configuration

So I'm trying to set up Apache 2.4 mutual authentication on a virtual host configuration. Given the below environment, what am I missing? Server is: Slackware 14.2 x64, Apache 2.4.39, OpenSSL 1.0.2r ...
0
votes
0answers
26 views

how to use htaccess rules with nginx reverse proxy?

I am using nginx as a reverse proxy for apache . Now I'm in a situation where I'm passing PHP requests to apache to handle and other static files are being handled by nginx itself . In this situation ,...
0
votes
0answers
19 views

Apache2 rendering PHP only partially

I set up a lamp server on Ubuntu 16.04 and now I'm having this strange issue where PHP renders only partially. I also checked and the page works normally if use nginx or lighttpd. Also, I created a ...
0
votes
0answers
30 views

Loop Through Apache HTTPD Environment Variables and Set Header

I'm currently requesting client certificates from people that hit my httpd servers set up as reverse proxies. One of the things I pull from the certificate is their email: RequestHeader set ...
0
votes
1answer
67 views

create letsencrypt exception for apache reverse proxy along with ip restrictions

Under normal circumstances, setting up an apache reverse proxy with a letsencrypt exception for /.well-known is easily done with ProxyPass /.well-known ! It seems to become much more difficult (...
0
votes
1answer
38 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 ...
0
votes
0answers
17 views

Directorylisting are only disabled if i remove the index.php file from wordpress

I disabled directory listing for my apache setup by removing the Indexes from my /var/www/html directory in httpd.conf, and that works.. as long as i also remove the index.php file from these ...
0
votes
1answer
29 views

403 Forbidden on JS/CSS files after switching Apache to use Event MPM and php-fpm

(I see there are several existing questions about 403 errors and one or two of the rest of the parts of my configuration, but nothing that seems to match up to my exact situation that I've seen so far,...
0
votes
0answers
19 views

Django deployment ISPConfig - 403 Forbidden

there. Having some trouble with deploying a django project using the ISPConfig control panel. I'm able to copy the files and everything over okay, and i can reach the django site with the "domain.tld:...
1
vote
0answers
34 views

Apache 2.4.29: cgi scripts load as text, even though cgi is enabled and .conf set up

I spent a few days searching for answers on serverfault and elsewhere, and tried them all to no avail. I'm trying to serve dynamic content using perl cgi scripts (Apache 2.4.29 on Ubuntu 18.04.2). The ...
1
vote
2answers
78 views

MySQL and Apache are running out of memory

Can you help me how can I figure which SQL query makes my MySQL running out of memory? So, running dmesg command in console, I get following result: [root@dmzemf httpd]# dmesg -T | grep 'Out of ...
0
votes
0answers
12 views

How to configure Apache to require basic auth AND respect directory and file restrictions?

Consider this configuration excerpt from an Apache 2.4.6 (CentOS) setup: <FilesMatch "^\.(.*)$"> Require all denied </FilesMatch> <VirtualHost *:443> ServerName example.com ...
0
votes
0answers
13 views

Apache2 - Reverse Proxy, failed login to Ajenti

I try to set up a reverse proxy following the guides online. I try to forward the Ajenti and that works. But i can't log in. Ajenti tells me i use the wrong user and/or password. If i try to connect ...
0
votes
1answer
40 views

Kerberos authentication not working with Apache and PHP-FPM

I have configured kerberos authentication in apache with a php-fpm drupal backend. Checking the apache logs it looks fine at first glance but somehow it seems that the authenticated user gets lost ...
0
votes
2answers
20 views

Limit Apache's child process count in Dockerized environment

We have a Dockerized environment for our clients so that each customer gets his own container to host his website. Each container usually runs on the php:7 image so we're speaking about Apache 2.4 ...
0
votes
1answer
38 views

Enabling xml-rpc on Digital Ocean marketplace Wordpress app

I've installed the Wordpress app from the Digital Ocean marketplace and want to enable xml-rpc to use with the Wordpress app (through JetPack), which requires the xml-rpc endpoint. But I'm having ...