Re: Virtual Host Not Working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 10, 2014 at 10:24 PM, Jim Borland <jborland@xxxxxxxxxxx> wrote:
> My server, which is located in the Amazon cloud, was just moved to a new
> location with a new IP address.  Nothing else was changed. However, the
> Apache Virtual Host, which has worked flawlessly for several years, is
> broken.  Apache server version is: Apache/2.2.16 (Ubuntu).
>
> I went to my DNS host and changed the names to point to the new IP address.
> But now, when I go to the hostname in my browser I end up at the default
> site instead of the one specified for the virtual host.  Here is my config
> file (httpd-vhosts.conf).
>
> ================================
>

Simplify your config:

> NameVirtualHost *:80
>
> <VirtualHost *:80>
>     ServerAdmin jborland77@xxxxxxxxx
>     ServerName ec2-75-101-136-229.compute-1.amazonaws.com
>     DocumentRoot "/var/www"
> </VirtualHost>
>
> <Directory "/home/jim">
>    Order allow,deny
>    Allow from all
> </Directory>
>
> <VirtualHost *:80>
>     ServerName atascaderoband.org
>     ServerAlias www.atascaderoband.org
>     DocumentRoot "/home/jim/atasband"
> </VirtualHost>
>
> <VirtualHost *:80>
>     ServerName www.slocountyband.org
>     ServerAlias slocountyband.org
>     DocumentRoot "/home/jim/band"
> </VirtualHost>
>

Work now?

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux