Difference between revisions of "Name VirtualHost"
From Supercomputación y Cálculo Científico UIS
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
<div class="panel panel-darker-white-border"> | <div class="panel panel-darker-white-border"> | ||
<div class="panel-heading"> | <div class="panel-heading"> | ||
− | <h3 class="panel-title"> | + | <h3 class="panel-title">Name VirtualHost</h3> |
</div> | </div> | ||
<div class="panel-body"> | <div class="panel-body"> |
Latest revision as of 01:56, 27 September 2016
Name VirtualHost
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>