vktechnology

Bug

1) When upload picture cannot see picture

file upload to CDN and double path like "file/file/"

http://cdn.domain.com/file/file/pic/photo/year/month/filename

 

2) To correct it should be only one "file" path

http://cdn.domain.com/file/pic/photo/year/month/filename

 

To fix this bug and configuration

1) Edit phpfox-cdn.php

comment on line 85 and insert code below

//$path = CDN_FOLDER . '/' . implode('/', $sub) . '/';
$path = implode('/', $sub) . '/'; 

comment on line 108 and insert code below

//$path = CDN_FOLDER . '/' . implode('/', $sub) . '/';
$path = implode('/', $sub) . '/';

2) Got o Admin CP > PHPFOX CDN 
If you install cdn on subdomain like http://cdn.domain.com

Simple to configure

Insert same URL value with out "file" path
UPLOAD URL = http://cdn.domain.com
VIEW URL = http://cdn.domain.com

3) Create folder name  file  under  http://cdn.domain.com

 

-----------------------

more info

Setting Up phpFox CDN

https://docs.phpfox.com/display/FOX4MAN/Setting+Up+phpFox+CDN

 

Topics: phpfox cdn
Last update on October 14, 2018 by vktechnology.