Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
bunny.net
https://support.bunny.net
Admin
Guides, troubleshooting and support requests to help you get started with bunny.net.
Tokens:
54,863
Snippets:
884
Trust Score:
10
Update:
3 months ago
Context
Chat
Benchmark
55.42
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Example Log Download URL Source: https://support.bunny.net/hc/en-us/articles/360018952591-How-do-I-download-my-logs-via-the-API An example of a complete log download URL for a specific date and Pull Zone ID. ```URL https://logging.bunnycdn.com/05-20-23/1470331.log ``` -------------------------------- ### Full Perma-Cache Folder Structure Example Source: https://support.bunny.net/hc/en-us/articles/360017048720 An example illustrating the complete folder structure for a Perma-Cache file, combining all previous components. ```bash /testfiles/__bcdn_perma_cache__/pullzone__permacachetest__20138242/path/to/my/file/___image.jpg___/___file___ ``` -------------------------------- ### Bunny.net CDN Raw Log Line Example Source: https://support.bunny.net/hc/en-us/articles/115001917451-bunny-net-CDN-raw-log-format-explained An example of a single log line from the Bunny.net CDN, demonstrating the pipe-delimited format. ```text HIT|200|1507167062421|412|390|163.172.53.229|-|https://bunnycdn.b-cdn.net/assets/landingpage/images/cdn-video-preview-from-a-blue-moon.m4v|WA|Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36|322b688bd63fb63f2babe9de30a5d262|DE ``` -------------------------------- ### Form-Encoded Query Parameters Example Source: https://support.bunny.net/hc/en-us/articles/360016055099 Example of how query parameters should be formatted for hashing. These parameters must be in form-encoded POST format, without the starting '?' character. ```text "param1=something¶m2=something¶m3=something" ``` -------------------------------- ### Example BIND Zone File for Import/Export Source: https://support.bunny.net/hc/en-us/articles/7250010100370-Understanding-DNS-Zone-Import-and-Export This snippet shows the structure of a BIND-compatible DNS zone file, including A, MX, and TXT records. It serves as an example for both importing configurations into Bunny DNS and exporting them for backup or migration. ```dns ;A records myothersite.examplebunny.com. IN 5m A 1.1.2.2 maindomain.examplebunny.com. IN 5m A 1.2.3.4 ;MX records mailexchange.examplebunny.com. IN 5m MX 0 muxchange.host.com. ;TXT records examplebunny.com. IN 1m TXT "_acme-challenge.examplebunny.com= D-52Wm4V7xoUpGax-F8FrPO45cQRcbRj-XoblaY4uYM" ``` -------------------------------- ### Example BunnyCDN Pull Zone Hostname Source: https://support.bunny.net/hc/en-us/articles/360000335451-How-to-speed-up-your-Amazon-S3-file-delivery-with-BunnyCDN This is an example of how to access a file through your newly created BunnyCDN pull zone hostname. Replace 'mys3zone.b-cdn.net' with your actual pull zone hostname and 'bunny.jpg' with your file name. ```text https://mys3zone.b-cdn.net/bunny.jpg ``` -------------------------------- ### Example Hashable Base String Source: https://support.bunny.net/hc/en-us/articles/360016055099 An example of a complete string that can be used as a base for SHA256 token generation, including security key, path, IP, and query parameters. ```text security-key/my-directory/12345192.168.1.1token_countries=SI,GB&width=500&token_path=/my-directory/ ``` -------------------------------- ### BunnyCDN Pull Zone Hostname Example Source: https://support.bunny.net/hc/en-us/articles/360018372772-How-to-speed-up-Microsoft-Azure-Storage-Blobs-with-BunnyCDN This is an example of your new BunnyCDN pull zone hostname with a file appended, used for testing the integration. ```url https://azuretest.b-cdn.net/bunnycdn.png ``` -------------------------------- ### Install Typo3 Content Replacer Plugin with Composer Source: https://support.bunny.net/hc/en-us/articles/360018879551-How-to-speed-up-your-Typo3-website-with-BunnyCDN Use this Composer command to install the 'Content Replacer' plugin for Typo3 if your installation uses Composer. ```bash composer req jweiland/replacer ``` -------------------------------- ### Example Signed URLs for BunnyCDN Token Authentication Source: https://support.bunny.net/hc/en-us/articles/360016055099 These examples demonstrate how signed URLs can be formatted for BunnyCDN's token authentication system, showing both query parameter and URL path variations. ```url https://test.b-cdn.net/my-partial/url/video.mp4?token=aiDhHXZGHidbDZZqIY14z1eHhhbZvMlzh_7u9cEIdfI&token_path=%2Fmy-partial%2Furl%2F&expires=1598024587 ``` ```url https://test.b-cdn.net/bcdn_token=aiDhHXZGHidbDZZqIY14z1eHhhbZvMlzh_7u9cEIdfI&expires=1598024587&token_path=%2Fmy-partial%2Furl%2F/my-partial/url/video.mp4 ``` -------------------------------- ### Example DigitalOcean Space URL Source: https://support.bunny.net/hc/en-us/articles/360020439871-How-to-speed-up-your-DigitalOcean-Space-with-BunnyCDN This is an example of a DigitalOcean Space URL that will be used as the basis for your BunnyCDN Pull Zone. ```text https://bunnyspace.ams3.digitaloceanspaces.com/bunny-flying.png ``` -------------------------------- ### Example S3 Bucket Public URL Source: https://support.bunny.net/hc/en-us/articles/360000335451-How-to-speed-up-your-Amazon-S3-file-delivery-with-BunnyCDN This is an example of the public URL format for an Amazon S3 bucket. Ensure you copy the base URL without the file name or path. ```text https://s3-eu-west-1.amazonaws.com/storage.bunnycdn.com/ ``` -------------------------------- ### Normalized File Path Example Source: https://support.bunny.net/hc/en-us/articles/360017048720 This shows the normalized directory path for a requested URL, where multiple slashes are combined into a single slash. ```bash path/to/my/file/ ``` -------------------------------- ### Generate Signed URL (Bash) Source: https://support.bunny.net/hc/en-us/articles/360016055099-How-to-sign-URLs-for-BunnyCDN-Token-Authentication Example of generating a signed URL using a bash script and a hypothetical sign_url function. ```bash signed_url=$(sign_url "$URL" "$SECURITY_KEY" "$EXPIRATION_TIME" "$USER_IP" "$IS_DIRECTORY" "$PATH_ALLOWED" "$COUNTRIES_ALLOWED" "$COUNTRIES_BLOCKED") echo "Signed URL: $signed_url" ``` -------------------------------- ### Migrate Shopware Media to BunnyCDN Source: https://support.bunny.net/hc/en-us/articles/360018577551-How-to-speed-up-your-Shopware-site-with-BunnyCDN Execute this command in your Shopware installation directory to upload all local media files to your configured BunnyCDN Storage Zone. ```bash "bin/console sw:media:migrate --from=local --to=bunnycdn" ``` -------------------------------- ### Example BunnyCDN Pull Zone URL for OVH Storage Source: https://support.bunny.net/hc/en-us/articles/360017976692-How-to-speed-up-your-OVH-Public-Cloud-file-delivery-with-BunnyCDN This is an example of how your BunnyCDN pull zone URL will look when configured to serve files from an OVH storage container. Replace 'ovhstorage.b-cdn.net' with your actual pull zone hostname and 'BunnyCDN.png' with your file's name. ```url https://ovhstorage.b-cdn.net/BunnyCDN.png ``` -------------------------------- ### Example Storage Zone Path Mapping Source: https://support.bunny.net/hc/en-us/articles/8561433879964-How-to-access-and-deliver-files-from-Bunny-Storage This illustrates how the Pull Zone URL is internally mapped to the actual file path within the Bunny Storage Zone. ```URL /**mystorage**/my/image.jpg ``` -------------------------------- ### URL Signing: Token Path Parameter Example Source: https://support.bunny.net/hc/en-us/articles/360016055099 The 'token_path' parameter allows specifying a partial URL for signing. This grants access to all files within the specified path. ```url &token_path=%2Fmy-partial%2Furl%2F ``` -------------------------------- ### Run Traceroute on Windows Source: https://support.bunny.net/hc/en-us/articles/115002047172-How-do-I-run-a-traceroute Use this command in the Windows command prompt to trace the route to your hostname. Replace <hostname> with your actual bunny.net hostname. ```bash tracert <hostname> ``` -------------------------------- ### Enable CDN URL Global Variable in index.php Source: https://support.bunny.net/hc/en-us/articles/360019199051-How-to-speed-up-your-ExpressionEngine-website-with-BunnyCDN Uncomment and modify the global_vars line in index.php to define the CDN URL. Replace 'http://YOURZONEHERE.b-cdn.net/' with your actual BunnyCDN Pull Zone URL. ```php $assign_to_config['global_vars'] = array('cdn_url' => 'http://YOURZONEHERE.b-cdn.net/'); ``` -------------------------------- ### Run Traceroute on Android Source: https://support.bunny.net/hc/en-us/articles/115002047172-How-do-I-run-a-traceroute Enter your pull zone URL in the PingTools app to perform a traceroute. Example: my-zone.b-cdn.net. ```text my-zone.b-cdn.net ``` -------------------------------- ### Set Image Height Source: https://support.bunny.net/hc/en-us/articles/360027448392-Bunny-Optimizer-Engine-Documentation Resize the output image to the specified height while maintaining the aspect ratio. Example values are provided. ```URL ?height=150 ``` ```URL ?height=125 ``` ```URL ?height=75 ``` -------------------------------- ### Set Image Width Source: https://support.bunny.net/hc/en-us/articles/360027448392-Bunny-Optimizer-Engine-Documentation Resize the output image to the specified width while maintaining the aspect ratio. Example values are provided. ```URL ?width=300 ``` ```URL ?width=200 ``` ```URL ?width=150 ``` -------------------------------- ### Shopware CDN Configuration for BunnyCDN Source: https://support.bunny.net/hc/en-us/articles/360018577551-How-to-speed-up-your-Shopware-site-with-BunnyCDN Add this configuration to your Shopware 'config.php' file to enable BunnyCDN as the media backend. Ensure you replace placeholders with your actual Pull Zone, Storage Zone names, and API key. ```php 'cdn' => [ 'backend' => 'bunnycdn', 'adapters' => [ 'bunnycdn' => array ( 'type' => 'bunnycdn', 'mediaUrl' => 'https://PULLZONE.b-cdn.net/', 'apiUrl' => 'https://storage.bunnycdn.com/STORAGEZONENAME/', 'apiKey' => 'secret-api-key' ) ] ``` -------------------------------- ### Azure Blob Container URL Example Source: https://support.bunny.net/hc/en-us/articles/360018372772-How-to-speed-up-Microsoft-Azure-Storage-Blobs-with-BunnyCDN This is the base URL for your Azure Blob Storage container, used to configure the Pull Zone origin. ```url https://harrytest1.blob.core.windows.net/cdn01/ ```