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
1 answer

Can apache return multipe ErrorDocuments for the same response code depending on a header value?

So let's say I have a 403 page but if the request header has a custom value in it - I want to return a different 403 with a bit more information in. So the normal 403 location may be /error_403 and the custom one may be /error_403_x. How would you…
0
votes
0 answers

Apache mod_status, full machne readable details

Apache's mod_status (i.e /server-status) outputs HTML, including what HTTP clients are accessing what thing right now. There is a text format (/server-status?auto), but that doesn't include the current HTTP clients. Is there anyway to get all the…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
0
votes
1 answer

Apache 2 basic reverse proxy config not working, getting 404 error

I started a new server in a virtual machine, and I can access its homepage from the browser. I set up a docker container hosted on port 90 which I can also access. To link /app/ to localhost:90 I enabled the proxy module and edited 000-default.conf…
Tom743
  • 1
  • 1
0
votes
1 answer

Can't load Web API with SSL (ERR_SSL_PROTOCOL_ERROR)

So I can't get my head around this problem, and looked everywhere on the internet but did not found any working solution. 1.1. I have an apache server running as virtual host. In the initial situation, it listens to port 80, it's binded with my…
CharlZ
  • 1
  • 1
0
votes
0 answers

Apache2.5 Ubuntu22 upgrade

Hi have followed this, restarted apache2, rebooted the instance and still 2.4.54. Is it as simple as getting the latest and untar it into the existing directory? Please advise.
cp.
  • 101
0
votes
1 answer

Apache2 Virtualization For A File

My folder stracture like that; system core bootstrap run In run folder I have a file php file. I can include other files like; include '../core/...php' But I want to block that. Can I set it apart from the others?.How should I write my .conf…
0
votes
1 answer

Which files/directories are needed when replicating Apache installation on CentOS?

I'm replicating an Apache installation to a new server in a different data centre. I installed the same version of Apache on the new server and would like to copy all the relevant files from the old server. Does the following include all the…
boardrider
  • 949
  • 2
  • 18
  • 29
0
votes
1 answer

Install a CDN on a subdomain in a different IP: error 523

HAPPY MONDAY I have Ubuntu instances running on 2 servers: Server1: Docker, Cloudflare-OZNU-API and Nginx Proxy Manager, wildcard for: domain.app and *domain.app. Server2: Apache2 - PHP7.2, Certbot for DNS-Cloudflare-API. This is the file for the…
Debbie
  • 101
  • 1
0
votes
1 answer

Apac2 + Cloudflare 502 Error On Static Files

I try to setup my nodejs application on ubuntu 16. I configure apach2 like that; I'm getting Error 502:Bad gateway from cloudflare. I did not do any config on cloudflare. What should ı do? Server is running because I can go this url;…
0
votes
0 answers

SSL certificate not working

I'm going to put an application on a new server (after upgrading it from PHP 7 to PHP 8). I can connect to the server(Red Hat) only using VPN (pulse). my purpose is to run the application on the browser. when I connect to the server then I run curl…
Naruto Uzumaki
  • 31
  • 1
  • 1
  • 3
0
votes
1 answer

Prevent services subdomains from browsing

I'm facing a problem, and I don't know what are the best practices for it. I got a VPS hosting multiple services (DNS, Apache and IMAP/SMTP). The domain is briffoud.fr and each service has its subdomain e.g. smtp.briffoud.fr. When I browse to…
0
votes
1 answer

How to use WebP images on Apache behind an Nginx Reverse Proxy

My problem is that I have a CentOS Web Panel: Where I have an Nginx Reverse Proxy running on port 80/443 which is forward the requests to Apache 2.4.52 on port 8181. The modules that Apache uses are: Loaded Modules: core_module (static) so_module…
Diverti
  • 101
  • 2
0
votes
1 answer

Apache virtual host serving incorrect index.html file for one of two domains connected to server

I have two domains setup on a single server using Apache Virtual Hosts. The first domain (domainA.com) is loading the index.html file of the second domain (domainB.com), even though the first domain (domainA.com) has an index.html file in the…
Mike Hermary
  • 131
  • 7
0
votes
1 answer

Apache: Enable HostnameLookups for single virtual host

I have several virtual hosts configured in Apache. Reverse DNS lookups are disabled in apache2.conf with HostnameLookups Off but I want it enabled for a single virtual host. How do I do that?
Zippy1970
  • 247
  • 1
  • 4
  • 12
0
votes
0 answers

Drop connection without sending packets

I would like to prevent default virtual host behaviour by dropping the connection, so that visitors who navigate to my server via IP or fqdn that isn't included in my virtual hosts get no indication that any web server exists (other than seeing open…
jackar
  • 11
  • 2