Hi,
I searched the internet and this forum and I’m no wiser. So, once again, I’ve come to ask for help.
I have newest DietPi v8.0.2, running Nextcloud, Pi-Hole, Apache2 and some other unrelated software.
I wanted to give Vaultwarden a try, but am not able to make it work with my LetsEncrypt certificate.
My goal is have it available on https://niaz.site:8001, for external use with apps. I don’t need or want any redirects, just working it on exactly that address.
After installation of VW I tried it’s functionality with selfsigned certificate, everything was fine.
So I commented Rocket stuff in /mnt/dietpi_userdata/vaultwarden/vaultwarden.env and added to /etc/apache2/sites-available/000-default-le-ssl.conf this:
<VirtualHost *:8001>
ServerName niaz.site
DocumentRoot /mnt/dietpi_userdata/vaultwarden/web-vault
ErrorLog ${APACHE_LOG_DIR}/bitwarden-error.log
#CustomLog ${APACHE_LOG_DIR}/bitwarden-access.log combined
SSLCertificateFile /etc/letsencrypt/live/niaz.site/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/niaz.site/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
This gave me Forbidden You don’t have permission to access this resource. page. So I added to /etc/apache2/apache2.conf this:
<Directory /mnt/dietpi_userdata/vaultwarden/web-vault>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Now the VW page is nicely available, but can’t connect to the account I made before. When I try to log in I get red notification:
An error has occurred. An unexpected error has occurred.
When I try to make a new account on this config, I get red notification stating:
An error has occurred.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> <hr> <address>Apache/2.4.52 (Debian) Server at 10.11.0.100 Port 8001</address> </body></html>
Can you please help me figure out, where I screwed up?