Not sure if proper category, but I need some help/support with this.
So, I self-host my forums on a VPS. I have my own domain name. I use an A record already so that forums.mysite.com
points to my VPS’ IP. The forums page I want to use is forums.mysite.com/landing
so I would like when people visit mysite.com
it will just take them to the forums page I want automatically as quick as possible.
What is the best approach here? Wasn’t sure if I should do some DNS stuff with A
or CNAME
records, somehow maybe move forums.mysite.com/landing
to just somehow be mysite.com
now, etc.
@Lilly Would it be possible to move the forums entirely to the base domain name? So that mysite.com
would just be the forums?
Also, I already have an A record that points to my VPS’ IP, where the forums are hosted. So do I now forward my base domain’s URL to that IP or keep it as forums.mysite.com
? I’d mostly likely just CNAME my mysite.com
to the A record of forums.mysite.com
, right?
Is this correctly done? I want to forward mysite.me
to forums.mysite.me/landing
after_web_config:
- replace:
filename: /etc/nginx/nginx.conf
from: /sendfile.+on;/
to: |
server_names_hash_bucket_size 64;
sendfile on;
- file:
path: /etc/nginx/conf.d/forumsredirect.conf
contents: |
server {
listen 80;
server_name mysite.me;
return 301 $scheme://forums.mysite.me/landing$request_uri;
}