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:

             a. Name: plugins

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

             c. Select folder httpdocs/plugins

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

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

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

             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

            a. Enter the following fields: Name: templates

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

            c. Select path /httpdocs/templates

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

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

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

            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

           a. Locate the sub domain “images”

           b. click the “Virtual Directories” button

           c. Click “Create Virtual Directory”.

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

           e. Click on the folder icon to select path

           f. Select /httpdocs/images folder

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

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

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

           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.


Times Viewed:
992
Added By:
Brian
Date Created:
11/14/2018
Last Updated:
10/21/2021