SSL Support #233

Closed
opened 2026-02-04 17:49:57 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @ciehanski on GitHub (Jan 15, 2017).

Hey guys, as the title says I would love SSL support. I'm currently running BookStack behind a nginx reverse proxy but when I force it to https the page loads incorrectly and I get a "Mixed Content" issue when inspecting the elements. I have linked a picture of what it looks like when served over https.
https://imgur.com/a/AnGXg

Originally created by @ciehanski on GitHub (Jan 15, 2017). Hey guys, as the title says I would love SSL support. I'm currently running BookStack behind a nginx reverse proxy but when I force it to https the page loads incorrectly and I get a "Mixed Content" issue when inspecting the elements. I have linked a picture of what it looks like when served over https. https://imgur.com/a/AnGXg
OVERLORD added the 🐕 Support label 2026-02-04 17:49:57 +03:00
Author
Owner

@lommes commented on GitHub (Jan 15, 2017):

I use BookStack with Apache and forced SSL without any issues.

Maybe a php artisan cache:clear may help?

@lommes commented on GitHub (Jan 15, 2017): I use BookStack with Apache and forced SSL without any issues. Maybe a `php artisan cache:clear` may help?
Author
Owner

@ssddanbrown commented on GitHub (Jan 15, 2017):

Hi @moonjazzz, Sorry to hear you're having issues with SSL and BookStack.

One thing to check is the APP_URL parameter in the .env file. Double check this value and ensure it is your domain and that it starts with 'https'. If not default, BookStack uses this as the base url for all content so forcing it to your URL may help.

If that does not work press F12 to bring up browser development tools, Click the 'console' table and refresh the page. Warnings should pop up in there about what requests are insecure.

@ssddanbrown commented on GitHub (Jan 15, 2017): Hi @moonjazzz, Sorry to hear you're having issues with SSL and BookStack. One thing to check is the `APP_URL` parameter in the `.env` file. Double check this value and ensure it is your domain and that it starts with 'https'. If not default, BookStack uses this as the base url for all content so forcing it to your URL may help. If that does not work press `F12` to bring up browser development tools, Click the 'console' table and refresh the page. Warnings should pop up in there about what requests are insecure.
Author
Owner

@ciehanski commented on GitHub (Jan 15, 2017):

Hey @ssddanbrown, that seemed to do the trick, we're running smooth as butter over here now! Thanks for the help!

@ciehanski commented on GitHub (Jan 15, 2017): Hey @ssddanbrown, that seemed to do the trick, we're running smooth as butter over here now! Thanks for the help!
Author
Owner

@ssddanbrown commented on GitHub (Jan 15, 2017):

@moonjazzz Awesome! Glad to hear it's now working 😃

@ssddanbrown commented on GitHub (Jan 15, 2017): @moonjazzz Awesome! Glad to hear it's now working 😃
Author
Owner

@Nedimko123 commented on GitHub (Jun 25, 2019):

Hey guys,

I love BookStack, but I just couldn't make it work on the SSL mode.
I installed BookStack via the official script for auto-installing it. So it runs on Apache. When I edited 000-default.conf to the bookstack location it still displayed the same Apache2 Ubuntu Default Page.
We're running it on Ubuntu 18.04 and we have the Cloudflare SSL.

Any help would be highly appreciated.

Thanks and cheers,
Nedim.

@Nedimko123 commented on GitHub (Jun 25, 2019): Hey guys, I love BookStack, but I just couldn't make it work on the SSL mode. I installed BookStack via the official script for auto-installing it. So it runs on Apache. When I edited 000-default.conf to the bookstack location it still displayed the same Apache2 Ubuntu Default Page. We're running it on Ubuntu 18.04 and we have the Cloudflare SSL. Any help would be highly appreciated. Thanks and cheers, Nedim.
Author
Owner

@ssddanbrown commented on GitHub (Jun 25, 2019):

Hi @Nedimko123,
Did BookStack work on standard HTTP after the install script?
The install script adds a apache config file at /etc/apache2/sites-available/bookstack.conf. This would generally be used instead of 000-default.conf.

By the way, Might be worth opening a new GitHub issue here to deal with your specific issue since it's hard to keep tabs on an old closed issue such as this.

@ssddanbrown commented on GitHub (Jun 25, 2019): Hi @Nedimko123, Did BookStack work on standard HTTP after the install script? The install script adds a apache config file at `/etc/apache2/sites-available/bookstack.conf`. This would generally be used instead of `000-default.conf`. By the way, Might be worth opening a new GitHub issue here to deal with your specific issue since it's hard to keep tabs on an old closed issue such as this.
Author
Owner

@Nedimko123 commented on GitHub (Jun 26, 2019):

Hey @ssddanbrown,

Yes, it did work and it still works. Any idea how to edit it in the bookstack.conf, I've tried
`Listen 443 http
Listen 80
NameVirtualHost *:80
NameVirtualHost *:443
ServerName *:80

<VirtualHost *:443>
ServerName docs.mni.me
ServerAdmin webmaster@localhost
DocumentRoot /var/www/bookstack/public/
SSLEngine on
SSLCertificateFile /Users/myusername/certs/server.crt
SSLCertificateKeyFile /Users/myusername/certs/server.key

<VirtualHost *:80>
SSLEngine off
ServerName docs.mni.me
ServerAdmin webmaster@localhost
DocumentRoot /var/www/bookstack/public/
`

But, then I cannot start the apache server. Any tips on how to enable SSL?

Thanks.

@Nedimko123 commented on GitHub (Jun 26, 2019): Hey @ssddanbrown, Yes, it did work and it still works. Any idea how to edit it in the bookstack.conf, I've tried `Listen 443 http Listen 80 NameVirtualHost *:80 NameVirtualHost *:443 ServerName *:80 <VirtualHost *:443> ServerName docs.mni.me ServerAdmin webmaster@localhost DocumentRoot /var/www/bookstack/public/ SSLEngine on SSLCertificateFile /Users/myusername/certs/server.crt SSLCertificateKeyFile /Users/myusername/certs/server.key </VirtualHost> <VirtualHost *:80> SSLEngine off ServerName docs.mni.me ServerAdmin webmaster@localhost DocumentRoot /var/www/bookstack/public/ </VirtualHost>` But, then I cannot start the apache server. Any tips on how to enable SSL? Thanks.
Author
Owner

@mikulabc commented on GitHub (Jul 2, 2019):

I think it would be a good idea if we open a new ticket @Nedimko123

On Wed, Jun 26, 2019 at 8:08 AM Nedimko123 notifications@github.com wrote:

Hey @ssddanbrown https://github.com/ssddanbrown,

Yes, it did work and it still works. Any idea how to edit it in the
bookstack.conf, I've tried
`Listen 443 http
Listen 80
NameVirtualHost *:80
NameVirtualHost *:443
ServerName *:80

<VirtualHost *:443>
ServerName docs.mni.me
ServerAdmin webmaster@localhost
DocumentRoot /var/www/bookstack/public/
SSLEngine on
SSLCertificateFile /Users/myusername/certs/server.crt
SSLCertificateKeyFile /Users/myusername/certs/server.key

<VirtualHost *:80>
SSLEngine off
ServerName docs.mni.me
ServerAdmin webmaster@localhost
DocumentRoot /var/www/bookstack/public/
`

But, then I cannot start the apache server. Any tips on how to enable SSL?

Thanks.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/272?email_source=notifications&email_token=AADHKL3DUY3WVHSI6CVLRODP4MBWPA5CNFSM4C4PMRI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSOABI#issuecomment-505733125,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADHKL7LIBWP4IAD2C2PVILP4MBWPANCNFSM4C4PMRIQ
.

@mikulabc commented on GitHub (Jul 2, 2019): I think it would be a good idea if we open a new ticket @Nedimko123 On Wed, Jun 26, 2019 at 8:08 AM Nedimko123 <notifications@github.com> wrote: > Hey @ssddanbrown <https://github.com/ssddanbrown>, > > Yes, it did work and it still works. Any idea how to edit it in the > bookstack.conf, I've tried > `Listen 443 http > Listen 80 > NameVirtualHost *:80 > NameVirtualHost *:443 > ServerName *:80 > > <VirtualHost *:443> > ServerName docs.mni.me > ServerAdmin webmaster@localhost > DocumentRoot /var/www/bookstack/public/ > SSLEngine on > SSLCertificateFile /Users/myusername/certs/server.crt > SSLCertificateKeyFile /Users/myusername/certs/server.key > > <VirtualHost *:80> > SSLEngine off > ServerName docs.mni.me > ServerAdmin webmaster@localhost > DocumentRoot /var/www/bookstack/public/ > ` > > But, then I cannot start the apache server. Any tips on how to enable SSL? > > Thanks. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/BookStackApp/BookStack/issues/272?email_source=notifications&email_token=AADHKL3DUY3WVHSI6CVLRODP4MBWPA5CNFSM4C4PMRI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYSOABI#issuecomment-505733125>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AADHKL7LIBWP4IAD2C2PVILP4MBWPANCNFSM4C4PMRIQ> > . >
Author
Owner

@Nedimko123 commented on GitHub (Jul 3, 2019):

@mikulabc Done! Issue on: https://github.com/BookStackApp/BookStack/issues/1520

@Nedimko123 commented on GitHub (Jul 3, 2019): @mikulabc Done! Issue on: https://github.com/BookStackApp/BookStack/issues/1520
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#233