setting up virtual hosts for domains on cpanel vps
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:
[QUOTE]"IF I understand Apache correctly there must be a VirtualHost in the conf files somewhere for that domain to work.
cPanel probably automatically creates it for you in one of its config files.
I think the quickest solution would be to find it (presumably under /var/cpanel or wherever it's installed) and edit that file.
The problem there is that I'd imagine if you reconfigure the domain using cPanel it'll lose that change.
Perhaps a Q to the cPanel forum will come up with a proper solution?"
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:
Thanks for any help. Kind regards, Anthony
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:
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
DocumentRoot /www/domain1.com.au
ServerName www.domain1.com.au
ModPagespeedEnableFilters combine_css
Thanks for any help. Kind regards, Anthony
-
Hello, Can I follow the tutorial here: [url=http://www.karlrixon.co.uk/writing/editing-virtualhost-settings-in-whm-cpanel/]Editing Virtualhost Settings in WHM / cPanel | Karl Rixon ? Kind regards, Anthony 0 -
Hello :) The following document should be helpful to you: EasyApache: Changes Contained Within a VirtualHost Directive Thank you. 0
Please sign in to leave a comment.
Comments
2 comments