apache2 connection refused ubuntu code example Example: apache2 connection refused ubuntu Add your port to /etc/apache2/ports.conf file