Welcome! Log In Create A New Profile

Advanced

Noob Needs some assistance

Posted by 92merc 
Noob Needs some assistance
June 17, 2020 03:02PM
First off, I'm a total noobie to NGINX. And even worse, I'm a Windows guy. So I'll apologize in advance.

But I have a simple NGINX install on a Windows PC running at home. All I'm currently running it for is a HTTPS proxy server for my Icecast Server. Long story short, it was much easier for me to get some certs setup for my existing broadcast by running the traffic through NGNIX. And it has been working well.

What I would like to do is add a folder I can browse locally on the Windows PC, via HTTPS. I tried and failed at adding a new server item. I'm not sure if I don't have my original setup correctly, or if it's the setup of the new one that is an issue.

This is my config for the HTTPS server currently.

server {
listen 443 ssl;
server_name broadcast.bismarckweather.net;

ssl_certificate cert.crt;
ssl_certificate_key private.crt;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://192.168.1.106:8000/;
root html;
index index.html index.htm;
}

This is what I was trying to add. I have 2 DNS host names pointing to my router. I was hoping the server name would split that out. But I have a local folder in NGINX named IPTL I was hoping to be able to browse to.

server {
listen 443 ssl;
server_name iptl.bismarckweather.net;


ssl_certificate cert.crt;
ssl_certificate_key private.crt;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location /iptl {
root iptl;
index index.html index.htm;
autoindex on;
}
}

So what am I missing, besides a lot of knowledge? Thanks....
Re: Noob Needs some assistance
June 22, 2020 11:31AM
I played around with a test install. I was able to answer all of my questions.

The one weird quirk I did find out is you can't use a virtual folder of /broadcast for some reason. It didn't like that. Once I changed my folder name to /stream, everything started working as planned.

So in short, I've solved all of my issues.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready