Skip to main content

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
1 answer
45 views

Re-enabling static HTML in a PHP tree

We have an (almost) entirely PHP tree where the top level .htaccess does this: RemoveHandler .html AddType application/x-httpd-php .html Then in a single subdirectory, we just want static pages. I ...
thomasafine's user avatar
1 vote
0 answers
74 views

apache SSL error after boot, but ok after systemctl restart

This is a weird one, I have a custom compiled apache 2.4 on an old CentOS 8 box, and I'm seeing odd behaviour at boot time. I have a systemd service file : [Unit] Description=Apache 2.4 for Moodle ...
Bleve's user avatar
  • 31
0 votes
0 answers
27 views

Forwarding port 80 to any other port on other machine/IP

Long story short - I have stubborn ISP that blocks ports 80 and 443 on NAT port forwarding. I have private public IP and my server is exposed to the Internet - for example I can setup Minecraft server ...
lemek's user avatar
  • 101
0 votes
0 answers
13 views

Sessions of apache webserver expiring - forcing logout of users (non php)

I have got some webservers running behind a proxy-server. These webservers are running an application, but it seems user are getting a "session expired" error. This error forces a logout and ...
Maarten Heymans's user avatar
1 vote
1 answer
107 views

How to stop Apache to return a wrong line before the HTML header breaking it

I use a simple site enabled to publish files in Apache: File: /etc/apache2/sites-enabled/contents.conf <Directory "/mnt/data/contents/"> Options FollowSymLinks ...
Matthias Ronge's user avatar
0 votes
0 answers
16 views

Apache AD authentication with same username in multiple domains

We're having (because reasons) multiple AD domains, all having their own pair of domain controllers. Users can have accounts in any single domain or combination of domains. In the latter, the username ...
dehulst's user avatar
0 votes
0 answers
25 views

Apache ModSecurity, OWASP with WordPress and Roundcube plugin – how to divide this up between the virtual hosts?

Apache/2.4.62 (Debian) ModSecurity 2.9.7-1+b1 OWASP coreruleset-4.6.0 I have secured my Apache web server with ModSecurity and the OWASP ruleset. This works very well so far and a test SQL injection ...
Jens's user avatar
  • 1
0 votes
0 answers
20 views

disable subdomain in proxy pass redirects

My main domain is https://example.com I decided to create blog section in another subdomain and due security issues in another server. with ProxyPass in Apache VirtualHost configuration I demonstrated ...
high developer's user avatar
0 votes
1 answer
36 views

Incoming web traffic go to other apache vhosts

I trying to set up a local webserver on a Raspberry. I get the LAMP installation up and running, the hosts and vhosts are ok when I open pages directly on the server, but all incoming traffic from ...
François Pellissier's user avatar
1 vote
0 answers
61 views

Strange interaction between UserDir and RedirectMatch in Apache (redirecting multiple slashes)

I have an Apache server (version 2.4.62-1~deb12u2 from Debian 12 “Bookworm”, currently the stable version of Debian) serving a site http://www.example.tld/ with UserDir activated, so http://www....
Gro-Tsen's user avatar
  • 111
1 vote
3 answers
141 views

Disable 2 simple websites using old Apache version 2.4.37 [duplicate]

I have RedHat 8 server with Apache/2.4.37 running on it and we're hosting 4 vhost simple websites. I'd like to disable 2 of those 4 website while keep the other websites running. I tried many things ...
Katkota's user avatar
  • 11
0 votes
0 answers
22 views

Apache: Serving "core" files between different domains AND unique files to each domain

Server: Ubuntu/Apache Scenario I have a system that is used by different domains I would like the "core" files to be used for all domains (to make maintenance easier) However, each ...
Marco M's user avatar
0 votes
0 answers
21 views

openlitespeed server configuration for wordpress has low resource usage even with apache benchmarking tool

