Apache + SSL as a module
hey everybody , I'm going to apply SSL to my Apache , when I read the document , I found that there's 2 way to use SSL with Apache , the fist is installing Apache-SSL , that's easy and simple way but we have to type https:// insteal of http:// . The second way is that installing SSL as a module of Apache , and I think that was a betterway . But there something I can find out howto in the document . So I would like go get some help from you .
I download apache and mod_ssl to my /tmp , unzip it all . Now going to the mod_ssl forder , I configure it as : Quote:
Quote:
Quote:
When I try : http://localhost/ , it going to my home page . When I try : https://localhost/phpPgAdmin/ , it going to my phpPgAdmin ( I've installed it successfuly with http ) . My document root is : DocumentRoot "/usr/local/apache/" and phpPgAdmin I put in : <Directory "/usr/local/apache/phpPgAdmin"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> I don't know how to change those option in the <Directory </Directory> to be able to run https://localhost/phpPgAdmin . I do not want to use virtual host too because I do not have any dns to test . As gmail , I see that the login form work with ssl , but when login success , I turn back to http only . How should I do ? |
Have you configured your virtual hosts?
<VirtualHost ServerIP:80> Here put Document root for http </VirtualHost> <VirtualHost ServerIP:443> Here put Document root for https </VirtualHost> |
But my friend tell me that if I want to use virtual host , I have to had a DNS server ( can not try http://10.0.0.4/phpPgAdmin ) . It's right ?
|
Here is a good reference
http://httpd.apache.org/docs-2.0/vhosts/examples.html |
All times are GMT -5. The time now is 08:48 PM. |