How to disable https binding on port 443?

Discussion in 'Apache' started by redss, Dec 30, 2008.

  1. #1
    How do I prevent apache from binding to port 443? HTTPS support is not needed so only want apache to bind to port 80

    My /etc/apache/httpd.conf has port 80, but no mention of 443 anywhere, yet netstat reveals it binding to port 443

    I have apache 1.3.29.0.2-5 on Debian Linux (knoppix)
     
    redss, Dec 30, 2008 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can i ask, why do you not require https?

    individual config or mod_ssl needs to be removed from config afaik.
     
    SSANZ, Dec 30, 2008 IP
  3. redss

    redss Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't require https because this is just a server I play around with at my house.

    How do I remove mod_ssl? I tried commenting out mod_ssl in modules.conf, then stopping and restarting httpd, but it still binds to 443.

    How can I change the port from 443 to a different port?
     
    redss, Dec 30, 2008 IP
  4. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Can i ask why your so worried about ssl?
     
    SSANZ, Dec 30, 2008 IP
  5. redss

    redss Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I need to use port 443 for ssh logins.
     
    redss, Dec 30, 2008 IP
  6. redss

    redss Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    How do I change the https port to a different port other than 443?
     
    redss, Dec 30, 2008 IP
  7. vx|brian

    vx|brian Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Look in your configuration lines for a "Listen 443" line, remove it and you should be good.
     
    vx|brian, Dec 30, 2008 IP
  8. redss

    redss Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    But there is no 443 anywhere in my httpd.conf - or in any other file in /etc/apache. Where else can I look for it?
     
    redss, Dec 30, 2008 IP
  9. vx|brian

    vx|brian Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If not then look into /etc/httpd/conf.d/ssl.conf if you're running Apache2

    If not then run the following in /etc/httpd

    grep '443' `find /etc/httpd`
     
    vx|brian, Dec 31, 2008 IP
  10. redss

    redss Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    found it in a conf.d file. Thanks!
     
    redss, Dec 31, 2008 IP
  11. sportsprognoz

    sportsprognoz Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #11
    It's driving me nuts for a long time for my project <a href="https://www.sportsprognoz.com" >sportsprognoz</a> .
    I've already disabled .httaccess and turned off ssl support it still redirects me to https.
     
    sportsprognoz, Mar 27, 2014 IP