requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Reverse proxy using apache2 (httpd) does not allow creation of pages #233

Open o-k-a-y opened 5 years ago

o-k-a-y commented 5 years ago

I'm trying to run wikijs on wiki.domain.com but am encountering errors when running and attempting to create/update my home page.

When I run the page, it seems incomplete to begin with (broken images, broken links). If i go to wiki.domain.com:3000/create/home, I get as html

DiscardSave Document
<!-- TITLE: Home -->
<!-- SUBTITLE: A quick summary of Home -->

# Header
Powered by Wiki.js.

    Home
    Return to top

The DiscardSave I'm assuming are supposed to be two separate buttons but it's just one html string I can't click or do anything with.

In my config.yml for wikijs I have

host: 'localhost'
port: 3000

My apache2 conf for subdomain

<VirtualHost *:80>

        ServerName wiki.craftmine.org
        ServerAlias www.wiki.domain.com

        ServerAdmin webmaster@localhost
        #referring the user to the recipes application
        DocumentRoot /var/www/html/wiki

         <Directory /var/www/html/wiki/public>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # Uncomment this directive is you want to see apache2's
                # default start page (in /apache2-default) when you go to /
                #RedirectMatch ^/$ /apache2-default/
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        ProxyRequests on
        ProxyPass / http://localhost:3000
</VirtualHost>