Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running WikiDocs with Hiawatha webserver #203

Open
1 task
PeterB513 opened this issue Nov 1, 2024 · 4 comments
Open
1 task

Running WikiDocs with Hiawatha webserver #203

PeterB513 opened this issue Nov 1, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@PeterB513
Copy link

PeterB513 commented Nov 1, 2024

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

  • I'd like to work on this issue
@PeterB513 PeterB513 added the bug Something isn't working label Nov 1, 2024
@Zavy86
Copy link
Owner

Zavy86 commented Nov 1, 2024 via email

@ffiesta
Copy link
Contributor

ffiesta commented Nov 3, 2024

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
Copy link
Author

PeterB513 commented Nov 3, 2024 via email

@ffiesta
Copy link
Contributor

ffiesta commented Nov 3, 2024

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

  • change RewriteBase from /subfolder/ to / setup on root domain folder.
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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants