域名与子域名

Hey y’all,

tl;dr at the end

I couldn’t find a similar question in the forums so I’m creating a new topic. If this question’s already been answered, apologies!

I am planning to start a forum using discourse but I am a newb when it comes to server-side stuff and have never set-up a website on a server before.

I’d like to know where I should put the files for my main site (www.example.com) once I have discourse (forum.example.com) up and running.

  1. What will the file structure look like after discourse is installed?
  2. What should it look like when it’s set-up in the above way?
  3. Do I need to make any changes in the domain settings tab (A record, etc.) for this to work? (I don’t think so, but I’m not sure)
    3.a. If so, what do I need to do?

I am planning to follow the 30 min install guide to get discourse installed on a $5 Digital Ocean droplet first and then upload my files for the main site.

TL;DR :

  • I own a domain and want my main site on it - www.example.com
  • Discourse will be on forum.example.com
  • I will be using DO and setting up discourse first.
  • What will the file structure look like when I setup discourse on the server and where do I put the files for my main site, for it to work correctly?
2 个赞

Your website and discourse will not be on the same server.

Forum.website will point to DO and www.website will point to your web hosting.

You would need to create an A Record for forum to the DO IP address

2 个赞

Can I not host my website on the server as well?

1 个赞

It’s a more advanced setup. You will have to follow this:

2 个赞

Yep, that’s definitely more advanced lol.

Ok, I’ll get back to this when I have a bit more experience.

Thanks for your help Gavin!

2 个赞

Like he said, you want to follow the standard install instructions on another server. Digital ocean is recommended because it’s easy.

1 个赞

Digital Ocean

1 个赞

Thanks! Usually Jeff edits my typos. Too bad you can’t!

Yep, that’s what I plan to do!

I’m going to keep coming back to ask questions tho. Thanks y’all!