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
29 views

How to serve two different websites on one Apache Webserver without using Virtual hosts? [duplicate]

We use Apache Webserver on Windows to serve one web app within our software. A browser embedded in our software accesses the site on localhost. The webserver and the web content are installed on every ...
DecentWig's user avatar
0 votes
0 answers
18 views

Proxy setup in Apache and hide users' IP address

I want to make a proxy where users will visit an address such as myproxy.com (with some url parameters like gameid=123) and the proxy will load a page of a web game such us games.com/?gameid=123. I ...
Otto's user avatar
  • 1
0 votes
1 answer
37 views

Fresh Apache (re-)install ignoring default vhost

I was trying a few thing for a custom "default" Apache vhost and nothing seemed to work, I always got the /var/www/html/index.html served instead of other contents or errors I wanted to ...
Yosko's user avatar
  • 167
0 votes
0 answers
15 views

apache2 seems stuck on fetching simple server-side-cached content

i've got a server up at https://nicer.app which recently became buggy in as much that it takes up to a minute for the background image to content to be shown. i wonder what if anything i did wrong ...
Rene Veerman's user avatar
2 votes
1 answer
104 views

CentOS 7 min with Apache not accessible externally

I have a CentOS 7 min installation on a virtual machine with the internal IP of 10.1.10.131 and I installed Apache 2.4.52 on it. I can access the landing page when I put 10.1.10.131 into the browser. ...
Hussein Sabbagh's user avatar
0 votes
0 answers
40 views

How to prevent Apache mod_authnz_ldap to authenticate on non-existent DirectoryIndex entries?

I have been investigating why mod_authnz_ldap/mod_auth_basic are emitting failed authentication messages even when user and password are correct. I realized that when the URL ends without the file ...
Tio Urso's user avatar
0 votes
1 answer
27 views

How to configure an Apache reverse proxy for GitLab with websocket?

I have a self-hosted GitLab instance behind an Apache reverse proxy. Since one of the last releases, real-time updates stopped working. One symptom I could detect was that some websocket calls (to ...
quazgar's user avatar
  • 471
-1 votes
2 answers
80 views

apache 2.4 how do I use mod_rewrite to redirect my old domain to my new domain without changing browser url

I am in the middle of moving an application from one server to another in our corporate network. The current production url is http://example1.mycompany.com. We have copied everything onto the new ...
draikes's user avatar
0 votes
0 answers
88 views

Enable HTTPS with letsencrypt on Amazon Linux 2 with Apache

Server: AWS Linux 2 (EC2 Instance) I'm attempting to renew a SSL certificate (with Let's Encrypt) for a webpage/application Trend Micro Deep Security. Unfortunately, I didn't setup the server so I'm ...
01Tech's user avatar
  • 1
0 votes
1 answer
23 views

Correct place for the port on an Apache Virtual Host

I'm confused as to the difference between putting the port in the VirtualHost vs the HostName directives. What is the difference between: <VirtualHost *:8123> ServerName www.example.com </...
kofifus's user avatar
  • 165
0 votes
0 answers
28 views

Using environment variables and a redirect loop to force-clear a 301 redirect

We mistakenly used a 301 redirect on a very important page, and now that we want to actually use the page, many users' browsers have the 301 stuck in their cache. The problem is that the destination ...
Sean Kendle's user avatar
0 votes
1 answer
69 views

PHP_FPM extensions not loading in Apache

I'm building out a web server on Rocky Linux 9 with Apache and PHP 8.3. I need the pdo_dblib extension. From the command line via "php -m" and "php-fpm -m", I see that the ...
scott80109's user avatar
0 votes
1 answer
28 views

Cannot POST to NameVirtualHost

Using apache2ctl -t -D DUMP_VHOSTS shows VirtualHost configuration: *:443 is a NameVirtualHost default server api.mysite.com (/etc/apache2/sites-enabled/mysite-ssl.conf:3) ...
forresttales's user avatar
0 votes
0 answers
14 views

