Score:0

How can I find an overlapping alias in apache2 configuration?

kn flag

I've searched stackexchange up and down, found several similar problems but none helped me to fix my problem: It is the common

% sudo apachectl configtest
[Wed Nov 30 08:31:24.196914 2022] [alias:warn] [pid 529709] AH00671: The Alias directive in /etc/munin/apache.conf at line 17 will probably never match because it overlaps an earlier Alias.

The problem would be so simple to solve if apache would just add the information where the earlier alias is. Or if I could get the final config file with all includes. Sigh.

/etc/munin/apache.conf might be included multiple times, but it isn't:

markus@the-grue % sudo grep -ir munin /etc/apache2 
/etc/apache2/apache2.conf:<Directory /var/cache/munin/www>
/etc/apache2/sites-available/000-www.the-grue.de.main.conf:Include /etc/munin/apache.conf

The first result has nothing to do with the problem:

<Directory /var/cache/munin/www>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

The second result is the only include of /etc/munin/apache.conf that I'm able to find.

The only "special" thing is that 000-www.the-grue.de.main.conf is not used directly, but included from /etc/apache2/sites-enabled/000-www.the-grue.de.vhosts.conf:

<IfModule mod_ssl.c>
<VirtualHost 95.129.55.226:443>
             Include /etc/apache2/sites-available/000-www.the-grue.de.main.conf

             SSLCertificateFile /etc/letsencrypt/live/the-grue.de/fullchain.pem
             SSLCertificateKeyFile /etc/letsencrypt/live/the-grue.de/privkey.pem
             Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>

</IfModule>

So in the end, /etc/munin/apache.conf seems to be included only at one place and inside a VirtualHost. I have no idea how to continue from here. The problem is only a warning and everything works fine, but I hate warnings and want to fix them.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.