Questions tagged [apache-httpd]
Use this tag for questions related to the Apache HTTP server (any version, but make sure to provide Apache version numbers in the question unless not relevant). Non-apache web server-related questions should use the tag: webserver.
1,794 questions
0
votes
0
answers
109
views
How can I upgrade Apache 2.4.37 installed on Red Hat Enterprise Linux release 8.10 (Ootpa)?
I have an Apache proxy 2.4.37 installed on Red Hat Enterprise Linux release 8.10 (Ootpa).
I've found out that 2.4.37 version is the lastest version supported Red Hat Enterprise Linux release 8.10 (...
0
votes
1
answer
52
views
Public DNS Record local override using BIND9 CNAME
I have cPanel & WHM v130.0.14 STANDARD running in an EC2 instance. Trying to setup a reverse proxy with Apache2 by setting a CNAME some.example.com (not the real one) to forward the request to api....
1
vote
0
answers
53
views
AH01477: lua: Failed to obtain lua interpreter for entry function
I upgraded my web server from Ubuntu 22.04 to 24.04. During that process, it uninstalled my Apache web server. No big problem, I simply reinstalled it. However, now I can not use my Lua hook, leading ...
4
votes
1
answer
573
views
Apache HTTP Server cannot access home directory
I have few different sites in the /home directory. It worked before the update, but now the Apache HTTP Server cannot access them. I get the error below:
Permission denied: [client 127.0.0.1:58170] ...
0
votes
2
answers
159
views
Setting up Apache with Certbot/Let’s Encrypt but keep it offline until fully configured
I am setting up an Apache web server and running into a chicken-and-egg problem: I don’t want to expose the system to the Internet until it is fully configured (which includes certain security ...
0
votes
1
answer
144
views
Apache error "AH00016: Configuration Failed" after Debian 9 (stretch) to 10 (buster) upgrade
I upgrade Debian Linux 9 (stretch) to 10 (buster).
Now I get Apache error
AH00016: Configuration Failed
in Apache error.log.
The Apache service is not starting because of this error. The Apache SSL ...
1
vote
0
answers
59
views
Apache force transfer-encoding chunked after update to version 2.4.62
I'm running Apache with PHP-FPM on a RHEL 9 server. After updating Apache from version 2.4.57 to 2.4.62, all HTTP responses now include the Transfer-Encoding: chunked header, even when the PHP script ...
0
votes
0
answers
51
views
Apache2 PHP error_log() doesn't work when called in some PHP code
On my Linux Ubuntu system I run apache2 web server in the context of a PHP based web application. phpinfo() reports the following
error_log /opt/unetlab/data/Logs/php_errors.txt
I.e. error_log() is ...
0
votes
2
answers
120
views
Troj/PHPShel-CE and PHP/Agent-BJNA trojan
I'm currently dealing with a real threat: the trojans Troj/PHPShel-CE and PHP/Agent-BJNA showed up on my system. I've decided to move to another provider – the first server IP was already blacklisted, ...
3
votes
5
answers
453
views
How to replace apache directory config with sed?
I'm trying to replace a Directory option from apache configuration with sed replace command, but I cannot understand why it doesn't work; it changes nothing. What I'm missing?
This is the config ...
1
vote
1
answer
60
views
AddType not respected by browser
UPDATE
learning that application/javascript has been deprecated, this has now been updated to read: text/javascript. Issue persists.
I have verified that this is not an actual 404. a file of that ...
0
votes
0
answers
35
views
Apache: rewrite URI path to (canonical) mixed case version and load actual content via an Alias?
We need to do some URI mangling for some web content that (for historical reasons) has been promoted using mixed case URIs.
The address is www.domain.invalid/ACRONYM/pROJECT (with various pages ...
0
votes
1
answer
75
views
Apache: How do I redirect all userdir user web spaces to a different server?
We want to move our user web spaces (eg, www.domain.invalid/~usersite) to a different server (webhomes.domain.invalid/~usersite), but we want to ensure that existing incoming links and bookmarks get ...
0
votes
0
answers
61
views
How to trace recvfrom and sendto syscall each time apache2/httpd handle incoming http request?
So, I decided to start learn about system call with strace and want to observe network-related system call on apache2 processes, here's how I attach it:
pidof -s apache2
pstree -sTp <pid-from-pidof&...
1
vote
0
answers
106
views
postinst method to stop apache from listening on port 80
My work has a number of packaged internal tools that Depends: apache2. None use port 80. They all install:
Depends: apache2
Deploy a site (e.g. /var/www/foo/index.html)
Deploy a site configuration (...
1
vote
0
answers
189
views
Error logs filling up with Client AH02027/AH2026: Failed to release SSL session cache lock
My error_log is filling up with tons of entries like:
www.mine.com [Sun Dec 29 09:29:59 2024] [warn] [pid 903933] ssl_engine_mutex.c(105): (22)Invalid argument: [client AH02027: Failed to release SSL ...
0
votes
0
answers
190
views
Apache 2.4 keeps writing in old log file despite logrotate restart
I am using logrotate on RHEL 9 to rotate access logs of an Apache 2.4 (actually IBM HTTP Server) running as root.
The config I use is a series of the following for each access.log file:
<HTTPServer ...
1
vote
1
answer
59
views
Fedora 40 - Apache Perl CGI - Open for writing fails
Last week, I upgraded my Linux file server from Fedora 39 to Fedora 40, and several CGI applications written in Perl stopped working. I first noticed it when Foswiki could not show any pages, because ...
0
votes
1
answer
69
views
Apache ServerName with protocol
I have this custom.conf for a Apache Docker container
ServerName https://staging.smartreparatur.at
# Enable Gzip compression (Deflate)
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE ...
1
vote
1
answer
360
views
How to disable TLSv1.2 in my CENTOS based system
I want to disable TLSv1.2 in my centOS based RHEL system. I don't have a lot of knowledge of server management or security protocols, but the VAPT report says that we need to close TLSv1.2.
i have two ...
1
vote
0
answers
24
views
Debian - help with debugging / unstability issue
i am running debian on google vmare
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)&...
0
votes
0
answers
47
views
My server is DOSing itself
I seem to have some kind of self-inflicted DOS attack going on. I have some self-written blog software that I have hosted on a Digital Ocean droplet running Ubuntu 20. Everything worked fine for a ...
0
votes
1
answer
91
views
Why is apache ignoring my certbot cert and sending the domain request to a different cert?
I believe the two issues I'm having are related, but don't know where to begin. The first issue is that when a specific domain that resolves to my server is requested, its conf file in sites-enabled ...
0
votes
1
answer
134
views
Why httpd can read files with tag "httpd_sys_content_t" in SELinux?
I used the below command to check related policy rules, and only find the following 2 related rules:
[root@system1 home]# sesearch -A -s httpd_t -t httpd_sys_content_t -ds -dt
allow httpd_t ...
0
votes
1
answer
389
views
Systemd: creating a service unit to run httpd for unprivileged user
I have an unusual scenario where I want an apache service to be run as an unprivileged user, this is listening on a non-root port (8000+). I have it working, but I have some issues with the custom ...
0
votes
1
answer
94
views
Can Apache 2.4 run setuid root CGI binaries?
Note that I'm not asking about suEXEC, because the binary must be setuid root, and suEXEC doesn't allow root to execute CGI programs.
I need to carry out a one-time configuration during system ...
0
votes
2
answers
99
views
Reverse proxy with forward target
I have configured a reverse proxy in Apache2.
It gets requests by HTTPS - unwraps the HTTPS and then forwards to local HTTP-processes for /web and /rest.
<VirtualHost *:4443>
ProxyPass /web ...
2
votes
2
answers
74
views
Why is the group permissions rwx for folder but read for newly created files within it?
On Rocky 8 (Redhat), I have a site running under Apache (httpd). I have the permissions set as follows including setguid so files created within the uploads folder inherit the group:
[root@myserver ~]#...
0
votes
2
answers
59
views
Webserver to forward and decrypts HTTPS to HTTP
Is it possible with Apache or Nginx (or others) to have the webserver configured for HTTPS/443 and translationg every request to simple HTTP and forwarding it to another process (just understanding ...
0
votes
2
answers
76
views
Does anyone know what this Apache HTTPD rule is?
I was going through the rewrite rules and saw this:
RewriteRule ^(.*)/$ $1 [R=permanant]
I checked Apache's RewriteRule Flags list,
but cannot find any info there.
Is it an alias to 301?
1
vote
1
answer
133
views
Why is my web server serving HTTPS content on port 80?
Apache webserver on Rocky Linux 9, with SSL certs obtained from LetsEncrypt. This is the config of a specific virtual host "myvhost", but the problem arises for all vhosts on my server:
/etc/...
0
votes
0
answers
126
views
Follow Symbolic Link To Portable Thumbdrive In Apache
There are quite a few symbolic link questions on stack exchange but couldn't quite find something similar. If I missed please point it out.
So I have Apache2 installed on a 22.04 minimal Xubuntu PC. ...
0
votes
0
answers
98
views
Host Tor Site with Apache on FreeBSD
How can I host a Tor site with Apache on FreeBSD 13.3-RELEASE-p1? Apache is serving multiple sites from this server, so each one has its own entry in /usr/local/etc/apache24/extra/httpd-vhosts.conf
...
1
vote
2
answers
526
views
Not working `<Location/>` tag in Apache Virtual host
I am trying to create Apache virtualhost that is closed for all IP addresses with exception of one IP address and two URLs that should be publicly accessible.
<IfModule mod_ssl.c>
<...
0
votes
0
answers
368
views
Redirecting incoming HTTPS traffic from one port to another without the SSL key
Is it possible to configure httpd to redirect HTTPS traffic from one host:port to another without decrypting it?
I've got HTTPS traffic coming in at port 443. Depending on the incoming SNI I'd like ...
0
votes
1
answer
408
views
AH00141: Could not initialize random number generator
I tried to upgrade my debian system from buster to bullseye and messed up everything. I cant start apache2 and proftpd. When I do apachectl configtest I get the following error message:
(38)Function ...
0
votes
1
answer
5k
views
"Error in network definition: expected mapping (check indentation)" Syntax error in Netplan, I am trying to set up a static IP for my LAMP stack
Below are the configs for the yaml: file /etc/netplan/{filename}.yaml
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: false
dhcp6: false
addresses:
[10.0....
0
votes
1
answer
201
views
mod_deflate Logging on Apache/2.4.62 (Debian) does not work
Basics
I am running the Apache/2.4.62 on my Raspberry Pi 4B (ARM64/AArch64) with the Debian GNU/Linux 12 (bookworm).
Some HW/OS info:
# neofetch
_,met$$$$$gg. root@rpi4
,g$$$$$$$$...
0
votes
1
answer
181
views
Why did Red Hat relocate Apache to /usr/sbin
I run Apache http servers on Red Hat and Oracle Linux machines. The account requires that only packages from the Red Hat or Oracle repositories be used. That’s fine , they work and are reasonably ...
0
votes
0
answers
405
views
Building httpd can't find Openssl
I am attempting to rebuild Apache from source and am encountering an issue I have not faced before.
I have built Apache version 2.4.57 from source many times in the past and have had no issues during ...
0
votes
1
answer
46
views
rpm command doesn't show the package config file
rpm -qc httpd doesn't show all of the httpd config files.My OS is rocky 9.3.Anybody has suggestion?
[root@rocky9 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded ...
0
votes
0
answers
72
views
Modsecurity port issue
background: For my uni project I would like to locally host 3 virtual machines (1 attacker and 2 different WAF) to simulate the effectiveness of certain web application firewalls under malicious ...
0
votes
1
answer
120
views
Switch PHP versions in the console, Ubuntu
Trying to switch PHP versions at the shell in Ubuntu:
I'd like to switch from version 8.1 to 8.3. I complete the steps above and restart apache but my server remains using version 8.1?
Am I missing ...
0
votes
1
answer
184
views
Install apache, php and mysql on Ubuntu 22.04 toolbox
I would like to install apache, php and mysql on Ubuntu 22.04 toolbox which is running in a Fedora 39 desktop VM.
I am following the steps instructions provided in this link, but is seems to have some ...
0
votes
1
answer
1k
views
Apache 2.4: Restrict access to reverse proxy by IP range, and redirect requests from all other hosts
We have a front-end proxy server that serves pages from a back-end website (both running Apache 2.4):
# Apache config snippet from frontend server
SSLProxyEngine on
ProxyPass "/blah" "...
1
vote
0
answers
366
views
503 Service Unavailable after 60 seconds Apache Symfony (in certain features only)
I currently face an issue in a Symfony 3.4 application, in one of its features which loads history of some data (a lot of data actually which dates from 2017).
When trying to access the history ...
0
votes
2
answers
102
views
Is it possible to get a higher memory buff/cache usage after writing a lot of data to the disk?
On an Apache server of my own, logging requests to files has been enabled using a custom Apache module.
The log files can reach several GB at the end of the day.
Using Nagios I have noticed memory ...
0
votes
0
answers
103
views
Apache server crash by high load
My apache provides a nextcloud which is used by round about 1000 users. Once up to twice a week, the apache server crashes with the following log entry
[Mon Feb 12 09:20:09.909665 2024] [mpm_prefork:...
0
votes
0
answers
47
views
local RHEL 8 apache webserver not available from different subnet
I have setup a small apache webserver on a RHEL 8 VM that is accessible to machines on that particular subnet (10.x.x.x), but not on another subnet (172.x.x.x). This webserver has no internet access.
...
0
votes
1
answer
95
views
Apache2 is not starting in Pop OS
I'm trying to install xampp, and even though the MySQL is working, I can't get Apache started. I have tried many solutions. Below is the output I get when I run sudo systemctl status apache2
I have ...