Questions tagged [apache2]

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

Opening "/server-status" in Apache2 with a WordPress installation is serving a "403 Forbidden" error response

I have been trying to open "/server-status" in Apache2 on my site that's facilitated by a WordPress installation and it is serving a "403 Forbidden" error response when I attempt ...
Michael Wilmshurst's user avatar
0 votes
0 answers
19 views

Getting an error message when trying to run apache2 on ubuntu

Hello i wanna run a server for my php application on apache2, but when i try to download apache2 like it sais on this website https://www.digitalocean.com/community/tutorials/how-to-install-lamp-stack-...
Kemal007023 oz's user avatar
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
0 votes
1 answer
47 views

I can't log-in to the webserver via LDAP

We using a VM for a web server running with apache2 regulating a specific service. Both SSH-login and logging to the front end were regulated by our LDAP-server. A few weeks ago, some changes were ...
Assa Yeroslaviz's user avatar
1 vote
1 answer
29 views

ProxyPassMatch backreference issues

I am attempting to take all requests matching the regex ^/(map/maps/[^/]*/live/.*) redirect into a local server http://127.0.0.1:8100/. However, the path that needs to be passed to the backreference ...
Firav's user avatar
  • 11
3 votes
1 answer
209 views

How to match beginning of file name using htaccess

I am attempting to modifying my .htaccess file within a specific directory. If a web user attempts to find any file in this directory that may be named like the following options, I want them to be ...
klewis's user avatar
  • 133
0 votes
1 answer
20 views

Apache2 Not Running Custom PHP App After Uploading to /var/www/html folder

I am installing a software that I bought. It's in PHP. So, I got a DigitalOcean server(ubuntu 22.04). Installed Apache2 and PHP 8.1. Now, when I upload files to /var/www/html folder, it does nothing ...
Salman Khan's user avatar
0 votes
0 answers
22 views

Is setting the ownership / permission for /etc/apache2 to have the group ownership `adm` and chmod g+w "safe"?

Good morning. I'm daring to ask my first ever qestion here. I'm annoyed having to use sudo all the time to modify the apache config files - mostly when I use the Remote SSH feature of my editor, then ...
JulianW's user avatar
0 votes
0 answers
19 views

Connection refused to Flask WSGI application on Apache2

I am attempting to get a Flask API running on Apache2 Server but I am getting a net::ERR_CONNECTION_REFUSED Since I am running the flask API on another server I am using a Proxy Reverse on my main ...
Elcid_91's user avatar
  • 141
0 votes
2 answers
75 views

apache2 can not set REMOTE_ADDR or any other var as header

i trying to setup apache as a reverse proxy and i need to add e.g. the REMOTE_ADDR and some other values as an header (required by the backend), for some reason always "null" is set. ...
sususo's user avatar
  • 1
0 votes
0 answers
22 views

Virtual host on Apache2 for Mautic "This site can't be reached" on specified subdomain (but can be reached somewhere else)

I am configuring a brand new Mautic 5.0.3 instance on a Debian GNU/Linux 12 (bookworm) in AWS shared server with other 3 webs. Let's say (for security reasons) that its on aaaa.com. I have configured ...
Iago'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
26 views

How to change the URL for Web UI Foreman?

Hi Can I change the url link for the web UI interface? I am using Foreman 3.9 versions. I try to change url with foreman-installer --foreman-url but I get error with ssl-certificate problem. Changing ...
Иван Довгань's user avatar
1 vote
0 answers
95 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
16 views

Apache2: LocationMatch does'nt working

I need to disable mod_security for /admin/ location, this is a full config of my virtual host: <VirtualHost *:443> DocumentRoot /home/example/sites/example.com ServerName example.com ...
YpaHeL1's user avatar
  • 131
0 votes
0 answers
27 views

How can I find out how Apache makes certain decisions?

As my Apache configuration gets more and more complex and there are many moving parts, it can be tricky to debug problems. Right now, I have a setup where a certain virtual host setup generates a 301 ...
Bart Friederichs's user avatar
0 votes
0 answers
45 views

Apache2 404 Not Found Error for file which really exists in folder

On my ubuntu server i have user farmer inside home/farmer directory i created directories /var/www/html/ and inside html i put file index.html I have granted following rights to directories and index....
Naglyj.Spamer's user avatar
-1 votes
1 answer
86 views

fail2ban cannot block ip public, it works only for private ip

