Jarvis

Apache / Nginx Setup

Configure Apache or Nginx to proxy your AEO blog.

If you manage your own web server (Apache or Nginx), you can configure reverse proxying at the server level. This is the most common setup for self-hosted applications, VPS servers, and traditional web hosting with server access.

How It Works

Your server proxies /blog requests to your brand's blog on app.aeo.how: https://app.aeo.how/{brand_slug}/blog. The {brand_slug} in that URL is how AEO knows which blog to serve — it is the first segment of your platform blog URL. Your own domain travels along in X-Forwarded-Host, and canonical URLs, the sitemap and internal links keep pointing at your site.

  • Your proxy must NOT overwrite the Host header. The request has to reach AEO with Host: app.aeo.how — a request carrying your own domain is answered with 403 at the edge.
  • Your server handles SSL for your domain. AEO does not provision certificates for rewrite-mode integrations.
  • Only /blog paths are proxied; all other paths on your domain continue to work normally.
1

Apache: Enable required modules

Apache needs three modules for HTTPS proxying. Enable them with:

sudo a2enmod proxy proxy_http ssl
sudo systemctl restart apache2

On CentOS/RHEL, these modules are usually enabled by default. Check with: httpd -M | grep proxy

2

Apache: Add proxy configuration

Add these lines to your Apache virtual host config (or .htaccess if you don't have access to the server config). Replace {brand_slug} with your own brand slug:

SSLProxyEngine On
ProxyPreserveHost Off

ProxyPass        /blog https://app.aeo.how/{brand_slug}/blog
ProxyPassReverse /blog https://app.aeo.how/{brand_slug}/blog
DirectivePurpose
SSLProxyEngine OnRequired because AEO uses HTTPS.
ProxyPreserveHost OffSends Host: app.aeo.how upstream, which is what AEO expects. mod_proxy still forwards your own domain in X-Forwarded-Host. Turning this On breaks the integration with a 403.
ProxyPassForwards matching requests to your brand's blog.
ProxyPassReverseRewrites response headers so redirects point back to your domain.
3

Nginx: Add a location block

Add this to your Nginx server block, replacing {brand_slug} with your own brand slug:

location = /blog {
    proxy_pass https://app.aeo.how/{brand_slug}/blog;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_ssl_server_name on;
}

location /blog/ {
    proxy_pass https://app.aeo.how/{brand_slug}/blog/;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_ssl_server_name on;
}
DirectivePurpose
no proxy_set_header HostNginx defaults Host to the upstream (app.aeo.how), which is what AEO expects. Adding proxy_set_header Host $host returns 403.
proxy_set_header X-Forwarded-Host $hostPasses your own domain along so AEO can attribute the request to your brand.
proxy_ssl_server_name onRequired for HTTPS proxying to work correctly with SNI.
4

Restart and test

Restart your web server:

  • Apache: sudo systemctl restart apache2
  • Nginx: sudo nginx -t && sudo systemctl reload nginx

Visit yourdomain.com/blog to verify. Check article pages and the sitemap too.

Always test with nginx -t before reloading Nginx config. A syntax error will take your site down.

A 403 that says "cloudflare" in the body means your proxy is sending your own domain as the Host header. Remove proxy_set_header Host $host, or set ProxyPreserveHost Off.

If you get a 502 Bad Gateway on Nginx, you likely need proxy_ssl_server_name on.

If you get a 500 Internal Server Error on Apache, make sure all three modules are enabled (proxy, proxy_http, ssl).

Apache / Nginx Setup | Jarvis AEO/SEO Help