Skip to content

How to configure remark42 without a subdomain

Umputun edited this page Nov 6, 2019 · 2 revisions

All README examples show configurations with remark42 on its own subdomain, i.e. However, it is possible and sometimes desirable to run remark42 without a subdomain, but just under some path, i.e.

  • The nginx.conf would then look something like:
  location /remark42/ {
    rewrite /remark42/(.*) /$1 break;
    proxy_pass http://remark42:8080/; // use internal docker name of remark42 container for proxy
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  • The frontend URL looks like this: s.src = ';

  • The backend REMARK_URL parameter will be

  • And you also need to slightly modify the callback URL for the social media login API's:

    • Facebook Valid OAuth Redirect URIs:
    • Google Authorized redirect URIs:
    • Github Authorised callback URL:
You can’t perform that action at this time.