Web Servers

nginx

  • Website

  • How to get the status of nginx

    sudo systemctl status nginx
    
  • How to start nginx

    sudo systemctl start nginx
    
  • How to stop nginx

    sudo systemctl stop nginx
    
  • How to restart nginx

    sudo systemctl restart nginx
    
  • Where is the nginx configuration file?

    /etc/nginx/nginx.conf
    

Apache

  • Website

  • How to start Apache

    sudo service httpd start
    
  • How to stop nginx

    sudo service httpd stop
    
  • How to restart nginx

    sudo service httpd restart
    
  • Where is the Apache confguration file?

    /etc/httpd/conf.d/ssl.conf
    
  • How to check the Apache SSL Error Log

    sudo cat /var/log/httpd/ssl_error_log