I have an openlitespeed server configuration for wordpress site. I am trying to simulate many user behaviour with ab but whatever I do it doesnt go over 1.5gigs of ram or %45 cpu utilization. What ...
Burak ER's user avatar
0 votes
1 answer
35 views

Django + Apache2 + React doesn't work

it consists Apache2 linked with Django as backend(WSGI), and React as frontend. But it returns only '403 Forbidden' with symbol AH01630 in the error log. Also Apache2 version is 2.4.58. A part of ...
pico's user avatar
  • 1
0 votes
0 answers
24 views

Passbolt GPG Key Trust and Verification Issues on Ubuntu Server

I'm experiencing persistent issues with the GPG configuration on my Passbolt installation, specifically related to key trust and verification. I've attempted several troubleshooting steps, but certain ...
Enes Palit's user avatar
1 vote
1 answer
44 views

Publicly available website inside a private webapp via docker container

I've got a project that requires an approach I have never done before. I have an application which can only be access via username/password/mfa. In the application is a section to manage website (CMS) ...
user1020496's user avatar
0 votes
1 answer
24 views

is it possible to retain the dns name of the url from where we are redirecting to another url using rewrite rule in apache 2.4.51?

I am using a configuration something like below: Listen 443 <VirtualHost *:443> ServerName test.na.xyz.com I have the document root and the certs ,keys etc set in this virtual host. My ...
Sudeep BN's user avatar
0 votes
1 answer
47 views

Apache2 stops serving HTTP pages at random times during the day, but not HTTPS

I've been noticing my websites are going down pretty frequently at times for the last few weeks, only sometimes but after a while they would be back up and running. Until now, I attributed this ...
Codrut's user avatar
  • 111
0 votes
0 answers
38 views

Initial redirection from HTTP to HTTPS is to a different host, preventing HSTS

https://developer.mozilla.org/en-US/observatory/analyze?host=besch.ws The test notes that the site has a redirection issue: Initial redirection from HTTP to HTTPS is to a different host, preventing ...
kghbln's user avatar
  • 441
0 votes
1 answer
140 views

Kerberos authentication with GSSAPI on Windows 11 LTSC fails with [An unsupported mechanism was requested (Unknown error)]

We have a Windows 11 LTSC client that fails authentication with - Apache2 / Kerberos / GSSAPI. This configuration works with all of our clients, Windows 10, Windows 10 LTSC, Windows 11, but not ...
Thomas D.'s user avatar
0 votes
1 answer
53 views

Apache HTTPD — Require forward-dns with IPv6 subnets

To restrict access to many (+100) vhosts, I use the statement Require forward-dns authorized-ips.mydomain.tld. This allows me to easily manage adding and removing IP addresses via DNS in a simple and ...
Bil's user avatar
  • 141
0 votes
0 answers
14 views

VirtualHost ErrorLog directive is ignored

I have the following VirtualHost config: <VirtualHost *:80> ServerName website.com ServerAdmin [email protected] DocumentRoot /var/www/html/website/src/public <Directory /var/...
KillerHamsters's user avatar
0 votes
1 answer
86 views

Block partial IP address range (120 - 250 but not 119 or 251)

If I want to block all of the IP addresses for 192.0.2.1 through 192.0.2.255 I can simply do the following: Deny from 192.0.2 ...by simply omitting the last/fourth octet. However what if I want to ...
John's user avatar
  • 138
0 votes
1 answer
40 views

Basic HTTP Auth and white listed IP in site config

I have a virtual host in Apache2 (2.4.52) and I would like to have something like this in the site config (/etc/apache2/sites-enabled): <Location /> # Only allow whitelisted IPs Include /...
Johan Mattsson's user avatar
0 votes
2 answers
166 views

httpd.service entered failed state

we are experiencing some weird issues with the httpd.service, it doesn't start Please let me know if you know by any chance how to resolve this issue Failed to start the Apache HTTP Server/ job for ...
Sergey Milovskiy's user avatar
0 votes
0 answers
81 views

