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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51a088e1.9060...@fuckaround.org

Reply via email to