WebFaction
Community site: login faq

I've been going through the BookStack setup from here: https://www.bookstackapp.com/docs/admin/installation/

I've followed it mostly ok, but I don't know what rewrite rules I need (if any). Anyway I've got it set up and I can view the main page, but following any links sends me to a 404 page with the error:

The requested URL /home/WEBFACTIONUSER/webapps/bookstack_public/index.php was not found on this server.

I've got two apps set up: 1. bs_wiki, which is a PHP app with all the actual files inside it 2. bookstack_public, which is a 'symbolic link to a php app'. In the extra info this is pointing at the public dir in the first app (ie. /home/WEBFACTIONUSER/webapps/bs_wiki/BookStack/public )

It looks like the symbolic link is being followed the first time, but following a link (eg. to the BookStack settings page) it seems like it gets confused to what url it's trying to redirect to. The actual url seems correct though (eg. it shows http://wiki.DOMAIN.com/bookstack/public/settings ) and the 404 path exists (if the symbolic link is followed).

I tried adding 'Options +FollowSymLinks' to the .htaccess in the 'public' directory, but that didn't seem to make any difference.

Anyone any hints how to proceed? I'm not really sure where the error is coming from. Thanks.

asked 24 Apr, 12:34

OrangyTang
103
accept rate: 0%


From the top of my head, since it looks like you are serving it from a sub-URL, you are probably missing the RewriteBase directive.

Try adding RewriteBase "/bookstack/public/" right after the RewriteEngine On one in your .htaccess

If that doesn't work, open a ticket for us to look into this further, as it looks like a bit of an unusual deployment and we might need to give it a closer look.

permanent link

answered 24 Apr, 17:20

iliasr ♦♦
2.2k14
accept rate: 34%

edited 24 Apr, 17:21

That seemed to do the trick, thanks!

(24 Apr, 21:48) OrangyTang
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2

question asked: 24 Apr, 12:34

question was seen: 1,184 times

last updated: 24 Apr, 21:48

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM