switch images from http to https #1612

Closed
opened 2026-02-05 01:25:40 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @denisdal on GitHub (Mar 30, 2020).

Hi there,
I have to move from HTTP to HTTPS but I have an issue similar to #1121
Settings are ok but all images inside an article are still served in HTTP.
I have managed to update the url in images mysql table with no luck.
There is something else to update o clear ?
(php artisan cache:clear already executed and apache service restarted)

Originally created by @denisdal on GitHub (Mar 30, 2020). Hi there, I have to move from HTTP to HTTPS but I have an issue similar to #1121 Settings are ok but all images inside an article are still served in HTTP. I have managed to update the url in images mysql table with no luck. There is something else to update o clear ? (`php artisan cache:clear` already executed and apache service restarted)
Author
Owner

@denisdal commented on GitHub (Apr 6, 2020):

Anyone ?

@denisdal commented on GitHub (Apr 6, 2020): Anyone ?
Author
Owner

@venkat0304 commented on GitHub (Apr 7, 2020):

@denisdal
In .env file APP_URL to https?
In apache config I have rewrite rules like this for port 80. And, If you have cloudflare, there is an option to force http to https "Always Use HTTPS"

<VirtualHost *:80>
	ServerName domain.com
	RewriteEngine On
	RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>

.....

@venkat0304 commented on GitHub (Apr 7, 2020): @denisdal In .env file APP_URL to https? In apache config I have rewrite rules like this for port 80. And, If you have cloudflare, there is an option to force http to https "Always Use HTTPS" ``` <VirtualHost *:80> ServerName domain.com RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] </VirtualHost> ``` .....
Author
Owner

@denisdal commented on GitHub (Apr 7, 2020):

APP_URL in .env is in https
Here my http virtualhost:

<VirtualHost :80>
ServerName blabla.domain.com
RewriteEngine On
RewriteRule (.
) https://%{SERVER_NAME}/$1 [R=301,L]

No cloudflare o cdn used

@denisdal commented on GitHub (Apr 7, 2020): APP_URL in .env is in https Here my http virtualhost: > <VirtualHost *:80> ServerName blabla.domain.com RewriteEngine On RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L] </VirtualHost> No cloudflare o cdn used
Author
Owner

@ssddanbrown commented on GitHub (Apr 7, 2020):

Hi @denisdal,
Sorry for the lack of response.

It's the html column on the pages table that's causing this.
In the next release of BookStack will be a built-in command to update these links on all the required columns automatically (#1225).

Otherwise, @lieszkol has written a handy blog post on the matter here which may help you: https://kb.zensoft.hu/migrating-your-bookstack-app-to-a-new-domain/

@ssddanbrown commented on GitHub (Apr 7, 2020): Hi @denisdal, Sorry for the lack of response. It's the `html` column on the `pages` table that's causing this. In the next release of BookStack will be a built-in command to update these links on all the required columns automatically (#1225). Otherwise, @lieszkol has written a handy blog post on the matter here which may help you: https://kb.zensoft.hu/migrating-your-bookstack-app-to-a-new-domain/
Author
Owner

@denisdal commented on GitHub (Apr 8, 2020):

Thank you !
This solved the issue

@denisdal commented on GitHub (Apr 8, 2020): Thank you ! This solved the issue
Author
Owner

@ssddanbrown commented on GitHub (Apr 8, 2020):

Great! will therefore close this.

@ssddanbrown commented on GitHub (Apr 8, 2020): Great! will therefore close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1612