7 languages, 3 pages (What/How/Start), 80-line router, 98KB total.
Features:
- No database, no Composer, no build step — just files on disk
- nginx PHP isolation: only index.php executes
- Bot detection with browser heuristic bypass
- Rate limiting, structured weekly logs, geo-location, Telegram alerts
- Multi-language: Accept-Language auto-detect, nav dropdown
- Article sub-page routing via /start/{slug}
- Apache + Caddy config alternatives documented in Start page
- Sample config — no real keys or secrets
5 lines
1.1 KiB
PHTML
5 lines
1.1 KiB
PHTML
<section class="content-section"><h2 class="section-title">Starten</h2><div class="section-content"><h3>⚠️ Stap 1: Webserver configureren</h3><p><strong>Niet optioneel.</strong> bare-site vereist deze nginx-regels. Kopieer <code>nginx/default.conf</code> — de drie kritieke regels:</p><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.85rem;line-height:1.5;"># 1. ALLEEN index.php mag PHP uitvoeren
|
|
location = /index.php { fastcgi_pass ...; }
|
|
location ~ \.php$ { return 404; }
|
|
# 2. Alles loopt via index.php
|
|
location / { try_files $uri $uri/ /index.php?$query_string; }</pre><h3>2. Bestanden plaatsen</h3><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.9rem;">git clone https://your-repo/bare-site.git /var/www/html/</pre><h3>3. Config</h3><p><code>class/config.php</code> — <code>SITE_NAME</code>, slugs, talen.</p><h3>4. Pagina’s</h3><p><code>.phtml</code>-bestanden in <code>lng/{lang}/</code> — pure HTML.</p><h3>5. Taal</h3><p>Toevoegen aan <code>config.php</code>, directory aanmaken, vertalen. Verschijnt automatisch.</p></div></section>
|