DEV Community

Md Tousif
Md Tousif

Posted on

Causes & Fixes Of Web Servers

Common Causes and Quick Fixes
Run Command to see web server is running or not: sudo systemctl status apache2

Run Command to see nginx: sudo systemctl status nginx

Common Causes and Quick Fixes
Web Server Stopped

Cause: Apache or Nginx service has crashed or is not running.
Fix: Restart the service using simple commands like systemctl restart nginx or systemctl restart apache2.
Firewall Blocking Cloudflare

Cause: Firewall rules are preventing Cloudflare IPs from connecting.
Fix: Whitelist Cloudflare IP ranges in your firewall settings so they can reach your server.
Server Listening on Wrong IP

Cause: The server is only listening on localhost (127.0.0.1) instead of the public IP.
Fix: Update your configuration to listen on all interfaces or the correct public IP.
SSL/TLS Mismatch

Cause: Cloudflare is set to Full (Strict) mode but your server does not have a valid SSL certificate.
Fix: Install a valid SSL certificate or adjust Cloudflare’s SSL settings.
Server Overload

Cause: Too many requests or insufficient resources.
Fix: Optimize your server configuration or upgrade resources to handle more traffic.
ESP32 Async Web Server Basics
The ESP32 async web server is a powerful way to handle multiple client requests without blocking the main program. Unlike traditional synchronous servers, which process one request at a time, the async model allows the ESP32 to manage several connections simultaneously.

This makes it ideal for IoT projects where devices need to respond quickly and reliably to multiple users or sensors.

Top comments (0)