Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

[Discuss] Need Apache help



It doesn't matter what the file name is (well, actually, the
alpha-numeric order of apache configuration files will determine the
order in which they are loaded, and first match wins.)  Naming the
configuration after the domain (or subdomain) is the convention.
There must be a configuration file with ServerName or ServerAlias
xyz.example.com in order for that subdomain to be "answered" by
Apache.  The only other thing you need is to set the DocumentRoot to
your path /var/www/html/www.example.com/xyz if that is where you want
to serve the base of your content.

Greg Rundlett



On Fri, Jul 6, 2012 at 3:07 PM, scottmarydavidsam at gmail.com
<scottmarydavidsam at gmail.com> wrote:
>
> Hi,
>
> We've got Apache running on a text-only (no GUI) Linux server and I need to
> create a new, additional web site. The new site will point to data that is
> already on the server as part of another site, users currently go to
> www.mydomain.com/xyz/abc.htm, I want them to be able to go to
> xyz.mydomain.com and get to the same page. Our DNS has been updated to list
> the new host.
>
> Is it as simple as adding a file named xyz.mydomain.com in
> /etc/apache2/vhosts.d with all the appropriate settings and restarting
> apache2 or is there something else I need to do?
>
> Thanks,
> Scott
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org