Re: Configuring apache and smokeping on dynamic IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2019-05-15 at 16:58 -0400, Alex wrote:
> I have a fedora30 desktop on a dynamic IP behind a cable modem that
> I'd like to configure to support apache and specifically smokeping.
> The problem I'm having I believe is with php-fpm. I've installed and
> configured it, but trying to access it results in a gateway timeout
> error. I do see entries in the logs when this fails, so I'm sure I'm
> at least reaching the desktop successfully.
> 
> The desktop is on a dynamic IP (192.168.9.110) behind a cable modem
> with a dynamic IP. I've configured port forwarding for port 8027 to
> forward to port 8027 on the machine itself where apache is listening.
> I've also configured port 8022 to forward to port 8022 on the desktop
> to provide ssh access, and can ssh to it successfully.
> 
> I've configured the smokeping.conf apache config to allow any IP to
> communicate with it for now. I can also reach the default fedora test
> page successfully.
> 
> What is the minimum apache config that is necessary to work with
> smokeping without configuring a virtual host? I haven't changed the
> /etc/httpd/conf/httpd.conf, /etc/httpd/conf.d/ssl.conf and
> /etc/httpd/conf.d/fcgid.conf files from the default. I've just
> changed the Listen statement in ssl.conf to use 8022 instead of 80.

Normally, the SSL config listens to port 443, not 80.  And some clients
will refuse to make HTTPS connections to port 80 (or other unusual
ports).  There could be some SELinux issues with unusual ports, too.

I'm not sure about SSL configurations, but with the main HTTP
configuration, it's possible to listen to more than one port.  That way
local users can test connecting to the usual ports without having to
type port numbers into URIs.

> Here is my /etc/httpd/conf.d/smokeping.conf:
> <Directory "/usr/share/smokeping" >
>   Require local
>   Require ip 68.195.193 192.168
> </Directory>
> <Directory "/var/lib/smokeping" >
>   Require local
>   Require ip 68.195.193 192.168
> </Directory>

You've put in some requirements.  Does your address match the
requirement rules?  I see in one of your below tests that it's
different:

> The /var/log/php-fpm/www-error.log file is empty. After attempting to
> reach the system remotely, I see the following message in the apache
> error_log from my remote IP:
> 
> Wed May 15 15:42:17.997621 2019] [fcgid:warn] [pid 14476:tid
> 139916520441600] [client 68.195.199.42:34118] mod_fcgid: read data
> timeout in 40 seconds


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux