Redirect sudfolder to subdomain with Nginx

I have 2 sites running on my server at the moment and they both have different config files. For one domain, I'd like to make a subdomain for it. I'd like to use the files from a subfolder though. Is it possible to create a subdomain with nginx and redirect it to the subfolder? If not, what would be the best way to create subdomains with nginx?

0 Replies

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