[Ubuntu-US-CA] Server 14.04 new VirtualHost

Scott DuBois sdubois at linux.com
Sat Jul 19 01:19:01 UTC 2014


On 07/18/2014 06:05 PM, Mark Garrow wrote:
> Sorry Scott, 
> 
> That's over my head at this point.  However, a quick google search I
> came up the this link.  You've probably already seen it but I though I'd
> pass it along.
> 
> http://blog.code4hire.com/2011/03/setting-up-virtual-hosts-for-apache-on-ubuntu-for-local-development/
> 
> 
> 
>     It's the same. Good call though. : )
> 
>     I thought Liz Joseph had it fixed for me earlier but when I started
>     moving files around, I realized I was viewing files from the same
>     location under a different path. So I'm starting to wonder if I'm
>     chasing ghosts.
> 
>     If I place an HTML document in /srv/www and set that same path as my
>     DocumentRoot in a new VirtualHost and I set all permissions the same as
>     /var/www then how do I navigate from the browser to view the HTML
>     document located at /srv/www and not end up viewing the HTML document at
>     /var/www? How do I duplicate the results of /var/www to /srv/www?
> 
>     --
>     Scott DuBois
>     President EBLUG
>     BSIT Software Engineering
>     Freenode: Roguehorse
> 
>     --
>     Ubuntu-us-ca mailing list
>     Ubuntu-us-ca at lists.ubuntu.com <mailto:Ubuntu-us-ca at lists.ubuntu.com>
>     Modify settings or unsubscribe at:
>     https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-ca
> 
> 
> 
> 
> -- 
> 
> 
> Best regards,
> 
> Mark Garrow
> CalState Realty / C2 Financial Corp.
> <mailto:sdhomes at cox.net>markgarrow at gmail.com <mailto:markgarrow at gmail.com>
> 760-300-3639 Direct
> www.MarkGarrowRealtor.com <http://www.MarkGarrowRealtor.com>
> BRE 01276379
> 
> E-mails sent or received shall neither constitute acceptance of
> conducting transactions via electronic means nor create a binding
> contract until and unless a written contract is signed by the parties.
> 
> 

Thanks Mark, and I pretty much have that working as I can change the
browser path via the ServerName and arrive at the same location being
fed from /var/www.

In other words siteA/index.html and siteB/index.html in the browser
would feed the same index.html file from /var/www which in itself is
interesting but not the results I'm looking for.

I'm looking for siteA/index.html to be fed from /var/www and
siteB/index.html to be fed from /srv/www.

-- 
Scott DuBois
President EBLUG
BSIT Software Engineering
Freenode: Roguehorse




More information about the Ubuntu-us-ca mailing list