Zavy86 / WikiDocs

📗 Just a databaseless markdown flat-file wiki engine
https://www.wikidocs.it
MIT License
300 stars 43 forks source link

Running WikiDocs with Hiawatha webserver #203

Open PeterB513 opened 1 week ago

PeterB513 commented 1 week ago

Describe your issue

Just installed WikiDocs on my webserver running on Hiawatha. I managed to start the site and run the setup. But when I what to sign in to edit and add new documents (to right button) I get an 404 error (not found) on page: https:/xxx/homepage?auth.

Device and settings

RPI4 with Debian Bookworm, PHP8.2 and Hiawatha webserver and Brave.

Steps to reproduce

See the description of the issue. Other websites run on the same webserver, user settings of php and files. I think its an user / settings problem. I only cannot find where. Am I not allowed to run Hiawatha webserver and only use Apache or Nginx? Any suggestions?

Screenshots (optional)

No response

Extra fields

Zavy86 commented 1 week ago

you have to set the rewrite rules like .htaccess file, I don't know how to write it in your web server.. the easy way is to use docker or Apache or nginx

On Fri, 1 Nov 2024, 14:08 PeterB513, @.***> wrote:

Describe your issue

Just installed WikiDocs on my webserver running on Hiawatha. I managed to start the site and run the setup. But when I what to sign in to edit and add new documents (to right button) I get an 404 error (not found) on page: https:/xxx/homepage?auth. Device and settings

RPI4 with Debian Bookworm, PHP8.2 and Hiawatha webserver Steps to reproduce

See the description of the issue. Other websites run on the same webserver, user settings of php and files. I think its an user / settings problem. I only cannot find where. Am I not allowed to run Hiawatha webserver and only use Apache or Nginx? Any suggestions? Screenshots (optional)

No response Extra fields

  • I'd like to work on this issue

— Reply to this email directly, view it on GitHub https://github.com/Zavy86/WikiDocs/issues/203, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPU5Y3DEXO33KPV4P5JKULZ6N4N3AVCNFSM6AAAAABRAHUA4CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZDSMBQGMZTINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ffiesta commented 1 week ago

Hi @PeterB513,

Like @Zavy86 says you need to write RewriteRules, please see https://hiawatha.leisink.net/howto/url_rewrite_rules and try to duplicate htaccess to Hiawatha.

PeterB513 commented 1 week ago

Hallo everybody,Thanks for the info. I give it a try.Op 3 nov 2024 om 10:37 heeft ffiesta @.***> het volgende geschreven: Hi @PeterB513, Like @Zavy86 says you need to write RewriteRules, please see https://hiawatha.leisink.net/howto/url_rewrite_rules and try to duplicate htaccess to Hiawatha.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ffiesta commented 1 week ago

@PeterB513 here a complete copy of a running wikidocs on domain/subfolder

IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /subfolder/
    RewriteCond %{REQUEST_URI} \.md$ [NC]
    RewriteRule ^.*$ /subfolder/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?doc=$1 [NC,L,QSA]
</IfModule>