Dockered Apache / httpd:latest does not start up

I am trying to run the containerized Apache httpd on a server Here is my docker-compose.yml file version: '3' services: httpd: container_name: httpd image: httpd:latest network_mode: ...
El Dude's user avatar
  • 101
0 votes
0 answers
14 views

Mercurial Hg Python openssl library won't connect to Apache v2 default SSL setup

I'm trying to run hg pull --insecure on a Mac OS X laptop against Mercurial's hgweb running on an Apache v2 webserver. I receive the command line error: abort: could not set ciphers: No cipher can be ...
ebyrob's user avatar
  • 101
0 votes
0 answers
33 views

Dynamic Configuration of ProxyErrorOverride in Apache Based on Response Headers

We have an Apache server configured as a reverse proxy for our backend application. Currently, the Apache server overrides error codes (4xx and 5xx) and displays a default error page when an error ...
Marouane Lakhal's user avatar
0 votes
0 answers
83 views

php value errors in Zabbix setup

I've installed Zabbix 7 on Debian Bookworm. PHP 8.2 Getting the following errors during config Minimum required size of PHP post is 16M (configuration option "post_max_size"). Minimum ...
Martin Moore's user avatar
2 votes
1 answer
194 views

Change Apache2 default tmp directory to avoid full drive

Is it possible to modify apache2 default configuration to use another tmp folder instead /tmp? Let's say /filestore/temp. Long story: I've some size restrictions on my /tmp drive and I would like to ...
Gonzalo Cao Cabeza de Vaca's user avatar
0 votes
1 answer
40 views

Replacing long polling with WebSockets

I have an apache instance running where 150 clients use long polling on some PHP scripts to receive updates about new files that have been uploaded. This of course creates 150 Apache threads. Now it ...
Daniel's user avatar
  • 836
0 votes
0 answers
33 views

PHP error log vanished (Windows Server 2019)

I have two Windows Server 2019 servers (in AWS) running Apache httpd 2.4.62, PHP 8.3.11 and SQL Server. One is Dev/Test, the other Production. I typically leave remote-desktop session open on both ...
Jeremy's user avatar
  • 1
0 votes
0 answers
41 views

.htaccess Rewrite Causes CGI 404

I'm trying to set up a site on a hosting service to share test pages with a client. The client uses a non-standard path for their pages and I have to include that path in the pages for a CGI script ...
John Korchok's user avatar
0 votes
0 answers
13 views

apache2.4, mod_jk, Jboss issue

at this time we have the following enviroment Front Server A: is running under apache 2.2, mod_jk 1.2.30 Backend server B : running under Jboss 5.1.0 Everything is runing fine We are trying to upgrade ...
user27673851's user avatar
0 votes
0 answers
46 views

Apache 2.4 reverse proxy provides stale content for Tomcat / Confluence backend

