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 restart
Back 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
G’day (anonymous guest) My Prefs
  • View Page Source
  • This clear IPSec security association,
    clear ipsec sa peer X.X.X.X
    

All Pages

Page views: 249

Private Tomcat

Linux

MySQL

Email

SQL Server

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

Gaming

ASP.NET

Persits ASPUpload

Wiki Help

Referring Pages:
...nobody

JSPWiki v2.8.1