Select Page

VHosts

To etc/apache2/apache.conf

add:

Include /etc/apache2/sites-enabled/
NameVirtualHost *:80

<ifmodule mod_ssl.c>
NameVirtualHost *:443
</ifmodule>

Then in sites-available:

<VirtualHost *:80>
ServerName 176.34.234.155
DocumentRoot /var/www/corpsite/corpsite/web/
ServerAlias 176.34.234.155
</VirtualHost>

Replacing the Server IP with your domain eg:

<VirtualHost *:80>
ServerName great-digital-mags.com
DocumentRoot /var/www/great-digital-mags/web/
ServerAlias *great-digital-mags.com/
</VirtualHost>

 

 

Example from the Corpsite:

 

<VirtualHost *:80>
ServerName imagine-publishing.co.uk
DocumentRoot /var/www/corpsite/corpsite/web/
ServerAlias *imagine-publishing.co.uk

<Directory /var/www/corpsite/corpsite/web/* >
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>