The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    53
    Likes Received:
    0
    Trophy Points:
    6
    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:
    53
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page