[Chugalug] Running multi sites on one(non virt) machine

Dave Brockman dave at brockmans.com
Sun Jun 23 17:51:04 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/23/2013 12:07 PM, Lynn Dixon wrote:
> Virtual hosts in apache are awesome. Put each sites web root in
> their own  directory. I have multiple users with their own domains
> and I keep their Web root in their home directory. Selinux is your
> friend for this. I can explain further if you need.
> 
> On Jun 23, 2013 11:48 AM, "Rod-Lists" <rod-lists at epbfi.com 
> <mailto:rod-lists at epbfi.com>> wrote:
> 
> What is the best practices on /www directory structure. Also what
> is best practices on directing traffic to the different sites? 
> Redirect to subdomains with masking? Reverse proxy and alt 
> ports(nginx)? Virtual ports with apache?



I prefer virtual users to system users, so I don't use home
directories, but I do have a separate wwwroot for each site/domain:

/var/www-vhosts:

/var/www-vhosts/domain1.com
/var/www-vhosts/domain2.com
/var/www-vhosts/domain3.com

Figure that out before you start fscking around with DNS
rewriting/masking, reverse proxies, etc.  None of those are going to
help your friend's two year old unpatched WordPress installation from
being hacked btw.....

Regards,

dtb


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRxzWIAAoJEMP+wtEOVbcdWf4H+wf/zqTXj3GnmlLIMk3q5njf
J3TTgTBsApHH9aH0M2O0WC8QPeAUOyXIEC8QrjUp6unmTMBWY/edFU9JFjc/3Dnd
ilKsMbvI/gtCOFjlKTftaIv5neXRfWKBPOnQOrNEKlhRT3b4o8aUkSqxMEgX1Ofh
5R45lTaO6/DQF20F51zmbe+IH9x2sdeI+QWbpBi1YHUDrHQW6rN1fTddEUiMc4H8
Rdub3yvij3uZzSW5K/Mum8KXDlqYP+JI4cO7ZNB7i/UFlOAXLomu4cCdX6ZLm5Cp
Q2f+tzE04yfpnxfdZnx0qnIzZNlxv32dRp3e+4UfhTePxrh73nTpI88NMUxKmCo=
=tLBa
-----END PGP SIGNATURE-----


More information about the Chugalug mailing list