• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications

    Operating systems & applications Looking for that application for Windows? needing advice with your Linux setup? - ask here! Add RSS Feed

    Reply
     
    LinkBack Thread Tools
    Old 12-04-2005, 09:54 AM   #1 (permalink)
    Agent of the System
     
    ikonia's Avatar
     
    Join Date: May 2004
    Location: South West UK (Bath)
    Posts: 3,666
    Thanks: 35
    Thanked 62 Times in 45 Posts
    Apache 1.3 Stop port 80 listening

    hi all,

    I'm looking at an unsual conifguration for apache.

    I currently have it listening on port 80 for http and 443 using mod_ssl

    I want to stop http traffic listening, so I want to stop port 80 from listening full stop.

    This way apache only listening on 443 and responds with mod_ssl
    (I know there are other ways of doing this but this is the way I have to go at the moment)

    If I set the Listen directive to 443 - then apache will refuse to start as that port will already be in use (by mod_ssl)

    If I comment out the Listen directive then apache won't start as it needs a socket to bind too.

    How (if possible) can I set apache to not listen on any ports other than mod_ssl on 443.

    Thanks

    It is Inevitable.....

    ikonia is offline   Reply With Quote
    Old 12-04-2005, 07:12 PM   #2 (permalink)
    Registered+
     
    Join Date: Mar 2005
    Posts: 26
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Don't know what OS you're using, but in the first instance do you have two seperate httpd.conf files? :-

    /etc/apache/httpd.conf and
    /etc/apache-ssl/httpd.conf

    you could try :-

    ~#>apachectl stop ; apache-sslctl start ; nmap localhost ( see what ports are open )

    Rig 1: Asus A7V600, XP2000+ , 512MB DDR 2700, GeForce2 MX 400, EMU10k1 (rev 04), Bt878 (rev 11)
    Rig 2: Asus A7V333, XP2000+ , 512MB DDR 2700, nvidia TNT2, YMF 724
    yngvai is offline   Reply With Quote
    Old 13-04-2005, 10:58 AM   #3 (permalink)
    Agent of the System
     
    ikonia's Avatar
     
    Join Date: May 2004
    Location: South West UK (Bath)
    Posts: 3,666
    Thanks: 35
    Thanked 62 Times in 45 Posts
    yngvai - a good try, but I think thats a specific linux distribution thing, as apache-sslctl doesn't exist as part of apache.

    I actually think this is impossible, in that to use mod_ssl apache needs to be running to load the module, and for apache to run it needs to listen on a port so I don't think my origional question would be possible at all.

    It is Inevitable.....

    ikonia is offline   Reply With Quote
    Old 13-04-2005, 11:55 AM   #4 (permalink)
    Crazy HEXUS.net
     
    Stoo's Avatar
     
    Join Date: Jul 2003
    Location: The Void.. Floating
    Posts: 10,417
    Thanks: 27
    Thanked 60 Times in 48 Posts
    Stoo's system
    Can't you just filter port 80 at a firewall etc ?

    Originally Posted by silent ben
    Nanotechnology is going to be huge.
    Stoo is offline   Reply With Quote
    Old 13-04-2005, 01:00 PM   #5 (permalink)
    Registered+
     
    Join Date: Mar 2005
    Posts: 26
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Originally Posted by ikonia
    I actually think this is impossible, in that to use mod_ssl apache needs to be running to load the module, and for apache to run it needs to listen on a port so I don't think my origional question would be possible at all.
    Hi Ikonia

    If your purpose is to solely run apache with openssl on port 443, but not on port 80, it should be possible. It's just that my distro does it all for me and I have to mess up my
    setup here to investigate the problem. If you're trying to do something else, sorry I misunderstood..

    [edit]

    A couple of links I found, in case you didn't already find them yourself:-

    http://lucas.ucs.ed.ac.uk/tutorials/apache/1x.ssl.html
    http://www.apache-ssl.org/#FAQ

    Rig 1: Asus A7V600, XP2000+ , 512MB DDR 2700, GeForce2 MX 400, EMU10k1 (rev 04), Bt878 (rev 11)
    Rig 2: Asus A7V333, XP2000+ , 512MB DDR 2700, nvidia TNT2, YMF 724

    Last edited by yngvai; 13-04-2005 at 01:16 PM..
    yngvai is offline   Reply With Quote
    Old 13-04-2005, 04:08 PM   #6 (permalink)
    Agent of the System
     
    ikonia's Avatar
     
    Join Date: May 2004
    Location: South West UK (Bath)
    Posts: 3,666
    Thanks: 35
    Thanked 62 Times in 45 Posts
    Stoo - yes we could, but as I said my first post there are better and more correct ways of doing this but for the purpose of this debate - this is the way I have to go.

    yngvai - reading through your linkx now.

    I'd be very interested in seeing your /etc/apache-ssl/httpd.conf and your apache-sslctl script.

    It is Inevitable.....

    ikonia is offline   Reply With Quote
    Old 13-04-2005, 04:42 PM   #7 (permalink)
    Registered+
     
    Join Date: Mar 2005
    Posts: 26
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Originally Posted by ikonia
    yngvai - reading through your linkx now.

    I'd be very interested in seeing your /etc/apache-ssl/httpd.conf and your apache-sslctl script.
    Kewl ... hope it helps, I've pm'd you regarding the conf files. Let me know if it's any use.

    Rig 1: Asus A7V600, XP2000+ , 512MB DDR 2700, GeForce2 MX 400, EMU10k1 (rev 04), Bt878 (rev 11)
    Rig 2: Asus A7V333, XP2000+ , 512MB DDR 2700, nvidia TNT2, YMF 724
    yngvai is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    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 On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On
    Forum Jump



    All times are GMT. The time now is 06:36 PM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned. HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    Powered by vBulletin® Version 3.7.4
    Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.2.0
    © Copyright 2008 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.