vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   /clientscripts over to Amazon S3/Cloudfront? (https://vborg.vbsupport.ru/showthread.php?t=220237)

imported_silkroad 09-18-2010 01:53 PM

Thanks. It is not really possible to comment without knowing how you set things up.

With proper set up for the CDN to serve only static content (images, clientscript (java and css files)), there is no reason for any security token errors.

First, you should outline all the steps you have done so far.

For us, we simply change the style variables, change the location of smilies etc in the AdminCP and add a few replacement variables for client script.

Another method which works equally well, is to use Apache mod_rewrite, but we don't do it that way.

imported_silkroad 09-20-2010 05:18 AM

OBTW, in case you did not read this blog post over at The UNIX and Linux Forum about MaxCDN and their initial impressions on their vB forum:

http://www.unix.com/blog/2010/08/ini...s-with-maxcdn/

Trana 03-05-2011 05:43 AM

Just wondering if anyone has been able to come up with a solution for moving the attachment directories out to S3 or another CDN?

imported_silkroad 03-06-2011 12:14 AM

There are a number of ways to do this. Perhaps the easiest way is to simply edit the postbit_attachment template and change:

Code:

<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a>
to...


Code:

<a  href="http://your.cdn.com/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if  condition="$show['newwindow']">  target="_blank"</if>>$attachment[filename]</a>
You could also do this with RRs, but you would need to be careful not to replace the code which uploads the attachment; so I advise you to just edit the template that displays the attachment (above).


All times are GMT. The time now is 06:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01035 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete