LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 20-Jan-2009, 09:00 AM
Junior Member
 
Join Date: Jan 2009
Posts: 5
kraftm 0 reputation points
Default redirect http to https doesn't work

Hi!

I'm using Apache 2.2.3. and SLES 10.

I configured a virtual server with SSL, wich works properly.
Now I want to redirect users browsing "domain.de" to "https://domain.de" instead of "http://domain.de".

Thats my VirtualServer-Config to realize it:

Code:
<VirtualHost 10.10.123.113:443>
DocumentRoot "/srv/www/meinedomain.de/htdocs"
<Directory "/srv/www/meinedomain.de/htdocs">
allow from all
Options +Indexes
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/meinedomain.de.cert
SSLCertificateKeyFile /etc/ssl/meinedomain.de.key
</VirtualHost>

<VirtualHost 10.10.123.123:80>
Redirect / "https://10.10.123.123:443"
</VirtualHost>
When I'm browsing "10.10.123.123" I get the following Error-Site:

Code:
Bad request!

    Your browser (or proxy) sent a request that
    this server could not understand.

If you think this is a server error, please contact
the webmaster.

Error 400

  bogus_host_without_reverse_dns
  
  Fri Jan 16 11:09:16 2009
  Apache/2.2.3 (Linux/SUSE)
In the Errorlog, I can't find anything, just in the Accesslog the following:
Code:
10.10.123.007 - - [19/Jan/2009:09:44:45 +0100] "GET /" 400 979 "-" "-"
Does anyone have an idea what the reason of my problems could be?

Best Regards
Max
Reply With Quote
 

Tags
apache, http, https, redirect, sles 10

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:27 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2