httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Feather" <m...@akwe-xavante.demon.co.uk>
Subject Re: [users@httpd] Virtualhosts - Starting from afresh
Date Fri, 15 Jan 2010 13:22:36 GMT
Thank you Peter,

Do you mean............

<Virtualhost *>

ServerName www.example.co.uk:80
ServerAlias example.co.uk
ServerAlias www.example.com
ServerAlias example.com
DocumentRoot /path/to/blah/blah

etc...
etc...

</Virtualhost>

Mark

----- Original Message ----- 
From: "Peter J Milanese" <PMilanese@nypl.org>
To: "users" <users@httpd.apache.org>
Sent: Friday, January 15, 2010 12:24 PM
Subject: Re: [users@httpd] Virtualhosts - Starting from afresh


If you are using all zones to serve the same content, enter 3 of them in the 
configuration under the 'ServerAlias' directive.

Use the 'ServerName' directive for the your main identity zone.

-p


----- Original Message -----
From: "Mark Feather" [mark@akwe-xavante.demon.co.uk]
Sent: 01/15/2010 12:20 PM GMT
To: <users@httpd.apache.org>
Subject: [users@httpd] Virtualhosts - Starting from afresh



Hoping somebody can help me here.

I have an old Linux box running apache that's at least 7 years old.  It has
several virtualhosts setup on it that are working seamlessly.

I have built a new Linux box and I have the latest version of Apache up and
running with its main server configuration setup as I want it and everything
is working a treat.  The old box is still in service.

I'm now ready to setup virtual hosts on this new box in preparation for
service.  This box will when ready replace my old box shortly.

Now I'm hoping to setup virtualhosting differently, in a more efficient,
less time consuming way...... I hope.

On my old box I have virtualhosts setup separately for example:

www.example.co.uk
example.co.uk
www.example.com
example.com

A virtual host for each example above separate.

My question is: Is it possible to create one virtualhost directive for all
four examples above rather than having to do each one separately and if so
how is this achieved.

Mark


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message