View Single Post
Old 12-05-2015, 03:33 AM   #5
josh.p.23
Member
josh.p.23 began at the beginning.
 
josh.p.23's Avatar
 
Posts: 18
Karma: 12
Join Date: Aug 2013
Device: android kindle app, FB Reader, several tablets
Solved

I got it to work by making a universal vhost alias for ./well-known like this

Code:
Alias /.well-known /var/www/LEwebroot/.well-known
<Directory /var/www/LEwebroot/.well-known>
    Options FollowSymlinks
    AllowOverride All
    Order allow,deny
    Require all granted
</Directory>
while having calibre-server running like so in apache

Code:
<VirtualHost *:80>
	ServerName my.vhost.com
	RewriteEngine on
### For letsencrypt ###
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^/(.*) http://another.path.to.the.alias.com/$1 [P]
### Letsencrypt fin ###
	RewriteRule ^(.*) http://localhost:8080/$1 [proxy]
	RewriteRule ^ http://localhost:8080 [proxy]
	SetEnv force-proxy-request-1.0 1
	SetEnv proxy-nokeepalive 1
</VirtualHost>
I hit my rate limit testing so I cannot verify this, but the script made it past the url auth step, huzzah.


EDIT: Nevermind. That breaks the server

Last edited by josh.p.23; 12-05-2015 at 03:44 AM.
josh.p.23 is offline   Reply With Quote