Landing Page

AI-generated summary

The discussion revolves around creating a Landing Page on the same server as a Discourse forum. The original poster, vifyirusti, seeks help in setting up a landing page with HTML, CSS, and JS, but has limited knowledge of Ngix and Docker.

vifyirusti initially considers hosting the landing page on a separate server, but finds it too costly. pfaffman suggests using a second server with a different subdomain or configuring Discourse to coexist with existing Apache or Nginx sites.

vifyirusti then proposes hosting the landing page as a specific page within the Discourse domain (e.g., discourse.domain.com/specific_page.html). Canapin advises against this approach due to the potential complexity of integrating custom HTML, CSS, and JS with Discourse.

Canapin suggests two alternatives: hosting the website on a different server or running another web server alongside Discourse on the same machine. Canapin provides links to relevant documentation and proposes affordable hosting options, including a low-cost plan from OVH.

I don’t know how to do this. I searched a lot but couldn’t find it.

discourse.domain.com >> Discourse Forum >> I did this.

domain.com >> HTML CSS JS Landing Page >> I don’t know how to do this.

My knowledge of Ngix and docker is limited. I’m waiting for your help.

Respects.

Are you asking for support for something that is outside of Discourse? Your question is a little unclear. Can you elaborate?

The recommended solution is typically to make your landing page on another server (and use www subdomain). If you want to run both on the same server you can look at Set up Discourse on a server with existing Apache sites. There is a similar topic for nginx. Both assume that you know how to create your html landing page.

Thank you for your help, sir.

Respects.

In fact, a second server can be costly. So I am looking for a different solution.

Is it possible for me to implement a solution like the example below?

discourse.domain.com/specific_page.html

Could you detail what would be the purpose of this page, and what it would contain? You mention an HTML page, so it would be static, which can make things easier…

You could have a look at Page Publishing, or make use of CSS to remove unused elements from a page to make it appear as different from your Discourse forum, for example based on this: Page Publishing - #145 by denvergeeks

Hello,
I can share a static html page as an example.

I want to add a page like this. This is my aim. Some html, some css, some js. That’s all.

Respects.

Though you could find some workarounds like my examples to have a page that differs from your Discourse’s appearance, making it look like it doesn’t belong to Discourse, the JS part would be tricky.

I think the most proper way would be either to have a web server along Discourse on your server. There’s documentation about this:

Or to host your website on a different server, which is much easier. A low-specs, cheap one would perfectly do the job.

You can find such hosting plans at about 2$/month. You can even have a free 100 MB plan on OVH, but I think the domain must be registered on their site.