apache2 and virtual hosts
Hey all!
I have read I don't know how much howto but I don't understand how
resolve virtual host problem.
I've 2 real domains (i.e. domain1.com, domain2.com, web DNS panel to
internet is configurated to point to my static IP). Apache works ok.
PROBLEM: When I do elinks (or with firefox) www.domain1.com or
www.domain2.com I see only the contents of /var/www/ (that is ok for
www.domain1.com but www.domain2.com should be show
/home/domain2/domain2/htdocs/)
Thanks for help!
my conf:
apache 2.2.16-6+squeeze11
cat /etc/apache2/site-enabled/001-default:
<VirtualHost *:80>
ServerName domain1.com
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
cat /etc/apache2/site-enabled/domain2
<VirtualHost *:80>
ServerName domain2.com
ServerAlias www.domain2.com
# Indexes + Directory Root.
#DirectoryIndex index.html
DocumentRoot /home/domain2/domain2/htdocs/
</VirtualHost>
Pol
Reply to: