Alias vs Redirect

5 posts / 0 new
Last post
#1 Sun, 03/27/2011 - 04:36
s.bagnatica

Alias vs Redirect

I'm looking at the option "Create alias websites by", inside Apache web site of template configuration. There are these options:

  • Creating Redirect virtual host
  • Creating permanent Redirect virtual host
  • Creating ProxyPass virtual host
  • Adding ServerAlias to parent

What do you think it's better to use?

Sun, 03/27/2011 - 10:30
andreychek

Howdy,

I like using the ServerAlias method... they're fast and simple! :-)

-Eric

Sun, 03/27/2011 - 10:46
Locutus

ServerAlias has the advantage that no additional Apache directive block is required for the alias server. It's just one line in the block of the parent domain.

Sun, 03/27/2011 - 15:35
s.bagnatica

Thanks for the answer! So 2-0 for the ServerAlias!

Someone using the Redirect features? I'd noticed that the main difference is that with ServerAlias the visitor don't see the main domain address, instead with Redirect it become redirected to the real url.

Sun, 03/27/2011 - 17:13
Locutus

That's right. Choice of method also depends on what you want the result to be. ServerAlias and ProxyPass will not show the web user that he's being "redirected", while the other two will.

Topic locked