[GH-ISSUE #235] slash error #106

Closed
opened 2026-02-25 22:34:22 +03:00 by kerem · 10 comments
Owner

Originally created by @fyher on GitHub (Nov 14, 2019).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/235

i have this
Error occurred while trying to read the file Url : https:/raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png

but I test /upload/w_300/https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png

thanks

Originally created by @fyher on GitHub (Nov 14, 2019). Original GitHub issue: https://github.com/flyimg/flyimg/issues/235 i have this Error occurred while trying to read the file Url : https:/raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png but I test /upload/w_300/https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png thanks
kerem closed this issue 2026-02-25 22:34:22 +03:00
Author
Owner

@sadok-f commented on GitHub (Nov 14, 2019):

Hi @fyher
Thank you for reporting the issue.
Could you please specifiy more details about it?

<!-- gh-comment-id:553978450 --> @sadok-f commented on GitHub (Nov 14, 2019): Hi @fyher Thank you for reporting the issue. Could you please specifiy more details about it?
Author
Owner

@fyher commented on GitHub (Nov 15, 2019):

I don't know , I have the docker image, it's work on server A , i install it on server B and now I have this bug. I send https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png and the code receive just http::/ , is delete one slash

i have open the code and is nos good, I add str_replace("http:/","http://"...) and its work :(

<!-- gh-comment-id:554219882 --> @fyher commented on GitHub (Nov 15, 2019): I don't know , I have the docker image, it's work on server A , i install it on server B and now I have this bug. I send https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png and the code receive just http::/ , is delete one slash i have open the code and is nos good, I add str_replace("http:/","http://"...) and its work :(
Author
Owner
<!-- gh-comment-id:554220188 --> @fyher commented on GitHub (Nov 15, 2019): you can see it here http://flyimg.nolohi.fr and http://flyimg.nolohi.fr/upload/w_300/https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png
Author
Owner

@sadok-f commented on GitHub (Nov 15, 2019):

how is the configuration for the server B ?
I mean in http://flyimg.nolohi.fr your run Flyimg behind a reverse proxy? can you past here the configuration?

<!-- gh-comment-id:554271566 --> @sadok-f commented on GitHub (Nov 15, 2019): how is the configuration for the server B ? I mean in `http://flyimg.nolohi.fr` your run Flyimg behind a reverse proxy? can you past here the configuration?
Author
Owner

@fyher commented on GitHub (Nov 15, 2019):

is the same config for the server A ,
the docker config
flyimg:
image: flyimg/flyimg-build
restart: always
ports:
- 8089:80
networks:
noholi:
aliases:
- flyimagenolohi.com

<!-- gh-comment-id:554308880 --> @fyher commented on GitHub (Nov 15, 2019): is the same config for the server A , the docker config flyimg: image: flyimg/flyimg-build restart: always ports: - 8089:80 networks: noholi: aliases: - flyimagenolohi.com
Author
Owner

@sadok-f commented on GitHub (Nov 15, 2019):

I mean the reverse proxy behind your domain http://flyimg.nolohi.fr
since accessing directly the running container: http://flyimg.nolohi.fr:8089/upload/w_300/https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png
is working perfectly.
So it should be something in the reverse proxy that redirects the traffic to the container on port 8089

<!-- gh-comment-id:554362007 --> @sadok-f commented on GitHub (Nov 15, 2019): I mean the reverse proxy behind your domain http://flyimg.nolohi.fr since accessing directly the running container: http://flyimg.nolohi.fr:8089/upload/w_300/https://raw.githubusercontent.com/flyimg/graphic-assets/master/logo/raster/flyimg-logo-rgb.png is working perfectly. So it should be something in the reverse proxy that redirects the traffic to the container on port 8089
Author
Owner

@fyher commented on GitHub (Nov 15, 2019):

the conf
<VirtualHost *:80>
ServerName flyimg.nolohi.fr
CustomLog /var/log/apache2/secure_access.log combined

<Proxy *>
Allow from 127.0.0.1

ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8089/
ProxyPassReverse / http://127.0.0.1:8089/
ProxyRequests Off

<!-- gh-comment-id:554375052 --> @fyher commented on GitHub (Nov 15, 2019): the conf <VirtualHost *:80> ServerName flyimg.nolohi.fr CustomLog /var/log/apache2/secure_access.log combined <Proxy *> Allow from 127.0.0.1 </Proxy> ProxyPreserveHost On ProxyPass / http://127.0.0.1:8089/ ProxyPassReverse / http://127.0.0.1:8089/ ProxyRequests Off </VirtualHost>
Author
Owner

@sadok-f commented on GitHub (Nov 20, 2019):

Sorry for my late response, honestly it looks an issue from the apache configuration which remove the double slash, you can play with configuration and try to find out where it happens.
but isn't from the Flyimg code source.

<!-- gh-comment-id:555907757 --> @sadok-f commented on GitHub (Nov 20, 2019): Sorry for my late response, honestly it looks an issue from the apache configuration which remove the double slash, you can play with configuration and try to find out where it happens. but isn't from the Flyimg code source.
Author
Owner

@HagenMorano commented on GitHub (Dec 28, 2019):

Ran into the same problem on nginx. Fixed by adding merge_slashes off; to nginx config.

<!-- gh-comment-id:569412323 --> @HagenMorano commented on GitHub (Dec 28, 2019): Ran into the same problem on nginx. Fixed by adding `merge_slashes off;` to nginx config.
Author
Owner

@sadok-f commented on GitHub (Oct 23, 2023):

Hi @fyher
I'm wondering if you still use Flyimg in your company/organisation ?
If so, it would be great if you could add your entry here in the Adoperts file
https://github.com/flyimg/flyimg/blob/main/ADOPTERS.md
many thanks!

<!-- gh-comment-id:1774712545 --> @sadok-f commented on GitHub (Oct 23, 2023): Hi @fyher I'm wondering if you still use Flyimg in your company/organisation ? If so, it would be great if you could add your entry here in the Adoperts file https://github.com/flyimg/flyimg/blob/main/ADOPTERS.md many thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#106
No description provided.