chaitin / strapdown-zeta

Instant and elegant Markdown documents in the browser, Git powered markdown wiki server, mathjax and theme support, and many more features!
http://strapdown.ztx.io
Other
166 stars 44 forks source link

How to use strapdown-zeta with apache proxy? #120

Open taohonker opened 6 years ago

taohonker commented 6 years ago

Hi, I tested SZ on my Linux node, which is in the same LAN where my laptop is. I use the latest binary release to start up the wiki:

strapdown-zeta -verbose -addr :8000

and then browse http://host-ip:8000, everything is awesome.

Then I want to serve it as a subfolder /wiki on my apache server. This is my virtual host configuration:

<IfDefine DEFAULT_VHOST>
Listen 80
<VirtualHost *:80>
    ServerName doihpc
    Include /etc/apache2/vhosts.d/default_vhost.include

        ProxyPass "/wiki" "http://localhost:8000/"
        ProxyPassReverse "/wiki" "http://localhost:8000/"
</VirtualHost>
</IfDefine>

After I restart the apache server and browse http://host-ip/wiki, I only get a blank page, but its title on the tab bar is what I set for the wiki.

I'm not familiar with apache settings, so can you friendly help me with this? Or show me a way out?