Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 37

CDN for attachments

This is a discussion on CDN for attachments within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Guys, CDN for attachments is not working as expected i'm getting this url Code: http://static1.under-linux.net/attachments/f105/11048d1272309727t-defeito-das-rbs-serie-450-e-750-rb750g_top_naked_large-jpg do i need to do ...

  1. #1
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times

    CDN for attachments

    Guys,

    CDN for attachments is not working as expected

    i'm getting this url
    Code:
    http://static1.under-linux.net/attachments/f105/11048d1272309727t-defeito-das-rbs-serie-450-e-750-rb750g_top_naked_large-jpg
    do i need to do anything to make cdn for attachment work ? this is working for everything else.

    Thanks,

  2. #2
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    I forgot to say that i'm using 3.6.0rc1

  3. #3
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Hello Marcus ,

    Are you sure you correctly defined your CDN as when i visit http://static1.under-linux.net i get 403 error
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  4. #4
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    Mert,

    The problem is the content of attachment is a different url


    du -ka | head
    996 ./4/4/4/4/8/97.attach
    1060 ./4/4/4/4/8/96.attach
    2060 ./4/4/4/4/8
    2064 ./4/4/4/4
    4 ./4/4/4/1/8
    8 ./4/4/4/1
    4 ./4/4/4/3/6/379.thumb
    100 ./4/4/4/3/6/392.attach
    64 ./4/4/4/3/6/380.attach
    4 ./4/4/4/3/6/380.thumb

  5. #5
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    how vbseo will make files .thumb and .attach work ?

  6. #6
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Quote Originally Posted by magmf View Post
    Mert,

    The problem is the content of attachment is a different url


    du -ka | head
    996 ./4/4/4/4/8/97.attach
    1060 ./4/4/4/4/8/96.attach
    2060 ./4/4/4/4/8
    2064 ./4/4/4/4
    4 ./4/4/4/1/8
    8 ./4/4/4/1
    4 ./4/4/4/3/6/379.thumb
    100 ./4/4/4/3/6/392.attach
    64 ./4/4/4/3/6/380.attach
    4 ./4/4/4/3/6/380.thumb
    It is correctly listed and things are how it should be. Just make sure the defined subdomain correctly loads your CDN url . Because as i explained you currently your cdn url is giving 403 error.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  7. #7
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    Mert,

    Everything is working for Javascript/css , Images and avatars just for Attachments i have this problem. The problem basically is for ( Javascript/css , Images and avatars) the file name is the same on CDN and vbulletin. But for attachments Vbulletin store files as *.attach and *.thumb so What i need understand is How VBSEO will be able to identify what is the file name on CDN.

    if you try download from http://static1.under-linux.net/attac.../4/8/97.attach you will be able to download.

    So the problem is what i'm saying to you the url for attachment is wrong.

  8. #8
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Can you please create a support ticket and supply login details so we can examine ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #9
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    Mert, I just opened case 7738-PGKC-4323 unfortunately i can't give you user/pass to my system but if you explain me how vbseo do the bridge from *.attach and *.thumb to a correct CDN url will be a good help. Also if you know any place this is running just to see and understand may be i can fix the code by myself.

    PS i'm really OLD vbseo user (since 2006) and Big Forum customer (+500k) posts

  10. #10
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    There is nothing special about attachment rewrites. It is same as rest of vBSEO.

    Please note that all our customers are within same level. We don't treat any customer different then each other so being a 5 year old customer and 1 day customer doesn't differ. We offer our best to every customer we have.

    However it maybe hard to debug things without login information as this is working correct on our side. If you can create temporary login details , it maybe easier for us to assist you.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  11. #11
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    Mert,

    I think you are wrong or we are talking about different things here.

    Do you know how vbulletin attachment works right ? So if you know, you know that files uploaded by customers are not saved with correct file name but with extension .thumb for thumbs and .attach for file.

    What vbulletin/vbseo do is check at database and point you to download *.thumb/*.attach also including on the header the content type and file name but this is only possible with PHP/mySQL what is not the case for CDN that can't run PHP/MYSQL so i can't have a way to download a file

    Code:
    http://static1.under-linux.net/attachments/f105/11048d1272309727t-defeito-das-rbs-serie-450-e-750-rb750g_top_naked_large-jpg
    since this part of url "f105/11048d1272309727t-defeito-das-rbs-serie-450-e-750-rb750g_top_naked_large-jpg" was created by vbseo and on CDN you will only be able to have "4/4/4/3/6/380.thumb"

    Are we on same page or talking about a different CDN attachments ?

  12. #12
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    As a proof that CDN is working fine for javascript,css, avatars and images you can see links bellow
    Code:
    http://static1.under-linux.net/customavatars/avatar58397_3.gif
    http://static1.under-linux.net/clientscript/vbulletin_css/style00004l/main-rollup.css?d=1295361325
    http://static1.under-linux.net/clientscript/vbulletin_overlay.js?v=411
    http://static1.under-linux.net/images/misc/facebook.gif

  13. #13
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    An attachment url never references the folders as you describe.

    Here's a break down of what happens.

    http://static1.under-linux.net/attac...aked_large-jpg
    is really a url like
    http://static1.under-linux.net/attachment.php?a=11048

    The rest of it doesn't really matter in terms of getting the right image to display.

    The attachment.php script then parses the ID, does a database look up in its script, and outputs a jpg/etc file with the Header() function.


    This seems to throw a 404 on your site and I'm not sure why.

  14. #14
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    Brian,

    In my understand CDN don't support PHP with that I can't use attachment.php on CDN and if was the case I will not be able to connect my Database from CDN.

    Can you explain better how VBSEO handles with Attachments on CDN ? it's really not clear to me what I can or can't do with attachments on CDN.

  15. #15
    Member
    Real Name
    Marcus Maciel
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    78
    Liked
    2 times
    from
    Using MaxCDN for paid or subscription-only video streaming « MaxCDN Blog

    "As it known to all, CDN cannot run server-side scripting such as PHP, Ruby, and ASP etc…"

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. vBulletin 4.x attachments on 3.5.1 pl1
    By janslu in forum Bug Reporting
    Replies: 19
    Last Post: 08-04-2010, 08:14 PM
  2. attachments
    By woodysfj40 in forum Troubleshooting
    Replies: 1
    Last Post: 12-16-2007, 06:11 PM
  3. PM Attachments 3.5
    By Ashley in forum Troubleshooting
    Replies: 10
    Last Post: 03-11-2006, 02:47 PM
  4. Attachments in PM
    By infordig in forum Troubleshooting
    Replies: 3
    Last Post: 12-11-2005, 09:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •