Here's how I did it in TiddlyServer, which mounts TiddlyWiki inside a
NodeJS file server.

https://github.com/Arlen22/TiddlyServer/blob/master/src/datafolder.ts#L235

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

https://tiddlywiki.com/#ServerCommand



On Thu, Mar 15, 2018 at 8:29 PM, Patrick Gardella <[email protected]>
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 <https://wiki.thetelos.com:4433/wiki#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
> <https://groups.google.com/forum/#!msg/tiddlywiki/OzCjV0B7-mc/tsKaNEV9BAAJ;context-place=forum/tiddlywiki>
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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
> <https://groups.google.com/d/msgid/tiddlywiki/eababa42-565f-49a2-acab-778789824d7b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAJ1vdSTwOqN5BUKhYS3N01VwC_1CK4Xbi1Kvaqx0TDNqb3qwgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to