Hi
I'm trying to get a new RatticDB setup working. I've followed all the instructions and everything seems to be fine up to point when I try to reach the installation in my browser. I've setup Rattic to live under a folder and not in the root of the webserver because I need to integrate it with rest of our websites setup. The link it
http://ip-of-server/password/ SSL will be added by our haproxy setup in the DMZ, so don't worry about that. But when I go the URL I get a 404 error (see attached selection_053.png). When I enable debug in the RatticDB config I get this explanation about the error:
Using the URLconf defined in ratticweb.urls,
Django tried these URL patterns, in this order:
-
^password/
-
^password\/static\/(?P<path>.*)$
The current URL, , didn't match any of these.
You're seeing this error because you have DEBUG = True in
your Django settings file. Change that to False, and Django
will display a standard 404 page.
Does anyone have an idea what I'm missing here? This my local.cfg file:
[ratticweb]
debug = False
#debug = True
secretkey = <my key>
hostname = <ip-of-server>
timezone = Europe/Brussels
urlroot = /password/
[filepaths]
static = /var/www/html/password/static
[database]
engine = django.db.backends.postgresql_psycopg2
name = rattic
user = <db username>
password = <db password>
host = 127.0.0.1
port = 5432
[email]
from_email = <our default system email address>
And this is my rattic.conf part of the apache config:
Alias /password/robots.txt /var/www/html/password/static/robots.txt
Alias /password/favicon.ico /var/www/html/password/static/favicon.ico
AliasMatch ^/password/([^/]*\.css) /var/www/html/password/static/styles/$1
Alias /password/media/ /var/www/html/password/media/
Alias /password/static/ /var/www/html/password/static/
<Directory /var/www/html/password/static>
#Order deny,allow
#Allow from all
Require all granted
</Directory>
<Directory /var/www/html/password/media>
#Order deny,allow
#Allow from all
Require all granted
</Directory>
#WSGISocketPrefix run/wsgi
WSGIScriptAlias /password/ /var/www/html/password/ratticweb/wsgi.py
WSGIPassAuthorization On
WSGIDaemonProcess rattic processes=2 threads=25 home=/var/www/html/password/ python-path=/var/www/html/password display-name=%{GROUP}
WSGIProcessGroup rattic
<Directory /var/www/html/password/ratticweb>
<Files wsgi.py>
#Order deny,allow
#Allow from all
Require all granted
</Files>
</Directory>
This is all running on a Centos 7 (fully up to date) setup with Postgresql as backend. SELinux is also enabled, but I don't see anything in the audit logs so I don' t think the problem is there. All the rest of the setup instructions and commands finished ok.
Does anyway have an idea what is wrong here?
Thanks,
Tim