Jon Bringhurst on 22 Sep 2007 21:36:36 -0000


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

Re: [PLUG] Apache2 config question

  • From: Jon Bringhurst <fintler@gmail.com>
  • To: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] Apache2 config question
  • Date: Sat, 22 Sep 2007 17:36:23 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=ZmMsrRGtHZ6Y9mHaWCCEjUdpeiZxjTOtNUon9GDTSA0=; b=OJuhgafA0+m3svBDxF/bHLVHX/m01m7F+u2GlMtU7fGfyzjI3sAQMiLTWFp+ODDaA02BVgx+JKJlpsTCozNeCqvKOjAxMZFOIgDu/nP/ESDTQlD/XtKrbrfAH8ILwoMgJkII/XrObqT+paAA+hgXuVferSeq8BW1QtOdQRZrshw=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

Hey Eric,

It looks like if you're going to be entering the world of virtualhosts. You're likely going to put a:

NameVirtualHost *

then a:

<VirtualHost *>
    ...
</VirtualHost>

for the *.somedomain.com.

Then you would have a:

<VirtualHost *>
   ServerName mercury.somedomain.com
    ...
</VirtualHost>

for the mercury.somedomain.com. Sorry this is so unorganized, but I hope that helps a bit. I don't have much time to replay to this atm.

-Jon

On Sep 22, 2007, at 5:29 PM, Eric wrote:

Disclaimer: I rarely have to mess with Apache2 config and it's a good thing
because I only know *approximately* what I'm doing.



I always thought the URL was servername.domainname like this:

 http://mercury.somedomain.com
     references the SERVER NAME mercury and the domain SOMEDOMAIN.COM

 In Webmin, I see the virtual server set up to handle:
 ADDRESS: nnn.nnn.nnn.nnn
 SERVER NAME: somedomain.com
 PORT:  80
 DOCUMENT ROOT: /var/www

and this will refer all requests (*.somedomain.com) to the /var/www directory

How do I then specify that ONE SERVER NAME, "mercury" for example, is directed
elsewhere like this:??


  http://*.somedomain.com         ->  /var/www
  http://mercury.somedomain.com   ->  /var/www2


Is there ->somewhere<- an easy-to-understand intro to the world of apache2
configuration? I'm spinning my wheels and I need to get the web site
development started... not become an Apache expert :-P



TIA Eric

--
#  Eric Lucas
#
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug