Use a reverse proxy with urbackup and apache

Hi all

Sorry to come with a question for my first post, so first at all, I want to thank the community for the work and the commitments here.

I’m working for an integration of urbackup in a linux distro called NethServer and for this purpose I would do a reverse proxy in apache. It is more easier to recall a name instead of a port number.

I want to reach urbackup by IPNUMBER/urbackup instead of IPNUMBER:55414

The linux target is Centos6 and the web server runs with apache. My issue is that I have searched with Google, but without (too much) solutions back.

I did an apache conf in /etc/httpd/conf.d/urbackup.conf

[root@nethserver-dev ~]# cat /etc/httpd/conf.d/urbackup.conf 
ProxyPass /urbackup http://127.0.0.1:55414
ProxyPassReverse /urbackup http://127.0.0.1:55414

<Location /urbackup>
Options FollowSymLinks
AuthName "urbackup"
order deny,allow
deny from all
allow from 127.0.0.1 192.168.12.0/255.255.255.0
Satisfy all
</Location>

the reverse proxy works, because I have a page with the version of urbackup (1.4.14), the word ‘loading…’ and the link ‘About UrBackup’…but nothing more

My problem is that I have a lot of ‘File does not exist’ error in the apache log

[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/indicator.gif, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/datatable.css, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jquery.jqplot.min.css, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/layout.css, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jquery.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dataTables.colVis.min.css, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dataTables.tableTools.min.css, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dataTables.tableTools.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jquery.dataTables.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dataTables.colVis.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dust-full.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jquery.jqplot.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.pieRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.barRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.dateAxisRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/urbackup_functions.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/templates.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/default_user_rights.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.highlighter.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/md5.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/urbackup.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dataTables.tableTools.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/translation.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/tabber-minimized.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/dust-full.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jquery.jqplot.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.pieRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.barRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.barRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.dateAxisRenderer.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/jqplot.highlighter.min.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:19 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/templates.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/urbackup_functions.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/default_user_rights.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/urbackup.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/md5.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/translation.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/tabber-minimized.js, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/indicator.gif, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/header.png, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/favicon.ico
[Mon Apr 25 03:40:20 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/favicon.ico
[Mon Apr 25 03:40:30 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/indicator.gif, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:30 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/indicator.gif, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:40:30 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/header.png, referer: https://192.168.12.194/urbackup
[Mon Apr 25 03:49:35 2016] [error] [client 192.168.12.25] File does not exist: /var/www/html/layout.css, referer: http://192.168.12.194/urbackup

of course when I go to http://IPNUMBER:55414 all is workable…So I would know if you have some workable examples/solutions of reverse proxy with apache.

thanks in advance

I am always serving the www files directly with apache and then connecting the server with FastCGI. See here how to do this: https://www.urbackup.org/administration_manual.html#x1-210004.2.1

(That way you can turn of the http server)

1 Like

Many thank for your answer, but I wasn’t able to use urbackup with FastCGI, I do not know why…I use centos6 and apache22.

Anyway I solved my reverse proxy problem

vim /etc/httpd/conf.d/urbackup.conf

and paste

ProxyPass /urbackup http://127.0.0.1:55414
ProxyPassReverse /urbackup http://127.0.0.1:55414

<Location /urbackup>
AuthName "urbackup"
order deny,allow
deny from all
allow from 127.0.0.1 192.168.12.0/255.255.255.0
</Location>

then go to http://IP_NUMBER/urbackup/ (the / at the end is a mandatory)
I hope that it can help