You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Field <jf...@aaaq.com> on 2002/03/05 02:08:42 UTC
using www and non-www address - how to set-up?
Problem:
I want to set up virtual websites all using the same IP address. I want
people to reach the websites with either domain address, for example:
domain.com
www.domain.com
Question 1:
Do I need to set up a virtual domain in Apache for each domain? (I assume I
would just use the same document root for each). Or, is there a more
elegant solution?
Also, because an SSL certificate is only good for a specific domain, instead
of having to purchase two certificates, one for domain.com and one for
www.domain.com, I thought the better approach is to have the domain.com
address always change/default to www.domain.com. Then, I only need to
utilize one SSL certificate.
IOW, if a person types in domain.com to reach the website, when they get the
page, the address they got the page from is www.domain.com.
Question 2:
Assuming I've explained well enough what I'm trying to accomplish (to have
pages always returned from www.domain.com, even sub-home/index pages), what
is the best way to handle this?
Thanks,
Jeff
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: trailling slash
Posted by Daniel Lopez <da...@rawbyte.com>.
That behaviour is provided by mod_dir,
make sure it is available in your server
http://httpd.apache.org/docs-2.0/mod/mod_dir.html
On Tue, Mar 05, 2002 at 12:39:09PM +0800, jesse.linux wrote:
>
> is der a configuration about this trailing slash?...
>
> if ders no trailing slash like www.domain.com/bkr, it results a 404
> but if ders a trailing slash like www.domain.com/bkr/ it connects....
>
> any ideas?...
>
> ---------------------------------------------------------------------
> 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
> 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
For additional commands, e-mail: users-help@httpd.apache.org
Re: trailling slash
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 5 Mar 2002, jesse.linux wrote:
>
> is der a configuration about this trailing slash?...
>
> if ders no trailing slash like www.domain.com/bkr, it results a 404
> but if ders a trailing slash like www.domain.com/bkr/ it connects....
http://httpd.apache.org/docs/misc/FAQ.html#set-servername
Joshua.
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
trailling slash
Posted by "jesse.linux" <jd...@inq7.net>.
is der a configuration about this trailing slash?...
if ders no trailing slash like www.domain.com/bkr, it results a 404
but if ders a trailing slash like www.domain.com/bkr/ it connects....
any ideas?...
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: using www and non-www address - how to set-up?
Posted by Vasiliy Boulytchev <va...@boulytcheva.com>.
or through DNS
----- Original Message -----
From: "Eöl" <eo...@yahoo.com>
To: <us...@httpd.apache.org>; <jf...@aaaq.com>
Sent: Monday, March 04, 2002 6:11 PM
Subject: Re: using www and non-www address - how to set-up?
> In your vhost options set:
>
> ServerName: domain.com
> ServerAlias: *.domain.com
>
> cheers
>
> Eöl
>
> --- Jeff Field <jf...@aaaq.com> wrote:
> > Problem:
> >
> > I want to set up virtual websites all using the same
> > IP address. I want
> > people to reach the websites with either domain
> > address, for example:
> >
> > domain.com
> > www.domain.com
> >
> > Question 1:
> >
> > Do I need to set up a virtual domain in Apache for
> > each domain? (I assume I
> > would just use the same document root for each).
> > Or, is there a more
> > elegant solution?
> >
> > Also, because an SSL certificate is only good for a
> > specific domain, instead
> > of having to purchase two certificates, one for
> > domain.com and one for
> > www.domain.com, I thought the better approach is to
> > have the domain.com
> > address always change/default to www.domain.com.
> > Then, I only need to
> > utilize one SSL certificate.
> >
> > IOW, if a person types in domain.com to reach the
> > website, when they get the
> > page, the address they got the page from is
> > www.domain.com.
> >
> > Question 2:
> >
> > Assuming I've explained well enough what I'm trying
> > to accomplish (to have
> > pages always returned from www.domain.com, even
> > sub-home/index pages), what
> > is the best way to handle this?
> >
> > Thanks,
> >
> > Jeff
> >
> >
> >
> ---------------------------------------------------------------------
> > 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
> > For additional commands, e-mail:
> > users-help@httpd.apache.org
> >
>
>
> =====
> Never underestimate the extent of human stupidity.
> De Opresso Liber
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - sign up for Fantasy Baseball
> http://sports.yahoo.com
>
> ---------------------------------------------------------------------
> 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
> 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
For additional commands, e-mail: users-help@httpd.apache.org
Re: using www and non-www address - how to set-up?
Posted by E�l <eo...@yahoo.com>.
In your vhost options set:
ServerName: domain.com
ServerAlias: *.domain.com
cheers
E�l
--- Jeff Field <jf...@aaaq.com> wrote:
> Problem:
>
> I want to set up virtual websites all using the same
> IP address. I want
> people to reach the websites with either domain
> address, for example:
>
> domain.com
> www.domain.com
>
> Question 1:
>
> Do I need to set up a virtual domain in Apache for
> each domain? (I assume I
> would just use the same document root for each).
> Or, is there a more
> elegant solution?
>
> Also, because an SSL certificate is only good for a
> specific domain, instead
> of having to purchase two certificates, one for
> domain.com and one for
> www.domain.com, I thought the better approach is to
> have the domain.com
> address always change/default to www.domain.com.
> Then, I only need to
> utilize one SSL certificate.
>
> IOW, if a person types in domain.com to reach the
> website, when they get the
> page, the address they got the page from is
> www.domain.com.
>
> Question 2:
>
> Assuming I've explained well enough what I'm trying
> to accomplish (to have
> pages always returned from www.domain.com, even
> sub-home/index pages), what
> is the best way to handle this?
>
> Thanks,
>
> Jeff
>
>
>
---------------------------------------------------------------------
> 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
> For additional commands, e-mail:
> users-help@httpd.apache.org
>
=====
Never underestimate the extent of human stupidity.
De Opresso Liber
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org