Mobile app version of vmapp.org
Login or Join
Alves908

: Sub_filter doesn't work when used with MediaWiki? I'm working on a site, https://factinfiction.meulie.net/ . This site runs the latest stable version of MediaWiki (1.26.2). In the server-config I

@Alves908

Posted in: #Mediawiki #Nginx

I'm working on a site, factinfiction.meulie.net/ . This site runs the latest stable version of MediaWiki (1.26.2).

In the server-config I have the following location-block:

location / {
sub_filter '</head>' '<meta name="author" content="Evert Meulie"></head>';
sub_filter_once on;
sub_filter_last_modified on;
sub_filter_types *;

try_files $uri $uri/ @rewrite ;
}


This works fine with a testfile: factinfiction.meulie.net/test.html gets the meta-tag added.
However, it does not work on any of the MediaWiki pages, like factinfiction.meulie.net/Main_Page
How do I fix this? I thought sub_filter was the last process code passes through before it gets sent out, and that it would work no matter the application...

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme