Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 redirect user in following way.

This is part of my snippet from -ssl.conf

 RewriteEngine on   

 RewriteRule ^/login.html? /


If the user makes request to , I want to direct them to

Either I get a race condition or a 404 with apache log stating

Name-based SSL virtual hosts only work for clients with TLS server name indication support apache 2.4

share|improve this question
What's Apache logging when it sends the 404 response? Do you want to redirect the user, as in, change the address in their location bar? – Shane Madden Jul 28 '13 at 17:27
Posted the info from the apache log file. I could go either way as far as changing the url in address bar – user1361914 Jul 28 '13 at 17:29
What type of OS/Distro/browser are you using? Note: SNI wouldn't work on windows XP – ALex_hha Jul 28 '13 at 17:36
Apache24/windows/chrome – user1361914 Jul 28 '13 at 17:49

There ought to be some "file does not exist" warnings in the logs as well, but no matter.

Try adding a redirect to your rule:

RewriteRule ^/login\.html? / [R=301]

If that doesn't work, then it's likely a problem with virtual host mapping as the log entry is alluding to; provide the output from apachectl -S?

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.