Apache autoindex sub directories are smaller than the main directory when viewed on a cell phone

I am using Xubuntu with Apache/2.4.52 (Ubuntu) Server (no javascript, just html & css). Here is my site CSS file http://ss11.sytes.net/index.css Here is the website with the subdirectory issue: ...
user77899's user avatar
0 votes
1 answer
39 views

Apache2 restart does't implement PHP changes, server reboot does though

on my Ubuntu 20.04.6 LTS server with Apache/2.4.41 I needed to change post_max_size and upload_max_filesize for my new PHP 8.3.4 installation I added phpinfo(); in a file called phpinfo.php I got the ...
Curious User's user avatar
1 vote
0 answers
36 views

Nasty character encoding issue

I have been using a FOSS software written in perl (sql-ledger) for many many years. Currently self hosted on CentOS 7. For some reasons, I need to update OS to a higher version (preferably Rocky/Alma ...
sse450's user avatar
  • 11
0 votes
0 answers
22 views

Presenting a different view on WebDAV depending on user

How can I configure Apache to allow multiple users to connect to a WebDAV share using the same URL (https://server/webdav/), while ensuring that each user sees the directory as if they were the only ...
bot47's user avatar
  • 327
0 votes
1 answer
47 views

Apache config SetEnv variable only if not set

I have a fairly high traffic web server and would like to squeeze some micro optimization out of it. In Apache's config I have: SetEnvIfNoCase Request_URI "\.a?png$" dontlog SetEnvIfNoCase ...
MonkeyZeus's user avatar
0 votes
1 answer
30 views

apache redirect/rewrite http to https with many virtualhosts

I have an apache webserver that has about 150 VirtualHosts spread out over 9 IP addresses. I'd like to redirect or rewrite http connections to https. The solutions I've found have the rewrite/redirect ...
user1311554's user avatar
0 votes
0 answers
39 views

Can't make Apache connect to PHP-FPM: (13)Permission denied: AH00957: FCGI: attempt to connect to 127.0.0.1:9000

I'm trying to setup Apache with FastCGI work with PHP-FPM on AlmaLinux 9.3 and I'm stuck with this error. I can't find what I'm missing. This is the error: [Mon Mar 25 18:12:33.617487 2024] [proxy:...
El Barto's user avatar
  • 973
2 votes
0 answers
27 views

Apache deadlock when writing in file

Apache v2.4.56 on Solaris, with libapr 1.6.2. When starting, it spawns 5 httpd processes. Occasionally the server hangs and does not accept requests. It's even impossible to connect to port 80. I did ...
Marc's user avatar
  • 121
0 votes
0 answers
27 views

Cannot start apache from lampstack

I just installed bitnami-lampstack-7.4 on my linux box. I cannot start apache, I'm getting /opt/bitnami/apache/bin/httpd: error while loading shared libraries: libiconv.so.2: cannot open shared object ...
BioRod's user avatar
  • 303
0 votes
1 answer
111 views

Apache 2.4 Read from request header and set the same in response header

I am using Apache 2.4.6 I wanted to check if a custom header X-CUSTOM-HEADER is present in the request, if yes then set the same header and same value to the response. If the header is not present in ...
user1081692's user avatar
0 votes
0 answers
32 views

Apache Configuration

I am sure you may have encountered this issue. I have a server with jira, bitbucket and confluence configured on the same server. As the bitbucket is moved to linux serer i am wondering how can I ...
om joshi's user avatar
0 votes
1 answer
41 views

Multiple entries in apache access log

In the apache access log for bitnami moodle on GCP, there are multiple entries (added every second!!) as given below. This is leading to a very high egress traffic. I would appreciate any pointers to ...
Manish Datt's user avatar
1 vote
0 answers
50 views

NGINX Rate Limiting Configuration Leading to 404 Error for Specific Route in Plesk-Managed CakePHP App

I'm using Plesk 18 with NGINX as a proxy in front of Apache2 for a CakePHP application. I have set up rate limiting in my NGINX configuration (/etc/nginx/nginx.conf) with limit_req_zone $...
magic.77's user avatar
  • 111
0 votes
1 answer
39 views

Fedora 29 can't connect to httpd

I'm trying to spin up a dev instance on RackNerd and can't connect via http by IP or domain name. I'm getting ERR_CONNECTION_TIMED_OUT via browser rather than any specific errors. I've configured ...
Don Lipps's user avatar
0 votes
0 answers
20 views

OHS and ProxyPass and RewriteRule / RedirectMatch

i've setted up this virtualhost, <VirtualHost *:443> ServerName test.domain.org DocumentRoot "/u02/config/www/tst-12c" RewriteEngine on RewriteCond %{...
Red's user avatar
  • 1
0 votes
0 answers
76 views

Apache & PHP-FPM: AH01144: No protocol handler was valid for the URL /index.php (scheme 'unix')

This error occurs despite all the fixes that I Googled. Apache was loaded next modules: # /usr/local/apache/bin/apachectl -M | grep proxy [Thu Mar 14 22:37:35.825542 2024] [core:trace3] [pid 9087:tid ...
YpaHeL1's user avatar
  • 131
0 votes
0 answers
74 views

Optimize load balancer SSL termination on a Windows machine

I have an application on a 32-bit Apache server on a Windows machine from a 3rd party vendor. (Can't change that). The setup: Traffic is HTTPS, port 443. Apache web app service Activemq service ...
justadev's user avatar
  • 463
0 votes
0 answers
14 views

Apache basic authentication realm not working with fastcgi

I've 2 applications running on same Apache. using fastcgi using Apache basic authentication. I hope to make app 2 skip user login if user is authenticated to app1. Can see REMOTE_USER defined after ...
user3277706's user avatar
1 vote
0 answers
96 views

What causes "Partial results are valid but processing is incomplete" for mod_fcgi in Apache WITHOUT mod_reqtimeout

I am running Apache 2.4 to serve Nextcloud and I occasionally get the error [proxy_fcgi:error] cloud.my-domain.tld: (70008)Partial results are valid but processing is incomplete: AH01075: Error ...
user2690527's user avatar
0 votes
0 answers
80 views

How to block some bots in .htaccess but except access robots.txt?

I've blocked some bad bots using .htaccess. For example: SetEnvIfNoCase User-Agent "^bot1" bots SetEnvIfNoCase User-Agent "^bot2" bots SetEnvIfNoCase User-Agent "^bot3" ...
usr12's user avatar
  • 1
0 votes
1 answer
40 views

.htaccess to get the list of ip from a file or directories of file

I'm blocking certain spammers/bots from accessing my website via IP addresses, but I have around 3 directories (/var/www/directory1, /var/www/directory2, /var/www/directory3). Every time I want to ...
Patrick Teng's user avatar
1 vote
1 answer
28 views

Apache: Meaning, purpose and semantics of the URI after the pipe symbol within the SetHandler directive?

What is the meaning, purpose and semantics of the fcgi:// URI after the pipe symbol within the SetHandler directive? From my understanding of the docs, everything after the scheme part fcgi:// of the ...
user2690527's user avatar
1 vote
0 answers
24 views

Server forbids access to any URL ending in .php (even nonexistent ones) with "client denied by server configuration", but identical html files are OK

I'm trying to enable some php files on an Apache 2.4 machine that has no other php content. I'm finding that any php URL (even made-up URLs for nonexistent things) results in the error "client ...
Bryan Wright's user avatar
0 votes
0 answers
22 views

Single Sign-on via Apache2 on Ubuntu

I have installed and already set Single Sign-on on Ubuntu server... on Apache2 But now have change domain from PREVIOUS.COM to NEW.COM I have already created on on domain krb5.keytab and placed to ...
user5332's user avatar
  • 141
0 votes
1 answer
57 views

why does apache2.conf grants access to /usr/share and /serv by default?

I am aware of this question, which is very similar to mine, however I am interested in why this is the default behaviour. Since by default the document root is /var/www/html, there is, to my knowledge,...
seb's user avatar
  • 3
0 votes
0 answers
65 views

getting 403 forbidden error using httpd (apache) connecting to tomcat via AJP

i am staring to be little bit hopeless since i tried many solutions and nothing worked. I am getting 403 Forbidden error when i try to reach my apache Tomcat server via httpd server (used as ...
Jeremy Panko's user avatar
0 votes
0 answers
83 views

Apache ( 2.4.58) compiling fails after Openssl upgrade to 3.2.1. on Amazon Linux 2

Apache ( 2.4.58) compiling fails after Openssl upgrade to 3.2.1. on Amazon Linux 2, Could you please help me on this. Error: /var/tmp/httpd-2.4.58/support/ab.c:2319: undefined reference to `...
avilala sudarshan yadav's user avatar
0 votes
0 answers
30 views

Using gdb/lldb to debug apache segfault

I am currently running an apache webserver on a macOS with an M1 chip. Recently I have been receiving some segmentation fault which is accompanied by empty response errors in the website. After ...
Legend ile's user avatar
0 votes
0 answers
43 views

Ubuntu 22.04.1 php8.1 performance issues

I upgraded php from 5.4 (Centos) to 8.1 (Ubuntu22.04) and I noticed a big performance downgrade in php native calls such as php::date, php::sin etc. for example, php::strtotime that before took 2msec ...
Andrea's user avatar
  • 101
0 votes
1 answer
105 views

How to run Supabase and t-rex with TLS reverse proxies

I have a VPS with 2 services at different ports and self signed SSL for an IP. It is Supabase at port 8000 and t-rex service at port 6767. I need them both on HTTPs like https://192.0.2.1:8000 for ...
SERG's user avatar
  • 101
0 votes
0 answers
77 views

Apache 2.4 multiple instances on Debian

Apache ships with a script for creating multiple instances on the same server, which is exactly what I want to do. The first instance is happily up & running on ports 80 (http) and 443 (ssl). File ...
perissf's user avatar
  • 151
0 votes
1 answer
43 views

User-Agent Filter Not Working For Any Pages Inside Site

I created a Rewrite rule in the .htaccess of a website to block traffic with blank user-agents and user-agents with only "-", except when the request comes from the webserver itself. The ...
js1018's user avatar
  • 23
0 votes
0 answers
122 views

PHP post data lost with Transfer-Encoding: chunked; Apache regression?

I am moving a PHP application from an older CentOS 7 server with Apache 2.4.6 and PHP 7.3.33 (mod_php) to a newer Alma Linux 9 server with Apache 2.4.57 and PHP 8.0.30 (PHP-FPM). This is a back-end ...
arlomedia's user avatar
  • 131
0 votes
1 answer
51 views

Apache referrer based reverse proxy path rewrite

I have a virtualhost that is a reverse proxy based on a path param "xmg" <VirtualHost *:443> ServerAlias some.example SSL... ProxyPass /xmg http://localhost:5553/ ...
user22866's user avatar
  • 151
1 vote
1 answer
134 views

Apache: 500 error, PHP fails on just one specific path

I need another pair of eyes to help debug an issue. This will be a long message. I'm going to provide a lot of context because I'm not sure which details might be important. We have two servers: dev, ...
Will Martin's user avatar
  • 2,513
0 votes
0 answers
24 views

Unable to run cgi program on apache2 server (with some mod_jk configuration)

In a apache2 server which have enabled mod_jk to access tomcat10 contexts, it was also enabled and configured the mod_cgid to run programs from the folder /var/www/apps/cgi-bin. But when I try access ...
Kleber Mota's user avatar
0 votes
0 answers
20 views

mod_ruid RuidGid equivalent

Since mod_ruid is no more supported by custombuild(directadmin) I had to install php-fpm. I would like to know where I can set the user that is running the website what was primarily the RuidGid in ...
Jeremy Lankot's user avatar

1
2 3 4 5
121