Windows setup for BookStack #995

Closed
opened 2026-02-04 23:20:51 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @mikebohlen on GitHub (Jan 18, 2019).

Getting 404's for login, everything setup fine and the logs show the rewrite working, cuase I am getting 302's..
10.1.130.152 - - [18/Jan/2019:09:54:59 -0600] "GET /bookstack/ HTTP/1.1" 302 420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
10.1.130.152 - - [18/Jan/2019:09:54:59 -0600] "GET /bookstack/login HTTP/1.1" 404 1065 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
10.1.130.152 - - [18/Jan/2019:10:00:34 -0600] "GET /bookstack/ HTTP/1.1" 302 420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
10.1.130.152 - - [18/Jan/2019:10:00:35 -0600] "GET /bookstack/login HTTP/1.1" 404 1065 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"

Virtual Host config is as follows:
<VirtualHost *:80>
Alias "/bookstack" "c:/DuncanAviation/BookStack/public"

<Directory "c:/DuncanAviation/BookStack/public">
  Options FollowSymlinks
  AllowOverride None
  Require all granted

  RewriteEngine On
  
  # Redirect Trailing Slashes If Not A Folder...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)/$ /$1 [L,R=301]

  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
</Directory>


<Directory "c:/DuncanAviation/BookStack">
  AllowOverride None
  Require all Denied
</Directory>
# End BookStack Configuration

It all looks fine, so not sure why it is having a problem finding the file?

Originally created by @mikebohlen on GitHub (Jan 18, 2019). Getting 404's for login, everything setup fine and the logs show the rewrite working, cuase I am getting 302's.. 10.1.130.152 - - [18/Jan/2019:09:54:59 -0600] "GET /bookstack/ HTTP/1.1" 302 420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" 10.1.130.152 - - [18/Jan/2019:09:54:59 -0600] "GET /bookstack/login HTTP/1.1" 404 1065 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" 10.1.130.152 - - [18/Jan/2019:10:00:34 -0600] "GET /bookstack/ HTTP/1.1" 302 420 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" 10.1.130.152 - - [18/Jan/2019:10:00:35 -0600] "GET /bookstack/login HTTP/1.1" 404 1065 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" Virtual Host config is as follows: <VirtualHost *:80> Alias "/bookstack" "c:/DuncanAviation/BookStack/public" <Directory "c:/DuncanAviation/BookStack/public"> Options FollowSymlinks AllowOverride None Require all granted RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </Directory> <Directory "c:/DuncanAviation/BookStack"> AllowOverride None Require all Denied </Directory> # End BookStack Configuration </VirtualHost> It all looks fine, so not sure why it is having a problem finding the file?
Author
Owner

@mikebohlen commented on GitHub (Jan 18, 2019):

Got it by changing the APP_URL=http://bookstack.danet.local/bookstack to APP_URL=http://bookstack.danet.local .. even though I am subfoldering this with /bookstack

@mikebohlen commented on GitHub (Jan 18, 2019): Got it by changing the APP_URL=http://bookstack.danet.local/bookstack to APP_URL=http://bookstack.danet.local .. even though I am subfoldering this with /bookstack
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#995