technikum29 / technikum29-www

The official code repository for the technikum29 website.
http://www.technikum29.de/
4 stars 3 forks source link

Static/Checkout directory overloading should be deprecated #8

Closed svenk closed 4 years ago

svenk commented 4 years ago

In static we currently have the following files still in use:

Old stuff which is no more used: schule, klima-laerm, etc.

Furthermore, per regular mount:

Some perspectives:

svenk commented 4 years ago

The thing is that nginx really can implement the directory overlay setup, but with FastCGI (especially PHP-FPM) it doesn't work well because of confusion about the actual $document_root. With Apache, these problems did not arise since any ModRewrite rules did not interfere with PHP.

What I would be fine with is to deprecate the overlay idea (because it is intransparent, after all) in favour of a 404-tinyurl-like solution, ie having a few well-known aliases, a few 404's either catched by the /lib/404.php handler or even some external one implementing some short URLs or so.

svenk commented 4 years ago

The Answer to this question is basically wontfix. The overlay is gone, instead we have something like

location ~ ^/$|/(de|en|shared|blog|lib|index.php|robotik|favicon.ico|robots.txt|...) {
        root /path/to/checkout;
}

to distinguish the two branches. With some nested location stuff, fastcgi works. The final config will go into repo at https://github.com/technikum29/technikum29-www/tree/master/lib/installation soon.