|
|

03-27-2005, 01:50 PM
|
|
Senior Member
|
|
Join Date: Nov 2004
Posts: 288
|
|
easier "redirect-only-domains"
hey there,
I'd like to have an easier way for creating redirect-only vhosts (i.e. a vhost which redirects from domain.com to www.domain.com).
If I didn't miss the easier way I need to:
fully create a new vhost for this (with all the options ) and set up a redirect-context which does the actual redirecting and then assign this to a listener.
Some easier way which only needs as input the domain and the redirect-target would be nice.
(something like a wizard?)
tia,
thomas
|

03-27-2005, 06:44 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
Right now LSWS treats domain.com and www.domain.com as the same domain name, the leading "www." will be ignored.
If you prefer one over another, you can use a simple URL rewrite url to do the redirect right now, no need to create another virtual host.
We can add a feature that forces to redirect domain.com to www.domain.com or vice versa with easy configuration, but cannot to an arbitrary domain name, does that fits your needs.
What is the easiest way to do that in other web servers, like Apache?
|

03-28-2005, 01:59 AM
|
|
Senior Member
|
|
Join Date: Nov 2004
Posts: 288
|
|
Quote:
|
Originally Posted by mistwang
Right now LSWS treats domain.com and www.domain.com as the same domain name, the leading "www." will be ignored.
|
uhm, what do you mean? there should be really a difference if I use them for different vhosts in the vhost-mappings.
Quote:
|
If you prefer one over another, you can use a simple URL rewrite url to do the redirect right now, no need to create another virtual host.
|
yeah I could. a bit overkill for that but would work.
Quote:
|
We can add a feature that forces to redirect domain.com to www.domain.com or vice versa with easy configuration, but cannot to an arbitrary domain name, does that fits your needs.
|
I guess that would just use a rewrite rule internally?
yeah that would fit my needs but I would prefer a more generic way so that it could be usable for others too .
Quote:
|
What is the easiest way to do that in other web servers, like Apache?
|
I've used something like that there:
Code:
<VirtualHost 192.168.1.10>
DocumentRoot /dev/null
ServerName domain.com
ServerAlias domain.org domain.biz subdomain1.domain.com
Redirect permanent / http://www.domain.com/
</VirtualHost>
that works for multiple domains redirecting to some given domain and even arbitrary domains .
anyway, its just a feature request which could make life easier for simple vhosts like that.
I can live with rewriting for now ... just need to get log-analyzing to work now and then I can switch some more domains over .
|

03-28-2005, 08:54 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
Quote:
|
Originally Posted by ts77
uhm, what do you mean? there should be really a difference if I use them for different vhosts in the vhost-mappings.
|
We will make them dfferent under special cases. For most situation, it is sufficient.
Quote:
|
Originally Posted by ts77
I guess that would just use a rewrite rule internally?
yeah that would fit my needs but I would prefer a more generic way so that it could be usable for others too  .
|
It will not be a rewrite rule if implemented as a dedicated feature, rewrite rule is not as efficient.
Quote:
|
Originally Posted by ts77
I've used something like that there:
Code:
<VirtualHost 192.168.1.10>
DocumentRoot /dev/null
ServerName domain.com
ServerAlias domain.org domain.biz subdomain1.domain.com
Redirect permanent / http://www.domain.com/
</VirtualHost>
that works for multiple domains redirecting to some given domain and even arbitrary domains  .
|
Looks like you do need to create a vhost for apache as well.
And similiar configuration can be archived in similar way in LSWS as well, the differences is that you need to add configurations in different places, but not in one configuration file.
Quote:
just need to get log-analyzing to work now and then I can switch some more domains over .
|
2.0.1 will be released tomorrow or the day after tomorrow to address most known issues.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:52 PM.
|
|