Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a ServerAlias pointing to a url say "". I know this is perfectly possible in case of "" or "*" for eg.

share|improve this question
up vote 1 down vote accepted



Server[Name|Alias] accepts hostnames only.

To go beyond hostnames, you need to look into <Location>, Alias, Rewrite directives or the like.

If you had and wanted to redirect to, then you could do something like this:

<VirtualHost *:80>
    RewriteEngine on
    RewriteRule .* [R=301,L]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.