[LINUX] XBMCbuntu with nginx as proxy on port 80
#1
As I don't like typing hostname plus port all the time, I've installed NGINX as a proxy server running on Port 80.

This allows me to connect to the webui via the normal port 80 and enables me to use advanced HTTP features (GZIP compression, cache etc.)


To get a working installation just log in as root on your xbmcbuntu(ubuntu) machine and run the following commands:

$ apt-get update
$ apt-get upgrade
$ apt-get install nginx-full

Say Yes to the question and after installation finished:

$ touch /etc/nginx/sites-available/xbmc-proxy
$ ln -s /etc/nginx/sites-available/xbmc-proxy /etc/nginx/sites-enabled/xbmc-proxy
$ rm /etc/nginx/sites-enabled/default

then use your editor of to and add the following lines to /etc/nginx/sites-available/xbmc-proxy:

server {
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
}
}

Double check the port and the reboot your machine or restart nginx.


This should be enough to get your web interface on to port 80 without changing the way xbmcbuntu is set up.


In the future I'm going to test if it's possible to use nginx for http compression, caching etc.


Hope that this might help Wink



Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] XBMCbuntu with nginx as proxy on port 800