Results 1 to 4 of 4
well i have a https server, but this page can be accesed through through http though. now i want to force apache that eeven if the user users http protocol ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-17-2010 #1
HTTPS only help
well i have a https server, but this page can be accesed through through http though. now i want to force apache that eeven if the user users http protocol the server replies in https protocol.
any idea will be appreceiated. the configuration is in /etc/httpd/conf.d/ssl.conf
thanks in advance
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.


- 01-17-2010 #2
Send back a redirect, for example in the header, to the https port.
Debian GNU/Linux -- You know you want it.
- 01-18-2010 #3
i can't use iptables!!!! as because the machine has RHEL 5 is custom made. so no iptables. any oder idea???
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.


- 01-19-2010 #4
This is not IPTables!
You would set it up in an .htaccess file in your directory
Code:RewriteEngine On RewriteCond %{SERVER_PORT} !443 RewriteRule (.*) https://www.example.com/require-secure/ [R]If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn


Reply With Quote
