mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-08 03:09:39 +03:00
Redirect to /login leads to Not Found #1265
Closed
opened 2026-02-05 00:26:27 +03:00 by OVERLORD
·
15 comments
No Branch/Tag Specified
development
further_theme_development
l10n_development
release
llm_only
vectors
v25-11
docker_env
drawio_rendering
user_permissions
ldap_host_failover
svg_image
prosemirror
captcha_example
fix/video-export
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
pull-request
Mirrored from GitHub Pull Request
No Label
🐕 Support
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#1265
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Fuuzz on GitHub (Jul 17, 2019).
Hello, just installed the app on my Centos 7 VPS as explained on https://www.bookstackapp.com/docs/admin/installation/.
Installation seems completed successfully, but when reaching the website it redirects to domain.com/login, and shows a "Not Found" error page.
A phpinfo.php file in the /public folder is opened correctly, so DNS resolution and DocumentRoot setting are fine.
The mod_rewrite module is enabled, /storage folder has apache as user.
No /login folder in the /public folder.
Ask me, and I'll provide any other necessary information for troubleshooting.
Thank you in advance :)
@ssddanbrown commented on GitHub (Jul 18, 2019):
Hi @Fuuzz,
Sorry to hear you are having issues.
So I assume you're using Apache?
Have you added BookStack as it's own virtualhost in Apache?
If so are the re-write rules in the virtualhost block or are you instead using the rewrite rules .htaccess file?
If using the .htaccess file, have you done anything to enable use of these? (I think they are disabled by default on many systems for security).
@Fuuzz commented on GitHub (Jul 18, 2019):
Hello @ssddanbrown, thank you for the reply.
Yes, i forgot to specify I'm using Apache.
Just to understand, what do you mean with the virtualhost for Bookstack?
I tried both using and removing the .htaccess file in the /public folder, and while i verified that the .htaccess file is indeed working, there is no difference whether the .htaccess file is present in the public folder or not.
To be sure, there should be a /login folder inside /public, or it's a redirection? Because i actually see no /login folder in /public.
Thank you in advance :)
@ssddanbrown commented on GitHub (Jul 18, 2019):
There's no
/loginfolder, All requests are routed throughpublic/index.phpwhich is what the redirects enable.In regards to a VirtualHost, With apache you'd often define a virtualhost block in the apache config files, something like this:
@Fuuzz commented on GitHub (Jul 18, 2019):
Thank you for the reply!
My virtualhost was not set like this, only contained the main virtualhost instructions.
I tried to copy the block content, restarted the httpd service, but I don't see any notable change in the redirection, still showing "404 Not Found".
Error display on the .env file is set, i solved some error messages, but right now it doesn't seems like there is any error in processing the files.
@ssddanbrown commented on GitHub (Jul 19, 2019):
I'm not really familiar with CentOS but I wanted a minecraft server so have set up a little VPS and am using CentOS to learn the OS a little better. I'll have a play at the weekend with BookStack and apache on it and see if I can put together some steps or a quick guide.
@Fuuzz commented on GitHub (Jul 19, 2019):
Sounds nice, let me know if you encounter this issue or you think of a possible solution!
If you need any other log or info on the configuration i set just ask, i'll try to find out other ways to workaround the problem in the meanwhile.
@ssddanbrown commented on GitHub (Jul 20, 2019):
@Fuuzz I've now created a CentOS 7 installation script which can be found here:
https://github.com/BookStackApp/devops/blob/master/scripts/installation-centos-7.sh
I've tested this on a virtual machine. Note that this is designed for a fresh instance only since it performs full system setup for BookStack but hopefully there are bits you can use.
The Apache virtualhost setup is this part:
c85b867acb/scripts/installation-centos-7.sh (L79-L125)If you're not running the whole script, you'll need to change the
ServerNameparameter to be your domain name for BookStack (eg.docs.example.com).Let me know if that helps or if you run into any other issues.
@Fuuzz commented on GitHub (Jul 23, 2019):
Hello @ssddanbrown, thank you for taking it this far :)
After checking and messing around a bit, i found out there was a wrong line on the .conf file for my domain in Apache folder, and it was messing up everything.
Just a quick, last question, dunno if 'm blind or dumb, but I don't find where logins credentials for my panel are stored, and how to set new login infos; I didn't manage to find anything about this at https://www.bookstackapp.com/docs/.
Thank you again :)
@ssddanbrown commented on GitHub (Aug 3, 2019):
@Fuuzz Glad to hear you got things working! Will close this off then.
Not really sure what's meant by this. The default admin user account is
admin@admin.comwith a password ofpassword. Obviously this should be changed after first logging in.New users can be created in the "Settings" > "Users" area when logged in via the admin account.
@sivarajkumar237 commented on GitHub (Jun 11, 2021):
May I know what is the name of .conf file you modified in Apache folder?
@Fuuzz commented on GitHub (Jun 25, 2021):
Hi, the .conf file was the one for the domain I installed bookstack on, like
domain.confin domain folder in var/www.@Glaiverion commented on GitHub (Oct 15, 2024):
Hello im using windows 10 and xampp, and im having the same issues
where do i copy paste this virtual host script? thanks
@ssddanbrown commented on GitHub (Oct 15, 2024):
@Fuuzz You'd need to alter the config for Windows use. I have a guide for XAMPP/Windows use here: https://www.youtube.com/watch?v=_v-4BhVz7OI
@drgdiegoruiz commented on GitHub (Oct 12, 2025):
Hello.
Hope this message is helpfull to someone.
I was performing manual installation on Ubuntu 25_04 and faced the "404 Not Found" on the /login page.
I found that with the provided config you have to enable apache module rewrite.
sudo a2enmod rewritesudo systemctl restart apache2I didn't find mention to this step on the installation document and i believe it could be usefull.
Regards
@ssddanbrown commented on GitHub (Oct 13, 2025):
Thanks @drgdiegoruiz, I've updated that example config to mention the need for mod_rewrite as hint.