Hello!
I tried configure calibre server.
But when i try to connect to server i see 404error
Below i will show all settings.
Web server is virtual machine without GUI. It is Ubuntu Server 18.
Service script:
Code:
[Unit]
Description=calibre content server
After=network.target
[Service]
Type=simple
User=radioagent
Group=radioagent
ExecStart=/opt/calibre/calibre-server "/mnt/wd1/calibre" --enable-auth --log="/home/radioagent/calibre-server.log"
[Install]
WantedBy=multi-user.target
Result of
sudo systemctl status calibre-server
Code:
● calibre-server.service - calibre content server
Loaded: loaded (/etc/systemd/system/calibre-server.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-06-30 14:05:34 MSK; 19min ago
Main PID: 9268 (BonJour)
Tasks: 14 (limit: 3485)
CGroup: /system.slice/calibre-server.service
└─9268 /opt/calibre/bin/calibre-server /mnt/wd1/calibre --enable-auth --log=/home/radioagent/calibre-server.log
июн 30 14:05:34 ubuntu32s systemd[1]: Started calibre content server.
ssl for my main domain is configured and works fine. Main page can be opened without any problem.
I tried to use this manual to configure proxy:
https://manual.calibre-ebook.com/server.html#id11
I turned on proxy and proxy http modules in apache.
And used such site config:
Code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin moskaleviv@gmail.com
DocumentRoot "/var/www/MyDomain"
ServerName MyDomain
ServerAlias *.MyDomain
ErrorLog /var/www/logs/MyDomain.log
CustomLog /var/www/logs/MyDomain.log common
SSLCertificateFile /etc/letsencrypt/live/MyDomain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/MyDomain/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
AllowEncodedSlashes On
RewriteEngine on
RewriteRule ^/calibre/(.*) http://127.0.0.1:8080/calibre/$1 [proxy]
RedirectMatch permanent ^/calibre$ /calibre/
</VirtualHost>
</IfModule>
This is log of apache for MyDomain:
Quote:
109.63.197.82 - - [30/Jun/2019:14:29:11 +0300] "GET /calibre HTTP/1.1" 301 491
109.63.197.82 - - [30/Jun/2019:14:29:11 +0300] "GET /calibre HTTP/1.1" 301 3775
109.63.197.82 - - [30/Jun/2019:14:29:11 +0300] "GET /calibre/ HTTP/1.1" 404 223
|
What is wrong? I am not good in apache configuration

Need your help, friends!
Thank you!