Overview
This article explains how to configure Bunny CDN on a DreamPress plan.
DreamHost's integration with the Bunny CDN is designed to optimize the performance of your DreamPress site requiring no additional configuration for the default settings.
Default inclusions and exclusions
The CDN is pre-configured to ensure your static assets are delivered quickly, while dynamic or sensitive content remains secure. This is accomplished by including or excluding specific directories and file types allowing you to customize your CDN settings further.
Included directories and files
-
The following directories and file types are already included in your CDN settings to enhance your site's speed.
Included Directories
- /wp-includes/
- /wp-content/themes/
- /wp-content/plugins/
- /wp-content/uploads/
Included file types
File Types Extensions Images and Icons *.jpg, *.jpeg, *.png, *.gif, *.svg, *.webp, *.avif, *.heic, *.heif, *.ico Stylesheets and Scripts *.css, *.js Fonts *.woff, *.woff2, *.ttf, *.otf, *.eot Videos *.mp4, *.webm, *.mkv, *.m4v, *.mov, *.avi, *.ogv Audio Files *.mp3, *.ogg, *.wav Documents and Spreadsheets *.pdf, *.doc, *.docx, *.xls, *.xlsx
Excluded directories and file types
-
The following directories and file types are excluded by default to maintain security and ensure dynamic content functions correctly. No action is required on your part. This ensures administrative areas and dynamic content are not cached, preserving the integrity and security of your site.
Excluded directories
- /wp-admin/*
Excluded file types
File Types Extensions Dynamic and Configuration Files *.php, *.html, *.xml, *.json Database Backups *.sql
Configuring directories and files
Below are some considerations and steps you can take to adjust your settings if you have specific needs that require customization.
There is a limit of 14 includes and 48 excludes in addition to the default settings in each case.
Including/Excluding a directory
-
- Navigate to the Manage Websites page.
- Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
- Click the Website tab.
- Scroll down to find the Performance section containing CDN settings/options.
- Click the toggle to enable Bunny CDN.
- Next to Configure Settings, click the Modify button.
- Add or remove directories as needed.
Optional directories to exclude
Consider excluding these directories to prevent publicly accessible backups from being cached and potentially accessed:
- /wp-content/uploads/backwpup-*/
- /wp-content/uploads/backupbuddy_backups/
- /wp-content/uploads/{your-custom-backup-directory}/
If possible, configure your backup plugins to store backups outside the /wp-content/uploads/ directory, or in a location that is not publicly accessible to enhance site security.
Including/Excluding a file type
-
- Navigate to the Manage Websites page.
- Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
- Click the Website tab.
- Scroll down to find the Performance section containing CDN settings/options.
- Click the toggle to enable Bunny CDN.
- Next to Configure Settings, click the Modify button.
- Add or remove file extensions as needed.
Optional file types to adjust
Depending on how your site uses certain file types, you may choose to include or exclude them from the CDN. For example, here is a list of compressed file types to consider:
- *.zip
- *.tar
- *.tar.gz
- *.tgz
- *.gz
- *.gzip
When to include or exclude file types
- Include if you offer them as downloads to your users to improve delivery speed via the CDN.
- Exclude if they are used for backups or contain sensitive data to prevent unauthorized access.