If you have a support question or comment, click the Post New Topic link below.
Current Version: 3.5.0Sytist Manual | Sytist Articles 

Cdn

 
Please log in or Create an account to post or reply to topics.
 
Yann Queniart
108 posts
Tue Mar 26, 19
2:11 AM
Hello, I host myself and I want boost performance with CDN.

I use KeyCDN, I have DNS CNAME cdn.yannqueniart.com how pull www.yannqueniart.com

I have an .htaccess with rewrite like that :
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.yannqueniart.com
RewriteRule ^sy-photos/(.*).jpg$ https://cdn.yannqueniart.com/sy-photos/$1 [R,L]

Any jpg files in www.yannqueniart.com/sy-photos will become cdn.yannqueniart.com/sy-photos

That work very well, I just want to know if for Sytist the fact to find pictures on an other server could be problematic ?
Tim - PicturesPro.com
11208 posts
admin
Tue Mar 26, 19
10:35 AM
The only external storage Sytist has integrated is Amazon S3. I have never done what you are explaining so I don't know how to answer your question.
 
 
 
 
 
Tim Grissett, DIA - PicturesPro.com || My Email Address: info@picturespro.com
Yann Queniart
108 posts
Tue Mar 26, 19
10:46 AM
OK, no problem.

So i will make beta tester, if I find bug with this usage i will report it to you.

For the moment no main problem.
Yann Queniart
108 posts
Thu Mar 28, 19
6:12 AM
Hi, please find bellow some informations about use CDN with Sytist. I hope that can help some Sytist users.

First I use KeyCDN, you need a CDN how support CNAME (CloudFlare support CNAME but with Pro and Enterprise level, not Free and Basic).

Just follow KeyCDN instruction. After you have follow all KeyCDN instructions you will have :
- Your Website : www.myweb.com
- Your CDN cache : cdn.myweb.com (you can use the subdomain you want)

Next you need to say to your users where is the CDN. Don't forward every thing to the CDN because CDN make caching for static page, there is no help for php and caching javascript used by Sytist cause problems.

My own solution is to make .htaccess in my Sytist root installation with theses instructions :

## KEYCDN
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.myweb.com
## RewriteCond %{REMOTE_ADDR} !^192.168.5..*$
RewriteRule ^(.*.(jpg|css|gif|png|svg|woff2|ico))$ https://cdn.myweb.com/$1 [R,L]


What my .htaccess do : when users browse www.myweb.com it forward to https://cdn.myweb.com , it keep the directories structures. It forward only extension : jpg, css, gif, png, svg, woff2, ico.
Warning, don't caching js extension, there is problems if you do this.
You can uncomment the second RewriteCond to bypass somme adress and don't use CDN, for my own installation i host myself, so I don't my local network use CDN (192.168.5.x don't use CDN)

When all that is done when the first customer check a web page, static content is put in cache in CDN, all next user will use the cache, so that can help if your web server don't have a high speed connection. KeyCDN is not very expensive, for 100Go that cost about 4€.

I hope that could somebody, that is not an official solution supported by Tim, it is my own installation. For the moment every thing work perfectly.
Edited Thu Mar 28, 19 6:13 AM by Yann Queniart
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2019 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close