Skip to content

Instantly share code, notes, and snippets.

View nzkozar's full-sized avatar
🏠
Working from home

Anže Kožar nzkozar

🏠
Working from home
  • Slovenia
View GitHub Profile
@nzkozar
nzkozar / nginx_domain_port_split_server_block
Last active June 8, 2020 10:59
A server block configuration for nginx, splitting one domain name into two locations, by listening on different ports
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html/A;
index index.html;
server_name localhost;