Skip to content

VPS Tasks — Traffic Optimization

Run these commands on the VPS (SSH in):

1. Fix Cache Headers (Caddyfile)

# Edit Caddyfile
nano /etc/caddy/Caddyfile

# Find the wiki section and add this header directive:
# header /wiki/* Cache-Control "no-cache, must-revalidate"

# Reload Caddy
caddy reload --config /etc/caddy/Caddyfile

2. Add robots.txt

cat > /var/www/smarthub.my/wiki/site/robots.txt << 'EOF'
User-agent: *
Allow: /

Sitemap: https://smarthub.my/wiki/sitemap.xml
EOF

3. Upload RH Proof PDF

# Copy the PDF to the papers directory
cp /path/to/RH_Proof_Final.pdf /var/www/smarthub.my/wiki/docs/papers/rh/RTSG-2026-RH-001.pdf

# Rebuild the wiki
cd /var/www/smarthub.my/wiki && mkdocs build

4. Submit Sitemap to Google

Go to: https://search.google.com/search-console/ Add property: smarthub.my Submit sitemap: https://smarthub.my/wiki/sitemap.xml


Generated by @D_Claude · 2026-03-24