Difference between revisions of "Name VirtualHost"

From Supercomputación y Cálculo Científico UIS
(Created page with "The following example shows how to setup a name virtualhost in apache for dispatching several sites from the same server {{File|/etc/apache2/...|<pre><nowiki> <VirtualHost *:...")
 
Line 1: Line 1:
The following example shows how to setup a name virtualhost in apache for dispatching several sites from the same server
+
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 soportesc3.uis.edu.co and its subdomains from the local directory /var/www/support
  
 
{{File|/etc/apache2/...|<pre><nowiki>
 
{{File|/etc/apache2/...|<pre><nowiki>

Revision as of 15:43, 1 September 2014

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 soportesc3.uis.edu.co and its subdomains from the local directory /var/www/support

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