06-30-2019, 07:36 AM | #1 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2019
Device: andrid
|
404 error. Server installation and configuration with SSL
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 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. 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> Quote:
Thank you! |
|
06-30-2019, 08:10 AM | #2 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2019
Device: andrid
|
Solution
I found my mistake:
it was necessary to add parameter --url-prefix /calibre to string for server starting . I am sorry for disturbing. But currently i see that page can't be loaded. It is necessary to use https://iconstructor.ru/calibre/mobile page. Why? |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use SSL on Mac running Server | paul55391 | Devices | 3 | 08-13-2017 10:18 PM |
Custom Column on Content Server: 404 Not Found | annekaelber | Calibre | 14 | 04-05-2014 04:39 AM |
Calibre-Server: no pages found (404) in OSX | cdaller | Calibre | 7 | 04-06-2013 03:40 PM |
Touch Kobo/Adobe not working--error 404 when I try to get the pubs--Server down? | tea2 | Kobo Reader | 4 | 07-02-2012 09:02 AM |
SSL and content server | timoco | Calibre | 2 | 04-13-2011 10:42 AM |