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

How do I create a Virtual Name Host on Apache2 for a service running on localhost:8080

i have a server with apache that runs a mailing service, a wordpress multisite I have followed guides online to make the above work now I have a service from Vaadin (java stuff) running on localhost:8080. I can also access this through my public…
0
votes
1 answer

Why does Apache2 not respect Last-Modified headers?

On a I have: ProxyPass /public ! in order to have content under this path served as static files directly from the file system. But it seems that the If-Modified-Since and If-None-Match aren't used. Request headers are…
0
votes
1 answer

Apache VirtualHosts not working/redirecting? (Reverse proxy)

I am trying to set up Apache as a reverse proxy on a new Ubuntu 22.04 virtual machine. We have an existing Apache reverse proxy on Ubuntu 18.04 where everything is working as intended. This new reverse proxy is supposed to replace our older one, but…
0
votes
1 answer

Redirect all pages to non www and one page to www

I want to redirect all my internal pages (eg: example.com/about) to their non-www version but I want my homepage (https://example.com) to redirect to its www version (https://www.example.com). I searched many articles on the internet but it could…
0
votes
0 answers

masking URL after redirection

I re-post my question in the event that I will be more clear as to what I would like to do. I have a subdomain under a dns name, lets say it is mysub.domain . This subdomain is in a remote provider where I have no apache2 control. The file system…
thermike
  • 1
  • 1
0
votes
0 answers

Apache2 behind NGINX: MOD_REWRITE only works without HTTPS

For days I can't get my head around the following problem: We have an application (Faveo) which has two requirements for going through the setup wizard: HTTPS & MOD_REWRITE. Faveo is running on Apache2 with a ReverseProxy in front of it in our…
0
votes
1 answer

Why server shows default Apache page instead of my app?

I setup Php+Mysql app on my Ec2 instance but when I reach domain,Apache default page is shown. Bookstack is my app. tail log 172.68.50.230 - - [21/Apr/2022:05:26:52 +0000] "GET / HTTP/1.1" 304 2539 "-" "Mozilla/5.0 (X11; Linux x86_64)…
MarkoGM
  • 1
  • 2
0
votes
1 answer

How to redirect to https for multiple subdomains configured as ServerAlias?

I have installed SSL via certbot and all my sites can be accessed via SSL. However, when http is used in the browser url, only the 1st one from below gets redirected to https. The others don't get redirected to https and continue to be in…
variable
  • 177
  • 2
  • 10
0
votes
1 answer

MacOS Monterey (12.3) and Apache 2.53 https does not connect

On macOS Monterey (12.3.1) and Apache 2.53 (homebrew) I always receive (on Firefox) "Secure Connection Failed" Error code: SSL_ERROR_RX_RECORD_TOO_LONG Other browsers will not connect as well. No error message in apache logs and access_log records…
melaxon
  • 101
  • 1
0
votes
0 answers

AWS CloudFront error 502 connecting to EC2 host

Community I have a web page served by Apache running on a EC2 AWS instance. I am using AWS Certificate Manager with CloudFront to manage SSL/TLS in order to access the web page using HTTPS My environment: Domain: some.com.do AWS Certificate…
Geraldo
  • 1
  • 2
0
votes
1 answer

How to set SELINUX HTTPD User Content RW?

I'm quite new to SELINUX, I've simple question, I know there are httpd_sys_rw_content_t for /var/www/html, and read only httpd_user_content_t, but if I want to allow some folder to be RW for that user only, is there any httpd_user_rw_content_t ? Or…
0
votes
0 answers

php8.0-fpm service not loading

I recently upgraded from PHP 7.4 to PHP 8.0. It seemed to work just fine until I rebooted. It looks like my PHP service isn't loading. user@server:~$ sudo systemctl status php8.0-fpm ● php8.0-fpm.service - The PHP 8.0 FastCGI Process Manager …
0
votes
0 answers

Mod_evasive casuing trouble

After i changed one of my database tables into InoDB from myisam i started to get "client denied by server configuration:" in my error log. After finding out mod_evasive was the problem i added the following to the apache config file. After an…
0
votes
1 answer

upgraded to Ubuntu 20, reconfiguring apache2, utterly clueless

I upgraded to Ubuntu 20 on my Google Compute vm. Now apache2 isn't serving stuff up when i hit my server (by external ip) via lynx. apache2 DOES serve up the default page when i do lynx localhost on my server. these instructions…
user1126515
  • 111
  • 2
0
votes
0 answers

AWS EC2 Next JS server stop responding after some time

I am running NextJS server on AWS EC2 instances. I use pm2 to manage my applications. The setup works pretty fine but the problem is after a few days the server stops responding with a 522 status code. Once I restart the apache server with…