Nginx create subdomains

Please i have a domain ttuportal.com on Linode …
I want subdomain such as admissions.ttuportal, records.ttuportal
How do i configure nginx server blocks to serve the subdomains

Only the root domain ttuportal.com is working
Please i need help urgently

1 Reply

Hey there -

We have some great documentation on Nginx that should be able to help you configure server blocks and get your subdomains working.

The first I want to point you to is another post here that discusses server blocks and how to configure them:

How can I serve multiple apps with Nginx?

Next, this guide from our documentation library discusses server blocks in conjunction Nginx name-based virtual hosting. The entire guide is worth reading, but I wanted to point you to the specific section where subdomains are discussed:

Name-Based Virtual Hosting (Nginx)

Finally, here's another post that gives some good examples of Nginx configurations:

How to redirect non-www to www domain in Nginx

I hope this gets you pointed in the right direction!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct