Okay, so fwiw here is what I did to get it to not work reliably under nginx with ubuntu 16.04. This may very likely be very poor practice but for testing (and getting input and corrections from the fine people in this community) here it is
-
Install nginx:
apt-get install nginx -
I had to also create my own self-signed certs. I followed these instructions for that: https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-16-04
-
Install fastcgiwrap (note I am not sure this step was required but I am pretty sure it was. ;))
apt-get install fastcgiwrap -
create a file in /etc/nginx/sites-enabled with the domain name for your host:
nano your_hostname -
In that file you just created enter the following and save the file:
server {
listen 443;
server_name your_hostname;
ssl on;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
root /usr/share/urbackup/www/;
index index.htm;
location ~* {
location /x {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:55413;
}
}
With all of those steps done we are ready to test.
-
Reload and test your configuration:
nginx -s reload -
Open your browser and go to https://your_hostname
-
On the Internet tab of Settings --> General --> Server set == https://your_domainname
Also at “Settings–> General–> Internet” the Internet Server Name to:
your_domainname and port to 55415
- In my environment I don’t want the included http server running at all, so I comment out or remove (e.g prepend with a “#”) the two lines from /etc/default/urbackupsrv
HTTP_SERVER=“true”
and
HTTP_PORT=“55414”
-S