Name VirtualHost

From Supercomputación y Cálculo Científico UIS
Revision as of 20:09, 9 April 2015 by Ltorres (talk | contribs)


OAR Administration

The following example shows how to setup a name virtualhost in apache for dispatching several sites from the same server. The setup shown below serves a website for the address and its subdomains from the local directory /var/www/support

File: /etc/apache2/...
<VirtualHost *:80>
        ServerAlias *
        DocumentRoot /var/www/support
        DirectoryIndex index.html index.php index.htm