Environment: Apache 2.4 reverse proxy on Windows server 2019 in front of Tomcat 8.9.x / Confluence. (Please no advice to change Win, can't change this). Proxy as such works fine. Webpage delivery from ...
MarkHelms's user avatar
  • 181
0 votes
1 answer
63 views

How to asses the memory requirement for x number of users browsing y number of pages

Here is the scenario. I need to get a rough idea of memory consumption of our corporate web site. We are running on Apache. The site is built using WordPress. Is there a way to get the memory ...
Desper's user avatar
  • 1
0 votes
0 answers
60 views

Apache SSL crash after some time, doesn't serve the SSL cert

I'm currently experiencing a weird issue with Apache 2.4, after some time (like 1 day), my apache doesn't serve the SSL certificate that is installed in the virtualhost. I have to restart apache in ...
Monsquid's user avatar
0 votes
0 answers
34 views

.htaccess redirect everything to https or new vhost except letsencrypt?

RewriteEngine On RewriteCond %{REQUEST_URI} !/\.well\-known/?.* [OR] RewriteCond %{HTTP_HOST} ^(www.)kashtata\.com$ [OR] RewriteCond %{HTTP_HOST} ^(?:www\.)kashtata\.com$ [OR] RewriteCond %{HTTP_HOST} ...
ServerMan's user avatar
0 votes
1 answer
492 views

How can RHEL 9 install Apache 2.4.62 or above

I have installed RHEL 9.4, which is the latest version of RHEL available. The IT department found multiple vulnerabilities in the installed Apache software 2.4.57. From the official website, the ...
Raptor's user avatar
  • 1,043
0 votes
0 answers
99 views

Apache2.4, How to disable OCSP?

Am running Apache 2.4 on Windows, with Let's Encrypt certification. Now, in July this year, Let's Encrypt announced intention to remove OCSP Service. Am using mod_md and hppt-01 challenge for ...
TakFuji's user avatar
0 votes
0 answers
69 views

Forward username on apache reverse proxy with basic auth

I have a reverse proxy (packages) which forward request to another website (localhost) with a basic auth using a file. For debug purpose, I would need to get the username in the log of the localhost ...
Titou's user avatar
  • 51
0 votes
0 answers
108 views

Bitnami MEAN stack won't start after port change

UUPDATE 2: https://dbus.freedesktop.org/doc/dbus-tutorial.html#bus-names the only official document on the data packet/marshalling of dbus. It is very short of examples and never dumps an entire ...
ArrowInTree's user avatar
0 votes
1 answer
95 views

Bug: `Apache2` with `PHP-FPM` picks the wrong pool

I have configured PHP and Apache so that a separate PHP-FPM pool is created for each user in a multihost system. The web panel runs in its own pool with different rights. Administrations-WebPanel <...
Adrian Preuss's user avatar
0 votes
1 answer
44 views

Can't get Apache to redirect clients using a 308 instead of a 301

I have an Apache instance running on Ubuntu Server 22.04: % lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: ...
kos's user avatar
  • 101
0 votes
1 answer
55 views

Apache's Alias directive results in a Server error 500

I am running Linux Mint 21.3 Cinnamon, and installed XAMPP 7.4.33 because I want to test a web application using a particular version of PHP. XAMPP installs Apache of course, and the first thing I ...
osullic's user avatar
  • 133
0 votes
1 answer
37 views

htaccess is rewriting all subsequent urls to same page

My htaccess is correctly implementing for the the first file i write. But for subsequent files it is redirecting every other redirect to same page. The article rewrites are working fine but other ...
Yeshwant Bhatt's user avatar
0 votes
0 answers
56 views

How to enable allowEncodedSlashes in apache ubuntu server

I need to enable allowEncodedSlashes in my apache server but are unsure of where to put the rule. As mentioned in this forum, I placed them inside the VirtualHost in php56.conf(for port 80) and ssl....
Wryan Cartie's user avatar
0 votes
1 answer
103 views

PHP Fatel Error: Timezone database is corrupt

I have a install Apache/2.4.58 and php 7.4.33 I have chrooted the Apache with mod_env and ChrootDir /var/www in /etc/apache2/apache2.conf and far as I know is here the problem.
Manthan Gajjar's user avatar
0 votes
0 answers
367 views

Apache warnings and UnsafeAllow3F flag

We recently updated Apache and I am now seeing many warnings like this where Apache throws a 403 in response to encoded urls: AH: Unsafe URL with %3f URL rewritten without UnsafeAllow3F, referer: http:...
Eaten by a Grue's user avatar
1 vote
1 answer
130 views

htaccess in Windows apache root directory

I am on Windows Server, have installed xampp and "C:/xampp/htdocs/" is my root directory. Under that root directory I have multiple project lets say p1,p2,p3. Now for specific directory, I ...
utsav's user avatar
  • 127

1
2 3 4 5
123