Subdirectory Setup setting need to help #1368

Closed
opened 2026-02-05 00:42:46 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @King-GO on GitHub (Sep 17, 2019).

XAMPP for Windows 7.3.4
BookStack Beta v0.27.4

APP_URL=http://localhost/bookstore

Internal Server Error
http://localhost/bookstore/books
http://localhost/bookstore/shelves

Apache Setup

<VirtualHost *:80>

    # BookStack Configuration
    Alias "/bookstore" "C:/xampp/htdocs/bookstore/public"
	
    <Directory "C:/xampp/htdocs/bookstore/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:/xampp/htdocs/bookstore">
      AllowOverride None
      Require all denied
    </Directory>
    # End BookStack Configuration

</VirtualHost>

.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>
    Options +FollowSymLinks
    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]
</IfModule>
Originally created by @King-GO on GitHub (Sep 17, 2019). XAMPP for Windows 7.3.4 BookStack Beta v0.27.4 `APP_URL=http://localhost/bookstore` Internal Server Error http://localhost/bookstore/books http://localhost/bookstore/shelves ### **Apache Setup** ``` <VirtualHost *:80> # BookStack Configuration Alias "/bookstore" "C:/xampp/htdocs/bookstore/public" <Directory "C:/xampp/htdocs/bookstore/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:/xampp/htdocs/bookstore"> AllowOverride None Require all denied </Directory> # End BookStack Configuration </VirtualHost> ``` ### **.htaccess** ``` <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> Options +FollowSymLinks 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] </IfModule> ```
OVERLORD added the 🐕 Support label 2026-02-05 00:42:46 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Sep 21, 2019):

Hi @King-GO,
Sorry to hear you're experiencing issues.
Do you get anything in the server logs when you see the error?
Here's a SO discussion on finding the server logs.

@ssddanbrown commented on GitHub (Sep 21, 2019): Hi @King-GO, Sorry to hear you're experiencing issues. Do you get anything in the server logs when you see the error? [Here's a SO discussion on finding the server logs](https://stackoverflow.com/questions/3719549/where-does-phps-error-log-reside-in-xampp).
Author
Owner

@King-GO commented on GitHub (Sep 26, 2019):

[Thu Sep 26 22:02:29.627200 2019] [core:error] [pid 4824:tid 352] (OS 11001)  : AH00547: Could not resolve host name laravel.dev -- ignoring!
[Thu Sep 26 22:02:29.627200 2019] [ssl:warn] [pid 4824:tid 352] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 26 22:02:29.627200 2019] [ssl:warn] [pid 4824:tid 352] AH01909: elabftw:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 26 22:02:30.454000 2019] [ssl:warn] [pid 4824:tid 352] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 26 22:02:30.454000 2019] [ssl:warn] [pid 4824:tid 352] AH01909: elabftw:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 26 22:02:30.485200 2019] [mpm_winnt:notice] [pid 4824:tid 352] AH00354: Child: Starting 150 worker threads.

I also installed the ftwlab on my local machine, the virtualhost as following,

</VirtualHost>
# https eLabFTW
<VirtualHost 127.0.0.1:443>
    DocumentRoot "C:/xampp/htdocs/elabftw/web"
    ServerName elabftw
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "conf/ssl.key/server.key"
    <Directory "C:/xampp/htdocs/elabftw/web">
        Options All
    	AllowOverride All
    	Require all granted
    </Directory>
</VirtualHost>
@King-GO commented on GitHub (Sep 26, 2019): ``` [Thu Sep 26 22:02:29.627200 2019] [core:error] [pid 4824:tid 352] (OS 11001) : AH00547: Could not resolve host name laravel.dev -- ignoring! [Thu Sep 26 22:02:29.627200 2019] [ssl:warn] [pid 4824:tid 352] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Thu Sep 26 22:02:29.627200 2019] [ssl:warn] [pid 4824:tid 352] AH01909: elabftw:443:0 server certificate does NOT include an ID which matches the server name [Thu Sep 26 22:02:30.454000 2019] [ssl:warn] [pid 4824:tid 352] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Thu Sep 26 22:02:30.454000 2019] [ssl:warn] [pid 4824:tid 352] AH01909: elabftw:443:0 server certificate does NOT include an ID which matches the server name [Thu Sep 26 22:02:30.485200 2019] [mpm_winnt:notice] [pid 4824:tid 352] AH00354: Child: Starting 150 worker threads. ``` I also installed the ftwlab on my local machine, the virtualhost as following, ``` </VirtualHost> # https eLabFTW <VirtualHost 127.0.0.1:443> DocumentRoot "C:/xampp/htdocs/elabftw/web" ServerName elabftw SSLEngine on SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKeyFile "conf/ssl.key/server.key" <Directory "C:/xampp/htdocs/elabftw/web"> Options All AllowOverride All Require all granted </Directory> </VirtualHost> ```
Author
Owner

@ssddanbrown commented on GitHub (May 2, 2021):

Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.

@ssddanbrown commented on GitHub (May 2, 2021): Since the last comment on this issue is relatively old I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1368