My server live behind the reverse proxy nginx, but the ip of the client access shows in the apache log like this, looks normal, there is no x-forward things in the log. 103.221.234.206 - - [28/Feb/...
Riska K A's user avatar
0 votes
0 answers
39 views

Website redirects are not working when using Pihole on docker instead of VM

I’m currently in the middle of moving some infrastructure to containers from a ton of VM’s running simple things. I’m trying to move our pihole DNS server to a container. All was working well, until I ...
Tayotoka's user avatar
1 vote
1 answer
89 views

Creating a .htaccess in a subdirectory causes rewrite rules in higher level .htaccess to stop working

Sorry if this has been asked/answered before, but I was not able to find an answer to this particular problem. If I create a .htaccess file with a simple rewrite rule, that rule works. If I create ...
KBM's user avatar
  • 13
0 votes
0 answers
60 views

Putting a Django application into production on Ubuntu server with Apache2 and Cloudflare

I have this Django application which works very well, but I do not understand at all, how to put it in production on a Ubuntu 22.04 LTS server using apache2 and to link it in HTTPS, on a domain such ...
Ghost0159's user avatar
0 votes
0 answers
17 views

Apache2 send response while waiting for HDD to spin up

I have an Apache 2.4 Server that hosts static files. One directory (example.com/) is on the SDD (System-drive) and anotherone is on an external HDD (example.com/ef/). My Problem is that because my HDD ...
Der Müller's user avatar
0 votes
0 answers
85 views

Apace Reverse Proxy to Docker Container - CSF Breaking Container App

I've been at this all day now and can't seem to figure it out. I installed listmonk on my server and set up an Apache Reverse Proxy to it: <VirtualHost listmonk.ygoprodeck.com:80> ServerName ...
GenesisBits's user avatar
1 vote
2 answers
163 views

How to use OCSP validation for upstream server certificate in NGINX/Apache reverse proxy

I have an application that needs to make HTTP requests to a remote server. The connection should be secure using TLS. Due to external specification the application must validate the presented server ...
Rosso's user avatar
  • 111
0 votes
0 answers
29 views

How to get syslogd and/or Apache2 to STOP logging DEBUG messages to console

When I SSH into one of my Linux boxes (Ubuntu 20.04.2), I periodically see messages appear on the console screen: Message from syslogd@my-hostname at Jan 30 21:35:17 ... apache2: [MY-APP] DEBUG - 2024-...
GregSD's user avatar
  • 1
0 votes
0 answers
100 views

Apache2 with GSSAPI auth, can't exclude one location from auth

We have an apache2 serving a PHP application, with kerberos authentication We developed an API within the PHP application, and we want to access it without Kerberos auth But we cannot manage to ...
Wad's user avatar
  • 1
0 votes
1 answer
69 views

Fail2Ban RegEx works but filter does not

my plan is to ban all accesses to my webserver which repeatedly produce 404-errors and obviously do some scanning only For this I tried fail2ban-regex /var/log/apache2/otheraccess.log '^<HOST>. -...
Elmi's user avatar
  • 101
0 votes
0 answers
47 views

Ubuntu Apache2 mod headers - not adding

I have an ubunutu server with apache2 server and I need to add a custom header to every request. This seems very straightforward, but it's not adding the header. I have enabled the module headers with ...
Hugo Delsing's user avatar
0 votes
2 answers
179 views

Fail2Ban: RegEx to filter all 404 errors out of the Apache-log

In my logs I regularly see loads of 404-errors where bots obviously do scan the server systematically for specific software installations. As this also causes loads of traffic, I want to ban them. So ...
Elmi's user avatar
  • 101
0 votes
1 answer
29 views

Apache ignores second virtual host

we are using Apache on an Ubuntu server to host our websites. SSL Certificates are provided be LetsEncrypt and everything worked fine for the last years. Last friday I tried to renew one of the ...
Klaus Friese's user avatar
0 votes
0 answers
84 views

What would cause virtual hosts to use the same version of php-fpm after adding distinct fpm handlers?

As soon as I enable php8.1-fpm.conf, all my sites switch from using php7.4-fpm to php8.1-fpm. All my vhost files have fpm handlers added to the <VirtualHost *:80> blocks like <VirtualHost *:...
Steve's user avatar
  • 101
0 votes
0 answers
32 views

Convert auth config from apache http server 2.2 to apache 2.4

I have the following apache 2.2 configuration and need to transform it to apache 2.4. <Location /> Order Deny,Allow Deny From Env=TEST Allow From Env=LOCAL Allow ...
trikelef's user avatar
  • 528
0 votes
1 answer
78 views

How to setup a S3 backed Media server with basic auth / password protection

Requirement Serve audios and videos stored in a S3 bucket Selectively protect folders with basic auth (username password); Low latency as much as possible but not necessary Cost is also a factor but ...
Ranjeet Singh's user avatar
0 votes
0 answers
116 views

Getting 404 error for apache `/server-status`

I was told that there's a way to enable a url called http://<your host>/server-status and that this page would show you some operational metrics of the apache service. But every time I visit ...
learningtech's user avatar
  • 7,487
0 votes
3 answers
4k views

Apache Upgrade to 2.4.58 on Ubuntu 22.04

I'm trying to upgrade apache from 2.4.52 to 2.4.58 on a droplet with Digital Ocean running Ubuntu 22.04. My upgrade path is: sudo apt update And then: sudo apt install apache But I get a message thats ...
SCMedia's user avatar
0 votes
1 answer
23 views

Priority btween Location and LocationMatch in apache2.conf

I have this line in apache, before others <LocationMatch "\.\.;"> RewriteEngine On RewriteRule .* / [L,R=403] </LocationMatch> I am trying to avoid the problem mentioned ...
INS's user avatar
  • 101
1 vote
2 answers
231 views

Apache Rewrite Engine redirect all request to index.php

I have a PHP web application on a Apache Web Server. The path to to web application on the Server is: /var/www/html/intern/organisation/example_app The URL to the web application is: https://www....
Mario's user avatar
  • 11
0 votes
1 answer
25 views

Variable substitution not working in CGI script

I am trying to make a CGI script that takes the name and email from a form, decodes the QUERY_STRING variable into the two values, and then does stuff with them ( for now I just decoded the name an I ...
velici alex's user avatar
0 votes
0 answers
27 views

-CGI script not getting executed

0 I'm trying to make a simple form where you can introduce you're name and upon hitting the submit button you get redirected to a page where it says "Hello name_that_was_submited!". I did ...
velici alex's user avatar
0 votes
1 answer
98 views

Apache LogFormat: what does %f mean?

I have checked the apache logformat from - https://httpd.apache.org/docs/2.4/mod/mod_log_config.html I am not able to understand what does "%f" parameter mean in apache log format. The ...
Yogesh Tembe's user avatar
0 votes
0 answers
71 views

Disabling unnecessary Apache modules for simplicity and performance

I noticed that my simple LAMP application does not need most of the default modules the official Docker PHP-Apache image bundles by default: a2dismod -f access_compat auth_basic authn_core authn_file ...
Pere's user avatar
  • 141
0 votes
0 answers
83 views

Digital Ocean Droplet Crash after Resize. I am unable to figure out the issue

I am currently running an Apache2 web server with FastCGI Process Manager (PHP-FPM) on Ubuntu 22.04 at Digital Ocean. Recently, I wanted to add an additional website to the server. To do this, I ...
Dev Guy's user avatar
  • 127
0 votes
0 answers
84 views

Apache 404 Error getting pages from subfolders

Many many questions about this and I cannot find an answer. Simple website SSL, just set up. My configuration: <VirtualHost *:80> ServerName mywebserver.io Redirect / https://...
Elcid_91's user avatar
  • 141
0 votes
0 answers
56 views

Ubuntu Virtual Host served by Cloudflare is displaying a 521 error

I am in the process of transferring a number of sites to a new server. I've moved two already and after lots of issues these two are displaying fine on the new server. I'm using Cloudflare and have ...
Nik Lever's user avatar
0 votes
1 answer
189 views

Need to allow only specific file extensions via Apache config

I'm struggling with allowing only specific file extensions via Apache (2.4.58). I'm doing this in httpd.conf. The problem is if I deny all files at first either like that: <Files *> Require ...
Gino Pane's user avatar
  • 101
3 votes
0 answers
132 views

How to investigate 100% CPU load for 15 minutes on random days

"I have a server that runs a website on Apache2 and is behind Cloudflare. The server's normal load, according to 'htop', is 10%. However, at random days/times, the server load spikes up to 100%, ...
CodePanda's user avatar
  • 141
0 votes
0 answers
165 views

Intercept HTTP POST response from Reverse Proxy in Apache

I have following configuration in my Apache server and requirement is to intercept HTTP POST request to /api/submit endpoint and trigger a CURL request to a remote URL before forwarding it to backend ...
user8373873's user avatar
0 votes
1 answer
418 views

See https sites in local with Debian / Apache2

I'm working on Debian Testing. I see local http sites at localhost/~myhome/... To this end I made the classic change to /etc/apache2/mods-available/php8.2.conf To re-enable php in user directories ...
user41063's user avatar
  • 101
0 votes
0 answers
342 views

Discover process that exhausted my memory and CPU limits on Ubuntu

I have a DigitalOcean droplet running Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-89-generic x86_64). My website went down at approximately Fri Dec 01 6:48 AM GMT. From var/log/apache2/access.log, I ...
Jaime Montoya's user avatar
0 votes
0 answers
12 views

Is there a way to detect which requests have been made using same connection in Apache log?

I use mod_log_config and mod_log_forensic to log all requests made to an Apache server. Some of those requests use Keep-Alive and I would like to find out which requests have been made using the same ...
tigrou's user avatar
  • 111

1
2 3 4 5
36