Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-19-2004, 08:58 PM   #1
Registered: Aug 2004
Posts: 91

Rep: Reputation: 15
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 :

cd mod_ssl-2.8.12-1.3.27/
./configure --with-apache=../apache_1.3.1
Now going to apache forder and tried :

# ./configure \
> --prefix=/usr/local/apache \
> --disable-module=all \
> --server-uid=apache \
> --server-gid=apache \
> --enable-module=access \
> --enable-module=log_config \
> --enalbe-module=dir \
> --enable-module=mime \
> --enable-module=auth \
> --enable-module=so \
>--enable-shared=ssl \
>--enable-module=ssl \
> --enable-module=rewrite


make install
And now I going to configure apache by vi httpd.conf . When looking at that , I was happy because there are some thing for me in it . Here we are :

<IfDefine SSL>
LoadModule ssl_module libexec/

<IfDefine SSL>
AddModule mod_ssl.c
So I think SSL was install as a module of Apache . But I want that :
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

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 ?
Old 09-20-2004, 02:20 AM   #2
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
Have you configured your virtual hosts?

<VirtualHost ServerIP:80>
Here put Document root for http

<VirtualHost ServerIP:443>
Here put Document root for https
Old 09-20-2004, 02:52 AM   #3
Registered: Aug 2004
Posts: 91

Original Poster
Rep: Reputation: 15
But my friend tell me that if I want to use virtual host , I have to had a DNS server ( can not try ) . It's right ?
Old 09-20-2004, 03:16 AM   #4
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
Here is a good reference


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Apache SSL goestin Linux - Networking 1 10-19-2005 10:45 PM
apache and apache-ssl questions merana Debian 4 03-10-2005 10:10 AM
SSL and Apache bigdogg Linux - Software 25 07-22-2004 09:24 AM
SSL and Apache jqcaducifer Linux - Networking 1 08-04-2003 07:44 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration