Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Apache help

NST
rrhoads
2012-12-05
2012-12-12
  • rrhoads
    rrhoads
    2012-12-05

    I did manage to get SmokePing to work completely and I thank you for the help but I would like the site to come up under HTTP and not HTTPS. How can I do that?

     
  • In your /etc/httpd/conf/httpd.conf file, change the the following line:

    Listen 127.0.0.1:80

    To:

    Listen 80

    That should enable connections to port 80 from any IP address.

     
  • rrhoads
    rrhoads
    2012-12-05

    I do want to keep some restrictions. Could I list that directive in the conf file for smokeping in /etc/httpd/conf.d ?

     
  • rrhoads
    rrhoads
    2012-12-05

    And that actually didn't work, still https only. Is there anything that needs to go into the site conf file in conf.d? In that file I have Directory directive, some options, end the Directory and a scriptalias and an alias.

     
  • Did you restart the httpd service after making the change?

    systemctl restart httpd.service

    The Listen change only allows the httpd service to listen for connections from external hosts on port 80 (http connections from the outside world). Check the Allow setting in /etc/httpd/conf/httpd.conf in the document root setting to see what IP addresses are permitted to connect to your machine (look for <Directory /> in your config file).

    I'm assuming you already created a /etc/httpd/conf.d/smokeping.conf file to configure the httpd service for access to your new tool. If not here's a simple example configuration which allows people on the 192.168.1.0/24 network to browse the /tmp directory on the NST system using HTTP to "/temp" on the NST (like: http://192.168.1.140/temp/).

    <Directory "/tmp">
      Options FollowSymLinks Indexes
    
      Order deny,allow
      Deny from all
      Allow from 127.0.0.1 192.168.1.0/24
    
      IndexOptions FancyIndexing SuppressDescription FoldersFirst VersionSort NameWidth=* SuppressHTMLPreamble
    
      AuthType Basic
      AuthName "NST WUI: System Management"
      AuthUserFile "/etc/httpd/conf/htuser.nst"
      require valid-user
    </Directory>
    
    Alias /temp "/tmp"
    

    NOTE: The above is a simple file serving area - the smokeping utility may require additional httpd configuration.

     
  • rrhoads
    rrhoads
    2012-12-12

    Thank you!