-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Not Found error on /login URL #5001
Comments
Hi @RickFr410,
It's probably best to revert that change if it's made no difference since it's better to configure at the web-server level, can add confusion and security considerations. |
Yes, I checked the URL in this variable, it's okay.
It's a test VM, no security risk. I prefer to wait a solution as the public folder contain a .htaccess file. I think the Options directive is concerned by the AllowOverride directive. |
What about Apache mod_rewrite, is that enabled? sudo a2enmod rewrite
sudo systemctl restart apache2.service |
Yes, the mod_rewrite is enabled. I put the phpinfo() result in my first post, below the Apache loaded modules from it :
|
@RickFr410 Okay, can you share the full apache virtualhost config used? |
@ssddanbrown I used the proposed one on the doc (except the AllowOverride I modified). I put it here in few minutes. |
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/BookStack/public
ServerName www.bookstack.local
ServerAlias bookstack.local
<Directory /var/www/html/bookstack/public/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost> |
@RickFr410 In the |
@ssddanbrown Yes, it's Okay. Thanks. |
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
Hello
When I go to the BookStack URL, I have a not Found error when redirects to /login page. I made many searches, no actions made solve the problem. I tried some php artisan commands to clear cache and regenerate permissions
I tried too to replace none by All on the AllowOverride directive.
Exact BookStack Version
v24.05
Log Content
Details
laravel.log file :
Apache access.log file :
Hosting Environment
PHP 8.2.18 - phpinfo.pdf
Debian 12.5
Apache/2.4.59
PHP 8.2.18
The text was updated successfully, but these errors were encountered: