Changes

Jump to navigation Jump to search
779 bytes added ,  13:19, 21 November 2015
Created page with "Web Server for linux.<br /> Paths:<br /> /etc/apache2/sites-available<br /> /etc/apache2/sites-enabled (symbolic links to sites-available/*.conf files)<br /> == Virtual Hosts..."
Web Server for linux.<br />
Paths:<br />
/etc/apache2/sites-available<br />
/etc/apache2/sites-enabled (symbolic links to sites-available/*.conf files)<br />

== Virtual Hosts ==
Apache allows to have multiple web sites on the same server. To do this go to sites-available and create a<br />
.conf file for each host you whant containing the following:

<source lang="apache">
<VirtualHost *:80>
ServerAdmin rafael@herrerosolis.com
DocumentRoot /var/www/webfolder
ServerName www.yourwebpagename.com
ServerAlias www.yourwebpagename.com

ErrorLog /var/www/yourwebfolder/logs/error.log

# Posible values include: debug, info, notice, warn, error, crit.
# alert, emerg.

CustomLog /var/www/wiki/logs/access.log combined

</VirtualHost>
</source>

Navigation menu