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.


1778 questions
44
votes
2 answers

Does Apache Webserver use log4j (CVE-2021-44228)?

Does the apache webserver (apache2) use log4j? I have Apache2 2.4.38 (debian) installed on Raspberry Pi OS (64bit) and found some strange records in my log regarding CVE-2021-44228 from kryptoslogic-cve-2021-44228.com (honeypot/scanner),…
gilex
  • 523
16
votes
2 answers

Apache2: sites-enabled vs conf-enabled?

What is the difference between conf-enabled and sites-enabled (or conf-available and sites-available if you want to think of it that way)? When should a file go in one but not the other? Are they read into apache2 differently or at different times?
stone.212
  • 347
6
votes
2 answers

Changing default Apache log permissions

For some development servers, I want to make all the Apache log files accessible via the web so developers can more easily debug. I've figured out how to modify the Apache site config to make the default /var/log/apache2 directory accessible, but…
Cerin
  • 3,650
  • 20
  • 63
  • 79
5
votes
1 answer

Warning: DocumentRoot does not exist... But it does

I'm trying to host 3 sites with Apache in Ubuntu 20.04 but when I try connecting to them I get Not Found. The requested URL was not found on this server. This is my virtual host file ServerName nico1.com Redirect…
4
votes
1 answer

Is Apache with mod_http2 vulnerable to Http/2 Rapid Reset CVE-2023-44487

I can't find anything about this on the apache site, so I've disabled http/2 as a precaution. Any information how to secure Apache2 against this?
craigmj
  • 143
4
votes
1 answer

Is there a way to share or reuse Apache configurations

I have the following directory structure on my Apache server /var/www/domain.com/ index.html site-1/ site-2/ . . . site-N/ Each site uses the following configuration file, where the variables "port", "site", and "hub"…
3
votes
2 answers

What's the difference between REQUEST_FILENAME and REQUEST_URI in apache configuration?

I don't see any posts discuss the differences between REQUEST_URI and REQUEST_FILENAME, while I see many posts use them interchangeably. I turned on the mod_rewrite log (LogLevel alert rewrite:trace8), replaced REQUEST_FILENAME with…
Rick
  • 339
2
votes
1 answer

Apache: too many redirects

My Scenario: i have running apache severing my UI and i have my node api running on port 2000 and i have a reserves proxy on apache to proxy request to api and i have configure ssl as well and i want to redirect http to https. this is my following…
Frodo
  • 123
2
votes
0 answers

Is it possible to configure apache so it will retry (resend) requests to application if they fail?

We are running apache2 in front of numerous different applications. It is possible to configure apache2 so it will automatically re-try HTTP request is the request fails with some error (like 501 or something like that)? BTW, we use Proxy and…
user2196351
  • 191
  • 4
2
votes
0 answers

Apache deny access all files in a directory while allowing access to sub directories

I may have asked this in the wrong site -- so I am trying my question here. Like to deny access to all files within a directory; while allowing access to files within the sub directories. I thought I had this licked until I notice a denied access…
2
votes
1 answer

Bypass Location with Alias in Apache2

I'd like to know how to use Apache as a reverse proxy for a specific path and as local server for its sub-paths. For a specific location, I am using Apache as a reverse proxy (https://my.server.com/my-tools): Order…
Adriano P
  • 243
  • 3
  • 8
2
votes
1 answer

Get Url Parameter from Request and store it in variable in apache config

In my apache config, I want to allow access only when a specific url parameter matches a specific cookie. I imagine a solution looking similar to this (in pseudocode): param = get_url_parameter_with_a_specific_name_from_request if…
2
votes
1 answer

Apache prevent access to everything except a single location

I'm trying to block access to everything on a vhost except a single safe-path (and really, everything under it, so /safe-path/item-1, /safe-path/item-2, etc); from reading the docs, it seems that I should be able to do: Order…
2
votes
0 answers

Upgraded to libcurl4 and broke apache?

Apache2 and Apache2-bin seem to depend on libcurl3. How can I get them to install now that I upgraded to libcurl4? sudo apt-get install apache2-bin Reading package lists... Done Building dependency tree Reading state information... Done Some…
1
vote
1 answer

Creating a sub subdomain in a subdomain

I have a virtual server with IP and a sub domain. Let's say the main one is www.company.example and my server is under myserver.company.example. The server has Ubuntu Server 18.04 OS. I have multiple projects and I want to divide them in different…
jAdex
  • 121
1
2 3 4 5 6