Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2019, 07:36 AM   #1
radioagent
Junior Member
radioagent began at the beginning.
 
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
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!
radioagent is offline   Reply With Quote
Old 06-30-2019, 08:10 AM   #2
radioagent
Junior Member
radioagent began at the beginning.
 
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?
radioagent is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:15 PM.


MobileRead.com is a privately owned, operated and funded community.