Skip to main content

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
34 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
100 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
43 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
102 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
190 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,549
0 votes
4 answers
8k 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
33 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
467 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
31 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
48 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
113 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
92 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
108 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
137 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
  • 151
0 votes
0 answers
81 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
404 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
188 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
221 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
574 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
1 vote
1 answer
434 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
18 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
0 votes
0 answers
370 views

Set up proxy for Nextjs and WordPress blog

Thanks in advance. I am new to server setup. So pardon me If I used the wrong words. I am setting up an Ubuntu server to host Nextjs and WordPress blog on the same server. I have to set up Nextjs on ...
Sandeep Solanki's user avatar
0 votes
0 answers
150 views

Apache2 folders redirect to IPs

I have installed Apache/2.4.56 (Debian), a noip URL and severals LXC containers. I need to access to the web apps inside the LXC containers: example.com/app1 -> LXC container 1 (with Zend2) example....
Lethal's user avatar
  • 1
0 votes
0 answers
203 views

proxy causes "Name Error: The domain name does not exist" Apache2

When I activate a proxy by entering the address in /etc/environment, the website I host on my webserver becomes inaccessible with the following error message (snippet): <div id="content"&...
sysad noob's user avatar
0 votes
0 answers
43 views

strace restart apache server does not log accept/accept4 syscalls

We are using the following command to gather syscalls for apache server start (run as root): strace -e trace=open,close,read,write,connect,accept -f -o /home/sacumen/syscalls_start_apache.txt ...
Mahesh's user avatar
  • 101
0 votes
0 answers
73 views

What is the equivalent of /etc/apache2/envvars in EL-based systems?

In Debian-based systems, it's possible to source a bash script in /etc/apache2/envvars to dynamically set an environment variable. Here is an example: Create a file (/etc/profile.d/myenv.sh) with the ...
H M's user avatar
  • 1
1 vote
1 answer
58 views

Apache Default Conf Host Binding

I have a standard apache2 installation on Ubuntu to which I have added a mysite1.com with the following: <VirtualHost mysite1.com:80> Since this addition, when I call http://<external-ip>...
Marc's user avatar
  • 137
0 votes
0 answers
145 views

fail2ban jail is not respected

I'm completely new to fail2ban. I implemented a custom filter and a custom jail to ban some users from accessing my website which is hosted by apache. Fail2ban seems to recognize my regex fail rules ...
learningtech's user avatar
  • 7,549
0 votes
1 answer
138 views

Internal Server Error - ProxyPass & ProxyReseverse (Apache2)

I'm trying to set a ProxyPass & ProxyReverse up so that I can share a domain between 2 different servers. Looking to achieve: Domain: https://example.com Server A: https://example.com/quotes ...
YaBCK's user avatar
  • 103
0 votes
0 answers
58 views

Proxy Error - Java Web Applications / Glassfish / MySQL / Apache

I have some Java Servlet Web applications running on Glassfish, on an AWS Linux server. The applications are integrated with a MySQL database, installed on the same server. Also, access management is ...
EduOK's user avatar
  • 1
1 vote
1 answer
80 views

Apache VHost Redirect /dir/ to subdomain

I had applications running on the following variable links: www.example.com/topics/vardir/show www.example.com/education/topics/vardir/vardir/show www.example.com/literacy/topics/vardir/show www....
Josh Hawkes's user avatar
1 vote
0 answers
142 views

Retrieving IPV6 address of connections on Apache2 & Ubuntu 20.04

I'm unable to get IPV6 addresses from connections to my server. All connections display an IPV4 only even when the IPV6 is available. UFW has apache full and V6 allowed. To ...
Wakka's user avatar
  • 111
1 vote
4 answers
528 views

Apache2 not listening on SSL on Ubuntu

Trying the configure SSL on Apache2 on Ubuntu server installed Apache sudo apt install apache2 Opened ufw firewall sudo ufw allow 'Apache' ufw allow https Installed SSL files in /root/cert chmod ...
vrao's user avatar
  • 117
1 vote
3 answers
213 views

apache2 rewrite is working, but doesn´t keep URL

I was looking around google for some days now and can´t get it to work. With apache rewrite: domain.com > test.com/test (but keep the URL domain.com in browser) The whole SSL Config: <...
roku's user avatar
  • 11
0 votes
1 answer
296 views

rspamd and Apache reverse proxy: navigation does not work (fragments in URL have no effect)

I have set up Apache 2.4.57 and Rspamd 3.6 on Ubuntu 23.10. I have configured Apache as a reverse proxy to the controller worker of Rspamd. I can access to Web UI of Rspamd, enter a password and I ...
user2690527's user avatar
0 votes
1 answer
65 views

Redirect from https-URL request to http-server IP is not working

In the second call of my Apache 2.4 server config-vhost file I have: <VirtualHost *:80> ServerAdmin [email protected] ServerName 51.89.98.21 RewriteEngine On RewriteCond %{...
German Online Publisher's user avatar
0 votes
1 answer
200 views

Weird backlinks created from own domain

In Ahrefs I have noticed, that one of my webpages have weird (thousands) of backlinks which come from four own domains (and one IP from my own dedicated server). For example: This URL (which is the ...
German Online Publisher's user avatar
0 votes
0 answers
266 views

ModSecurity runtime rule exclusion failing with error "ModSecurity: Missing target for id"

I read Folini's great tutorial for ModSecurity with Apache. I am trying to set a runtime exclusion rule, that should disable rule 920420 (Request content type is not allowed by policy) but only for ...
nulll's user avatar
  • 529
0 votes
0 answers
57 views

apache Location really slower than Directory

On my apache server, I have a https virtualhost configured as: <VirtualHost *:443> ServerName www.example.com DocumentRoot /var/www/localhost/htdocs CustomLog /var/log/...
Chris972's user avatar
0 votes
0 answers
56 views

Apache2 redirect subdomains to specific ports

I am currently setting up a little home lab and I am trying to figure out how to kind of pin some local subdomains to a specific port. Example: I have Adguard running on port 80 (domain.home) and ...
Pakuss's user avatar
  • 1
4 votes
1 answer
4k views

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's user avatar
  • 143
0 votes
2 answers
237 views

Apache2 Proxy SSL Cert Check

Let's have a webserver with a valid TLS cert called b.my.tld. I want to configure apache2 on a.my.tld as reverse proxy for b.my.tld. So I added ProxyPass / https://b.my.tld/ ProxyPassReverse / https://...
philipp's user avatar
  • 101
0 votes
0 answers
23 views

Internal sources from proxy not being redirected in Apache

I set up a proxy like this: ProxyPass /frontail http://192.168.0.66:9001 ProxyPassReverse /frontail http://192.168.0.66:9001 When I call 192.168.0.66/frontail, it correctly redirects to 192.168.0.66:...
Leandro 86's user avatar
0 votes
2 answers
199 views

Slowdown in Apache with HTTP/2 when Requesting Small Thumbnails (60KB) via Reverse Proxy to HTTP/1.1 Backend

I am currently running an Apache server with HTTP/2 enabled as a reverse proxy for my web application. I have noticed a significant slowdown when requesting a large number of small thumbnails (each ...
xhighway999's user avatar
0 votes
0 answers
48 views

Why does this directory rewrite only work for top-level content, not subdirectories?

I have the following lines in my .htaccess file: RewriteCond "%{DOCUMENT_ROOT}/_legacy/%{REQUEST_URI}" -f RewriteRule "^(.+)" "%{DOCUMENT_ROOT}/_legacy/$1" [L] ...
kshetline's user avatar
  • 129
0 votes
0 answers
61 views

Accept-Encoding and range not working together

I need to get Cloud Optimised Geotiff from an Apache server. Now, if I test it issueing from console: curl "path_to_TIF" -H 'accept:*/*' -H 'range:bytes=0-1' --output test.tif I correctly ...
Pierpaolo's user avatar
  • 101
0 votes
1 answer
282 views

How redirect ANY site not found in Hestia to another server - Nginx proxy manager

I want: if ANY site not found in (Hestia 192.168.0.37 server) then redirected (Nginx proxy manager 192.168.0.36) Given: Hestia server 192.168.0.37 Nginx proxy manager 192.168.0.36 Site for test ...
dr.ipkins's user avatar
0 votes
0 answers
18 views

Duplicating an EC2 instance for creating a development platform for Wordpress site

I have an EC2 instance running Ubuntu hosting a Wordpress site on Apache. I've used LetsEncrypt's CertBot to create an SSL certificate and everything's working fine. I also have direct IP to domain ...
The Feadow's user avatar
0 votes
0 answers
365 views

Logging all http requests to domain

I bought a domain name and I would like to log what http requests it receives. Logging the requests headers, url, type and message body. Looking for an easy/affordable solution. Standing up an Apache ...
Nick's user avatar
  • 143
0 votes
0 answers
91 views

not able to access apache 2 server running in vagrant from the host

I'm running apache2 inside the vagrant guest machine . Below is my vagrant file- # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "ubuntu/...
Rajkumar Natarajan's user avatar

1
2
3 4 5
36