This is the most difficult part of ImpressPages MultiSite installation because it depends on your environment. In general, the only thing you need to do is to instruct Apache to point all requests of any domain to the single directory where MultiSite has been installed.
This can be done by adding several lines at the end to your vhosts configuration file of Apache. Unfortunately this file can be in many different places on your system. It means you must figure that out on your own or consult your hosting administrator (or Support).
Here is example that works on many hosts when added at the end of vhosts configuration file:
You can find "/xxx/xxx/public_html" value if you navigate to example.com/getBaseUrl while logged in as admin.
After this change you need to restart Apache server for changes to take affect. How it is done, depends on Linux distribution.
If you done it right, you should see ImpressPages installation when you enter tmp1.example.com, xxx.example.com or anythingelse.example.com
If it doesn't work for you please consult hosting company or system administrator. Google search could also be helpful as it is not a rocket science. There are loads of similar questions already answered.
On CentOS in addition to above instructions you likely need to add following lines before VirtualHost directive:
Allow from all
cPanel httpd.conf file is being automatically regenerated. So cPanel users are recommended to add following code to /usr/local/apache/conf/includes/post_virtualhost_global.conf instead of above example:
suPHP_UserGroup [[username]] [[username]]
SuexecUserGroup [[username]] [[username]]
RUidGid [[username]] [[username]]
ScriptAlias /cgi-bin/ /home/[[username]]/public_html/cgi-bin/
Please replace following values:
- [[ip]] - your server ip address
- [[usename]] - cPanel user name
- [[/xxx/xxx/public_html]] - directory where you have installed ImpressPages. You can find this by navigating to example.com/getBaseUrl while logged in as admin
- [[email@example.com]] - your email
If you are using cPanel, you should have access to WHM. Please restart apache using WHM interface.
If server throws an error on restart or you still see error when visiting anything.example.com (see bellow), then please compare /usr/local/apache/conf/includes/post_virtualhost_global.conf to rules in /etc/httpd/apache/conf/httpd.conf and make your configuration similar to one in /etc/httpd/apache/conf/httpd.conf