Video Tutorial - How to Setup CDN in VPCart 9

Video Tutorial - How to Setup CDN in VPCart 9

You will need to setup sub domain(s) and virtual directories before you can start to use this feature from your Windows hosting panel (Plesk)

Step 1. First login to Plesk Hosting panel

Step 2. In the “Websites & Domains” locate the button “Add Subdomain” and click on it

Step 3. Enter Subdomain name: content

Document root: Enter the folder “cdndomain” location of your VPCart 9.0 site. If your VPCart 9.0 site files are located in httpdocs/v9/ then you should enter with eg httpdocs/v9/cdndomain In our example we can assume VPCart 9.0 sitefiles are located in httpdocs/ folder and the document root is httpdocs/cdndomain

Step 4. Click OK button

Your new sub domain “content” should be created now

Step 5. We will now create another new sub domain called “images”. For this click add subdomain button

Step 6. Enter subdomain name: images Enter Document root : /httpdocs/cdndomain as earlier

Step 7. Click OK button Subdomain images got created now.

Step 8. At the “Websites & Domains” locate the sub domain “content” and click the “Virtual Directories” button

Step 9. Click “Create Virtual Directory”.

Step 10. Enter the following fields:

10 a. Name: plugins

10 b. Uncheck "Create physical directory with the same name as virtual directory" and click the folder icon next to it to set path

10 c. Select folder httpdocs/plugins

10 d. Click OK button to confirm the folder “plugins” that you have selected.

10 e. Script source access: uncheck Read permission: check Write permission: uncheck

10 f. Directory browsing: uncheck Log visits: check Create application: uncheck

10 g. Execute permissions: Script only ASP Settings: All check as "Defined by parent directory"

Step 11. Click OK button

Step 12. Click the content.example.com link to go back to root folder.

Click “Create Virtual Directory”

12 a. Enter the following fields: Name: templates

12 b. uncheck "Create physical directory with the same name as virtual directory" and click the folder icon to select path

12 c. Select path /httpdocs/templates

12 d. Click OK button to confirm the folder “templates” that you have selected.

12 e. Script source access: uncheck Read permission: check Write permission: uncheck

12 f. Directory browsing: uncheck Log visits: check Create application: uncheck

12 g. Execute permissions: Script only ASP Settings: All check as "Defined by parent directory"

Step 13. Click OK button to create.

Step 14. Click on “Websites & Domains”

14 a. Locate the sub domain “images”

14 b. click the “Virtual Directories” button

14 c. Click “Create Virtual Directory”.

14 d. Enter Name: images uncheck "Create physical directory with the same name as virtual directory"

14 e. Click on the folder icon to select path

14 f. Select /httpdocs/images folder

14 g. Click OK button to confirm the folder “images” that you have selected.

14 h. Script source access: uncheck Read permission: check Write permission: uncheck

14 i. Directory browsing: uncheck Log visits: check Create application: uncheck

14 j. Execute permissions: Script only ASP Settings: All check as "Defined by parent directory"

Step 15. Click OK button to create

Now that you have setup the sub domain(s) and also the virtual directories.

The next step will be to go to your VPCart configuration admin to setup the CDN.

Step 1. Log into your VPCart 9.00 administration. Go to Advanced Settings > Software Configuration

Step 2. On Search text box, please enter cdn, then click Search icon

Step 3. xcdn_categories_images: Enter the subdomain images URL that you pointed to site images for CDN e.g. http://images.example.com/

xcdn_enable : Yes

xcdn_images: Enter the subdomain images URL that you pointed to site images for CDN e.g. http://images.example.com/

NOTE: You need to fill in https if your subdomain is using SSL Certification e.g. https://images.example.com/

xcdn_plugins:The subdomain content URL that you pointed to site content/plugins(JS, CSS, templates) for CDN. e.g. http://content.example.com/

xcdn_product_images: Enter the subdomain images URL that you pointed to site images for CDN e.g. http://images.example.com/

After the setup above, you can go to your VPCart 9.0 front store to refresh and you should see the speed will improve.

You can use a 3rd party speed testing tool website such as https://tools.pingdom.com to test your current site speed and you should get a grade A.

Thank you for watching and we hope you have found this tutorial useful.

User Manual Reference

For more information about how to use Design Manager to change the look of your site, you can also refer to our VPCart 9 User Guide at

https://helpnotes.vpcart.com/userguide900/#!Documents/cdncontentdeliverynetwork.htm


Times Viewed:
367
Added By:
Brian
Date Created:
11/14/2018
Last Updated:
1/1/2020