Quote:
Originally Posted by HG2S
|
I've changed the streampath_1 in sc_serv.conf:
code:
streampath_1=localhost
Then I've created a server block and this is the server block config file contents:
code:
server {
listen myipaddress:80;
root serverblockfolder/html;
index index.html index.htm index.nginx-debian.html;
server_name mydomain.com www.mydomain.com;
location / {
try_files $uri $uri/ =404;
}
location /stream {
proxy_pass http://myipaddress:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Protocol $scheme;
access_log logfolder/stream.log;
}
}
Now when I open this address:
mydomain.com/stream
I get this error in console(in error "Unknown_IP_was_here" is an IP that I don't know. it's not my adsl IP address or my server IP address):
code:
[DST Unknown_IP_was_here:45702 (xff) sid=1] HTTP client connection rejected. Stream not available as there is no source connected. Agent: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36'
Please tell me what's wrong and how can I access the Shoutcast admin area.
Thanks