TiddlyWiki on Node in subfolder?

139 views
Skip to first unread message

Patrick Gardella

unread,
Mar 15, 2018, 8:29:21 AM3/15/18
to TiddlyWiki
Good morning, all!

I'm trying to embed my TiddlyWiki into an existing website, serving it using Node.js and Apache mod_proxy to "embed" it into the site.

I can make it work just fine if it's served as http://tw.example.com, but if I put it into a folder, as in http://tw.example.com/wiki I get error messages when the page comes up "syncer-browser-tiddlyweb - 08:02:04 15 3 2018 XMLHttpRequest error code: 404"

More specifically, it is throwing:
GET https://wiki.thetelos.com:4433/wikistatus 404 (Not Found)

I've tried to change the pathprefix using the server command when starting TiddlyWiki based on the comments on this conversation last year. That results in a 404 on every page, even if I change the ProxyPass URL. And the other two conversations here about using ProxyPass didn't help.

I move it using Apache's mod_proxy:
    ProxyRequests On
    ProxyPass /wiki http://10.0.0.9:8080/
    ProxyPassReverse /wiki http://10.0.0.9:8080/

I'm using Apache on the front end so that I can serve it behind an SSL certificate and use digest authentication to protect it a bit more than the default installation method.

Anyone have any suggestions?  

Thanks!

Patrick

Arlen Beiler

unread,
Mar 16, 2018, 10:30:23 AM3/16/18
to TiddlyWiki
Here's how I did it in TiddlyServer, which mounts TiddlyWiki inside a NodeJS file server.


For a reverse proxy setup like you're describing, the path prefix option is probably what you're looking for.




--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eababa42-565f-49a2-acab-778789824d7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick Gardella

unread,
Mar 16, 2018, 11:11:01 AM3/16/18
to TiddlyWiki
Thanks @Arlen22. I'll take a look at your code to see if I can apply it here.

I tried the path prefix, and got a 404 on every single page when I set it. But I might have done something wrong, so I'll test it again.

Patrick


On Friday, March 16, 2018 at 10:30:23 AM UTC-4, Arlen Beiler wrote:
Here's how I did it in TiddlyServer, which mounts TiddlyWiki inside a NodeJS file server.


For a reverse proxy setup like you're describing, the path prefix option is probably what you're looking for.



On Thu, Mar 15, 2018 at 8:29 PM, Patrick Gardella <pgar...@gmail.com> wrote:
Good morning, all!

I'm trying to embed my TiddlyWiki into an existing website, serving it using Node.js and Apache mod_proxy to "embed" it into the site.

I can make it work just fine if it's served as http://tw.example.com, but if I put it into a folder, as in http://tw.example.com/wiki I get error messages when the page comes up "syncer-browser-tiddlyweb - 08:02:04 15 3 2018 XMLHttpRequest error code: 404"

More specifically, it is throwing:
GET https://wiki.thetelos.com:4433/wikistatus 404 (Not Found)

I've tried to change the pathprefix using the server command when starting TiddlyWiki based on the comments on this conversation last year. That results in a 404 on every page, even if I change the ProxyPass URL. And the other two conversations here about using ProxyPass didn't help.

I move it using Apache's mod_proxy:
    ProxyRequests On
    ProxyPass /wiki http://10.0.0.9:8080/
    ProxyPassReverse /wiki http://10.0.0.9:8080/

I'm using Apache on the front end so that I can serve it behind an SSL certificate and use digest authentication to protect it a bit more than the default installation method.

Anyone have any suggestions?  

Thanks!

Patrick

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages