[Discuss] Need Apache help

Greg Rundlett (freephile) greg at freephile.com
Fri Jul 6 15:24:05 EDT 2012


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



More information about the Discuss mailing list