Hi All!
I am trying to install Icecast2 on an Ubuntu 24.04 server running Hestia (Oracle Cloud). I have several domains installed and I plan to use one of those domains for Icecast.
I tried the default Icecast installation from here but when I set the nginx configuration it broke everything and I got a “421 Misdirect” error. I managed to fix that error (based on this post) and all sites work OK again.
Does anyone managed to install Icecast successfully? Please let me know how I can do that.
Specifically, the problem I have is changing the nginx configurations as per the following instructions:
Step 2 – Configure Nginx as a Reverse Proxy for Icecast
Next, you will need to install and configure Nginx as a reverse proxy to access Icecast.
First, install the Nginx server with the following command:
apt-get install nginx -y
Once installed, create an Nginx virtual host configuration file:
nano /etc/nginx/sites-available/icecast.conf
Add the following lines:
server {
listen 80;
listen [::]:80;
server_name icecast.example.com;
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;
location / { proxy_pass http://localhost:8000; } }
Save and close the file, then enable the virtual host with the following command:
ln -s /etc/nginx/sites-available/icecast.conf /etc/nginx/sites-enabled/
Next, you will also need to set hash bucket size in Nginx main configuration file:
nano /etc/nginx/nginx.conf
Add the following line inside http {:
server_names_hash_bucket_size 64;
Save and close the file, then restart the Nginx service to apply the changes:
systemctl restart nginx
Thank you!
Chris