Skip to main content

Webserver configuration

To setup your advertorial site hosting, use the Advertorial Hosting tab of website's settings.

You have three options for at your disposal:

  1. Default Contimo-domain, that is intendent only for temporary use until you setup proper hosting
  2. "Virtual folder" on your website

"Virtual folder" configuration

In the Contimo UI, you need to enter a path, e.g. advertorials and you will see the distination URL and Contimo token. You need to configure your webserver to proxy all requests that are coming to the virtual folder to the provided Contimo URL. For instance, you have pub-a.com website and you choose to go with advertorials as a virtual folder for advertorials content. Contimo generated https://advertorials.contimo.app/websites/63ac46935c83c5212576f699/ as an advertorial URL. Imagine your website receives a request https://pub-a.com/advertorials/SOMETHING, then your webserver needs to proxy this request to https://advertorials.contimo.app/websites/63ac46935c83c5212576f699/SOMETHING.

Such configuration is possible on webserver configuration level or CDN, if you use one.

Webserver configuration guides:

Your development team must implement this rule and ensure it works locally before going live. To test implementation, they need to visit the /test-contimo-integration page, like http://localhost/advertorials/test-contimo-integration. When your websites configuration is updated, you need to test if routes correctly by visiting test page, like https://example.com/advertorials/test-contimo-integration.

warning

Only after you tested "virtual folder" on your production website, you can save your new settings on the Advertorial Hosting tab.