Previewing VCL before activating it
Previewing VCL before activation
You can preview VCL prior to activating a service version.
- Log in to the Fastly application.
Click the configure tab to access the control panel.
Select the appropriate service from the Service menu.
Click the blue Configure button to the right of the service name.
Click the VCL section to view the Varnish Configuration information, and then click the New button to upload your configuration file.
The New Varnish Configuration window appears:
In the Name field, type the name of the varnish configuration information you're uploading.
Click the Choose File button and navigate to the text file you plan to upload.
Click the Create button to create the new varnish configuration.
At the top of the application window, click the VCL button to the right of the service name and version fields.
The Generated VCL preview appears.
Testing VCL configurations
You don't need a second account to test your VCL configurations with the Fastly application. We recommend adding a new service within your existing account that's specifically designed for testing. A name like "QA" or "testing" or "staging" makes distinguishing between services much easier.
Once created, simply point your testing service to your testing or QA environment. Edit your Fastly configurations for the testing service as if you were creating them for production. Preview your VCL, test things out and tweak them to get them perfect.
When your testing is complete, make the same changes in your production service that you made to your testing service. If you are using custom VCL, upload the VCL file to the production service you'll be using.