On Fri, 13 Nov 2015, Jori Mantysalo wrote:
RewriteRule ^(.*)$ http://localhost:1234/$1 [P]
Now I was able to delete this and everything almost work.
I have static documentation available without login at port 80. Server is
at 443 so that Sage listens port 8000 and Apache configuration have
ProxyPass http://localhost:8000/
ProxyPassReverse http://localhost:8000/
However, login sent user to http root, not to https root, and so does new
worksheet. So I have on non-sssl configuration
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/documentation
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/index.html$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
But basically we need SITE_ROOT as a configuration for the notebook.
* * *
Btw, see http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
Context: server config, virtual host, directory
vs.
Note: This directive cannot be used within a <Directory> context.
--
Jori Mäntysalo