An entry in /etc/hosts file may help. varun On May 12, 2014 3:56 AM, "Mike Steigerwald" <[email protected]> wrote:
> I'm struggling to get virtual server working on my local apache > installation. Whenever I try to browse to http://cgsi7.dev (the name of > the virtual server), the browser starts searching the internet, instead of > my local installation. > > The output from sudo apache2ctl -S makes me believe cgsi7.dev is enabled: > > VirtualHost configuration: > wildcard NameVirtualHosts and _default_ servers: > _default_:443 ubuntu (/etc/apache2/sites-enabled/default-ssl:2) > *:80 is a NameVirtualHost > default server ubuntu (/etc/apache2/sites-enabled/000-default:1) > port 80 namevhost ubuntu > (/etc/apache2/sites-enabled/000-default:1) > port 80 namevhost cgsi6.dev > (/etc/apache2/sites-enabled/cgsi6.dev:1) > port 80 namevhost cgsi7.dev > (/etc/apache2/sites-enabled/cgsi7.dev:1) > port 80 namevhost ubuntu (/etc/apache2/sites-enabled/default:1) > Syntax OK > > > I've used this syntax before, so I think it's the best I can do: > > <VirtualHost *:80> > ServerName cgsi7.dev > ServerAlias *.cgsi7.dev > DocumentRoot /home/drupalpro/websites/cgsi7.dev > <Directory /home/drupalpro/websites/cgsi7.dev> > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > allow from all > </Directory> > </VirtualHost> > > > I think the permissions on the DocumentRoot are correct > > drupalpro@ubuntu:~$ ls -ld /home/drupalpro/websites/cgsi7.dev > lrwxrwxrwx 1 drupalpro drupalpro 38 May 5 09:23 > /home/drupalpro/websites/cgsi7.dev -> /home/drupalpro/websites/ > test.cgsi.org > > Likewise with /etc/apache2/sites-enabled: > > drupalpro@ubuntu:~$ ls -ld /etc/apache2/sites-enabled > drwxr-xr-x 2 drupalpro drupalpro 4096 May 11 17:18 > /etc/apache2/sites-enabled > > > What else should I check? > > Thanks, > Mike Steigerwald > > https://www.facebook.com/MFSteigerwald > https://twitter.com/MFSteigerwald <https://twitter.com/#!/MFSteigerwald> > http://www.linkedin.com/in/mikesteigerwald > > Michael Steigerwald > 4041 12th Ave S. > Minneapolis, MN 55407-3239 > [email protected] > 612.875.1888 >
