This site is hosted and sponsored by hyve.com specialists in Cloud Hosting UK and VMware Hosting. If you are interested in our services please call us for chat on 0800 612 2524
Apache Virtual Hosts#
For multiple domains and subdomains on one IP address#
Create a file called vhost.conf in /etc/httpd/conf.d
NameVirtualHost *:80
<VirtualHost *:80>
ServerName $domain
DocumentRoot /var/www/html/$domain
<Directory /var/www/html/$domain>
Options Indexes FollowSymLinks +ExecCGI
AllowOverride All
Allow from All
Order Allow,Deny
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName $domain2
DocumentRoot /var/www/html/$domain2
<Directory /var/www/html/$domain2>
Options Indexes FollowSymLinks +ExecCGI
AllowOverride All
Allow from All
Order Allow,Deny
</Directory>
</VirtualHost>
- Set Permissions
chmod 755 /var/www/html/$domain chown apache:apache /var/www/html/$domain
- Restart Apache
service apache restartBack to Linux
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This page (revision-2) was last changed on 28-Jan-2012 14:39 by Hyve Support