Difference between revisions of "Name VirtualHost"

From Supercomputación y Cálculo Científico UIS
Line 1: Line 1:
Back to [[Apache]]
+
__NOTOC__
  
 +
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>
 +
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[Apache]]</div></p>
  
 +
<div class="col-md-14">
 +
    <div class="panel panel-darker-white-border">
 +
        <div class="panel-heading">
 +
            <h3 class="panel-title">OAR Administration</h3>
 +
        </div>
 +
        <div class="panel-body">
 +
            <p>
 +
             
 
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
 
The setup shown below serves a website for the address soportesc3.uis.edu.co and its subdomains from the local directory /var/www/support
Line 13: Line 23:
 
</VirtualHost>
 
</VirtualHost>
 
</nowiki></pre>}}
 
</nowiki></pre>}}
 +
 +
            </p>
 +
        </div>
 +
    </div>
 +
</div>

Revision as of 20:09, 9 April 2015


Logo_sc33.png

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 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>