Tuesday, March 6, 2012

VirtualHosts not working - ubuntu

1, default file:

root@l78:/etc/apache2# less sites-available/default
NameVirtualHost 7.27.22.7:80

ServerAdmin gxxxng@gmail.com

DocumentRoot /var/www


Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


ErrorLog /var/log/apache2/error.log

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

CustomLog /var/log/apache2/access.log combined


2, your website
root@li94-78:/etc/apache2# less sites-available/3wtemplates.com


ServerAdmin gxxxxxxxxx@gmail.com

ServerName 3wtemplates.com
ServerAlias www.3wtemplates.com

DocumentRoot /var/www/3wtemplates.com/htdocs

No comments:

Post a Comment