SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2003
    Location
    Boston
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    apache2 ssl problem

    Hello,

    I have a problem I have been trying to set up a secure server with apache2 on a linux system, so this is what I did.

    Code:
    httpd-2.0.48> ./configure --prefix=/usr/loca/apache2 \
    > --enable-mods-shared=all \
    > --enable-deflate  \
    > --enable-ssl 
    
    httpd-2.0.48>make 
    httpd-2.0.48>make install
    I don't get any errors while configuring, making or installing,
    I created a certificate and a key with no problems, openssl is installed properly,
    when I issue
    Code:
    >openssl version
    gives me the correct version.

    I configured the httpd.conf file like this:

    Code:
    #LoadModule deflate_module modules/mod_deflate.so
    #LoadModule headers_module modules/mod_headers.so
    <IfDefine SSL>
    #  LoadModule ssl_module modules/mod_ssl.so
    </IfDefine>
    
    <Location />
      <IfModule mod_deflate.c>
        #compress content with type html, text, and css
        AddOutputFilterByType DEFLATE text/html text/plain text/css
        <IfModule mod_headers.c>
          #properly handle requests coming from behind proxies
          Header append Vary User-Agent
        </IfModule>
      </IfModule>
    </Location>
    
    #properly handle old browsers that do not support compression
    <IfModule mod_deflate.c>
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    </IfModule>
    So I had to comment out those first lines because when I started the service it was asking me for mod_deflate.so and mod_ssl.so. (this is the problem)

    I can start apache by issuing
    Code:
     bin>./apachectl startssl
    and I can verify this by doing
    Code:
    >ps -aux | grep httpd
    and I can see that worked.
    Now when I do https://localhost in my browser, nothing it takes me to some other website.

    I don't desperately need mod_deflate to work properly but I need mod_ssl to work so If I can uncomment this #LoadModule ssl_module modules/mod_ssl.so and make it work will be fine.

    thank you for your help

  2. #2
    Apache Expert i_like_php's Avatar
    Join Date
    Nov 2001
    Location
    Dallas, Texas
    Posts
    1,342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <IfDefine SSL>
    # LoadModule ssl_module modules/mod_ssl.so
    </IfDefine>

    take off the if define brackets off this line and uncomment the loadmodule ssl_module/mod_ssl.so

    what linux distro are you using and version of openssl are you using?
    i love php


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •