New answers tagged

0 votes

puppetlabs-apache redirectmatch to 404 is not working

I think you want to use redirect_source and redirect_status instead of redirectmatch_dest and redirectmatch_status redirect_source => ['http://bla.com/bla1','http://bla.com/bla2','http://bla.com/...
  • 141
0 votes
Accepted

How to configure a sites-available entry for mediawiki on RPi behind firewall?

The problem was not in the error log but in media-error_log. It appears the mediawiki configuration page(s) does not overwrite the local settings file. Instead, it just appends to the end. This causes ...
0 votes
Accepted

Nextcloud installation broken after upgrading to Ubuntu server 22.04

I figured out what the issue was. I switched back to php7.4 since according to my research, Nextcloud compatibility with php8.1 is still unpredictable. It turns out apt upgraded several PHP modules to ...
1 vote
Accepted

Apache include value of %{TIME_YEAR} variable in an HTTP response header

This should work: Header always set Attention "expr=you are using still using IPV4 in %{TIME_YEAR}, please blahblah etc"
  • 700
0 votes
Accepted

git-http-backend on apache2 can pull but not push: remote: fatal: not a git repository: '.'

I found a solution to this. Interestingly, it's the same solution that solved my previous, different problem: https://unix.stackexchange.com/a/719077/543092 I checked my apache config and couldn't ...
1 vote

How to **keep** my SSLCipherSuite list for my LAMP stack current?

I would suggest the Mozilla Server Side TLS recommendations, as well as the associated config generator as a baseline for most purposes. What I particularly like is their three proposed configurations ...
0 votes

How to convert Nginx config to Apache2 for Modoboa

It's a bit late but this works. Alias /new-admin /home/modoboa/instance/frontend/ <Directory /home/modoboa/instance/frontend> Order deny,allow Allow from all </Directory>
0 votes

How to use puppet-apache mod (v8.3.0) with hiera?

Ok so just in case anyone benefits, the solution was really straightforward and shows my puppet noob status. Solution: Looking at the docs you'll see the majority of data types are arrays, take the ...
  • 11
0 votes

Exclude specific URL from HTTP to HTTPS redirect in apache2 virtual host

Okay, actually I figured out the following solution I might live with: <VirtualHost *:80> ServerName example.com Redirect gone /api Redirect permanent / https://example.com/ </...
0 votes

How do I remove a HTTP header in Apache, if a certain IP access it?

When the Header directive does not work, use the RequestHeader directive instead. Here's an example how to prevent spoofing of the X-Forwarded-For header when Apache is used as a reverse proxy where ...
  • 131
0 votes

AWStats not showing anymore Referrers / Keywords /keyphrases

Google has stopped giving away searched keywords info. Blame it to Google and not AWStats. It shows what it gets.
  • 101
0 votes
Accepted

Host multiple websites on AWS Auto-Scaling Group with EFS

This was resolved by mounting EFS under /mnt/efs/fs1, setting the Apache root directory to /mnt/efs/fs1/www/html, and configuring bitbucket pipelines to trigger AWS CodeDeploy to deploy to the root ...
  • 11
0 votes
Accepted

Apache2 is serving "download" document instead of website

probably one of these commands sudo apt install apache2-mod-php sudo a2enmod php8.1 sudo apache2 restart
  • 666
1 vote
Accepted

Openstack Glance Configutarion on HTTPS RESTAPI + Nginx Reverse Proxy

Thanks to diya the problem is port 9292 or any other openstack services is running on all ip addresses (0.0.0.0) the solution is to set bind_host = 127.0.0.1 in /etc/glance/glance-api.conf then the ...
0 votes

Fix virtualmin domains to use individual php ini files

As it is mentioned here you can use this setting in Apache config: <VirtualHost 1.2.3.4:80> [...] PHPINIDir /path/to/new/ini [...] </VirtualHost>
  • 3,430

Top 50 recent answers are included