MarketingMax/content/blog/Setup-nginx-to-point-subdomain-at-port.md

29 lines
445 B
Markdown
Raw Normal View History

2024-02-25 10:10:30 -08:00
---
title: Setup nginx to point subdomain at port
author: Max
tags:
- home server
categories:
- computers
date: 2023-01-01 04:39:00
---
You can setup nginx to point subdomains at specific ports.
Set up your a records
set up nginx
```
server {
server_name blog.maxg.cc www.blog.maxg.cc;
listen 80;
root /data/blog/folder;
index index.html;
}
```
![upload successful](http://blog.maxg.cc/images/pasted-1.png)
OK THEN