Re: apache2 and virtual hosts

2013-05-25 Thread Paul Lane
On Sat, May 25, 2013 at 12:24 PM, Karl E. Jorgensen wrote: > Hi > > On Sat, May 25, 2013 at 10:48:17AM +0100, Pol Hallen wrote: > > Ah.. But "http://www.domain2.com"; is NOT the same as > "http://domain2.com"; - the "www" is merely a common convention. It > actually makes it a different site. > >

Re: apache2 and virtual hosts

2013-05-25 Thread Karl E. Jorgensen
Hi On Sat, May 25, 2013 at 10:48:17AM +0100, Pol Hallen wrote: > 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 stat

Re: apache2 and virtual hosts

2013-05-25 Thread Pol Hallen
> Try defining the directories as in the top VirtualHost stanza. I > believe just defining the DocumentRoot is not enough. Apache needs to > know what it can due there. Also, make sure that the www-data user has > reading permission of the directory in /home/domain2/domain2/htdocs/. > Or at least t

Re: apache2 and virtual hosts

2013-05-25 Thread Paul Lane
On Sat, May 25, 2013 at 4:48 AM, Pol Hallen wrote: > apache 2.2.16-6+squeeze11 > > cat /etc/apache2/site-enabled/001-default: > > >ServerName domain1.com > DocumentRoot /var/www/ > > Options FollowSymLinks > AllowOverride None > >

Re: apache2 and virtual hosts

2013-05-25 Thread Pol Hallen
> Can you show full apache config ? Sure! Thanks! :-) I didn't modify none. I worked only with virtualhost and I've: libapache2-mod-vhost-hash-alias installed; ls mods-enabled: actions.load authz_default.loadautoindex.load dir.load negotiation.conf reqtimeout.load ssl.load vhost

Re: apache2 and virtual hosts

2013-05-25 Thread Alex Dubinin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > 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

apache2 and virtual hosts

2013-05-25 Thread Pol Hallen
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.doma