29 lines
445 B
Markdown
29 lines
445 B
Markdown
|
---
|
||
|
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
|