Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to redirect user in following way.

This is part of my snippet from -ssl.conf

<virtualhost>
 RewriteEngine on   

 RewriteRule ^/login.html? /

</virtualhost>

If the user makes request to https://mysite.com/login.html , I want to direct them to https://mysite.com/

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

1 Answer 1

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

 
discard

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.