Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

setting up virtual hosts for domains on cpanel vps

Discussion in 'General Discussion' started by xman888, Oct 1, 2013.

  1. xman888

    xman888 Well-Known Member

    Joined:
    Nov 23, 2005
    Messages:
    58
    Likes Received:
    1
    Trophy Points:
    158
    Hello,

    I am wondering if someone can help me.

    I am running mod_pagespeed module on two cpanel vps's, and it is working well.

    I am now looking at further customising the installation, however I need some advise regading setting up Virtual Hosts in cpanel servers?

    1. Using PageSpeed With Virtual Hosts - https://developers.google.com/speed/pagespeed/module/configuration

    I have the pagespeed.conf at the location: usr/local/apache/conf/pagespeed.conf

    Can you assist where I set up / create Virtual Hosts on a cpanel vps (running centos)?

    I asked over at Google groups: https://groups.google.com/forum/m/#!topic/mod-pagespeed-discuss/3E1AL88WUTg

    and they said:

    Can I ask how I would set up Virtual Hosts for my example domain: domain1.com.au so that I can add the following code for mod_pagespeed for that domain:

    Code:
    ModPagespeed On
    ModPagespeedInheritVHostConfig on
    # Direct Apache to send all HTML output to the mod_pagespeed
    # output handler.
    AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
    NameVirtualHost *:80
    <VirtualHost *:80>
      DocumentRoot /www/domain1.com.au
      ServerName www.domain1.com.au
      ModPagespeedEnableFilters combine_css
    </VirtualHost>
    Thanks for any help.

    Kind regards,
    Anthony
     
  2. xman888

    xman888 Well-Known Member

    Joined:
    Nov 23, 2005
    Messages:
    58
    Likes Received:
    1
    Trophy Points:
    158
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice