HTTPS Stopped Working

Discussion in 'Apache' started by sirEgghead, Sep 24, 2012.

  1. #1
    I have a CentOS 5.5 box that I've been running Apache on for years. Today I added a virtual host to my config and upon restarting the server, I receive the following error:
    Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 11 of /etc/httpd/conf.d/mod_security.conf: Include directory '/etc/httpd/modsecurity.d/base_rules' not found
    Code (markup):
    I didn't have time to figure out why my base_rules are missing, so I just commented out the line in question, as well as another that came up after trying to restart again. When I setup the server, I installed modsecurity, but I don't remember setting any sites up for it. I may be mistaken. It's been a while.

    Anyway, now the server starts and runs fine, save one thing. I can't connect HTTPS over IPv4. It works fine over IPv6. It doesn't work from any computer on the network, nor from the localhost using lynx.
    Alert!: Unable to make secure connection to remote host.
    Code (markup):
    I will attach my httpd.conf, icinga.conf (where I added the virtual host today) and mod_security.conf files to this thread. In httpd.conf, I trimmed up a lot of the larger default "how to" commented sections so the file would fit on the post. In mod_security.conf, I commented the 2 lines in order to find them easier.

    Sorry if this is a foolish question. I'm having a rough troubleshooting day today and need a hand.


    Thomas
     

    Attached Files:

    sirEgghead, Sep 24, 2012 IP
  2. sirEgghead

    sirEgghead Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Apparently the 4th word of my post got edited out. It would be the name of my operating system. I'm sure it's pretty apparent.
     
    sirEgghead, Sep 24, 2012 IP
  3. sirEgghead

    sirEgghead Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well I deleted the new virtual host from the config and restarted the server and it works as planned. Added it back and it works. Still have the modsecurity rules missing, but I'll figure that out later.
     
    sirEgghead, Sep 24, 2012 IP
  4. wetbupa

    wetbupa Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Try to analyze mod_sec logs and they will help you to resolve the issue.
     
    wetbupa, Oct 8, 2012 IP