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)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
0
votes
0 answers

apache2 suddenly failing to serve https

apache2 v.2.41 on Ubuntu 20.04.5 LTS (WSL2) is suddenly not connecting over https, in browser or via wget. It's been working for months, and I haven't changed anything. I tried restarting Apache; it's still not working. My sites's .conf…
mgiuffrida
  • 113
  • 5
0
votes
0 answers

'combination of host and port requires TLS' when running Tomcat application

0 I had an Apache configured to run on HTTPS. Also a Tomcat application running without the 8080 port and in HTTPS. Everything perfect since I had to install Drupal 10 (using composer) that needed a different PHP version Problem: my Apache is still…
0
votes
0 answers

The ModSecurity WAF used with the authentication mode

I have two Apache VirtualHost allowing access to lists of files. The first directory or server is accessible without authentication. On the other hand, the second has the native Apache authentication mode called mod_authn_dbd. I configured the…
Lynow
  • 1
  • 1
  • 2
0
votes
1 answer

Apache2 Default HTTPS 443 Vhost

I'm currently trying to make a default vhost for HTTPS to block traffic from unauthorized domains. However, when I define a default 443 vhost, ALL other HTTPS vhosts inherit this as well and prevents normal access. I've been scratching my head for…
0
votes
1 answer

I to host a static website with nginx on Plesk server which is running Apache

I migrated my WordPress websites from shared hosting to a single VPS. I am hosting the websites with a Plesk server. The Plesk is configured to serve the request with an Apache web server and Nginx as a reverse proxy server. Now, I want to host a…
0
votes
0 answers

Get Apache2 to also use no port for self-referencing URLs when Host header has no port

I need to install a reverse proxy in front of an Apache2 installation on a customer's server. The job of that reverse proxy is to proxy some additional applications (internally running on other ports) under subdomains, handle SSL termination and a…
CherryDT
  • 101
  • 2
0
votes
1 answer

Modsecurity Rule that Would Block the IP After a Certain Amount of 403 Errors

I am trying to figure out how to write a ModSecurity rule that would block the IP from the server for a period of time when that IP is generating a certain amount of 403 errors, and I am struggling with writing the rule. Does anyone have any ideas…
0
votes
1 answer

apache proxy, protect folder, exclude file

I'm using apache as a reverse proxy and I was wondering how can I protect a folder but exclude a file within that folder. For example if I use Require ip x.x.x.x how can I proxy to…
0
votes
1 answer

Apache virtualhost port 443 serves content from port 80 configuration

I'm running Apache 2.4.52 on Ubuntu Server 22.04. I'm trying to run https through port 443, eventually aiming to have a redirect from port 80 to force content on https. However, Apache seems to be using the DocumentRoot from the port 80 config,…
Sit399
  • 21
  • 3
0
votes
0 answers

ASP.NET application not accessible through Apache proxy on Linux

I need to clarify the process of pointing a web domain to a running ASP.NET application on a raspberry pi. The application is developed and ready, and the website is up and running. I have researched multiple posts and can't find anything wrong with…
Alex S
  • 1
0
votes
0 answers

apache2 reverse proxy, how to serve multiple domains with backend recognizing only 1 valid uri

I have an Apache reverse proxy set up and my backend service is configured on a specific static ServiceUri="site.com". I would like requests coming for multiple domains a.site.com/data, b.site.com/data etc. to be forwarded to my backend service. The…
Mnemosyne
  • 131
  • 1
  • 7
0
votes
1 answer

Configure SSL for Apache Reverse Proxy

I want to redirect HTTPS connections to my domain towards a unique subdomain using Apache2 reverse proxy. I want all the connections that come to a.example.com to be redirected towards $random$.b.example.com. To generate the random value I have a…
Mnemosyne
  • 131
  • 1
  • 7
0
votes
1 answer

fail2ban works with access logs but not error logs "Have not found any log file" Bitnami Servers

OK I am stumped...Why is it that fail2ban works perfectly fine on my ubuntu computer but on my aws bitnami stack it won't find the error_log file. It's like it hates the fact that bitnami puts the error logs in a non standard place. The access_log…
waltmagic
  • 103
  • 4
0
votes
0 answers

CPU 100% PHP-FPM Processes Wordpress

EDIT: I have determined that I have a configuration problem and my ignorance is the problem. I have php-fpm processes that are eating up all of the ram and cpu of my server. I decided to max out a vps instance to verify this. It's not an attack or…
waltmagic
  • 103
  • 4
0
votes
2 answers

Does apache ProxyPass handle tls for websocket too?

I'm new to proxypass, Let's say this is our config: # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating …
Steve Moretz
  • 173
  • 1
  • 9