You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by patrice molinchaeux <pa...@engineer.com> on 2021/05/05 07:14:38 UTC

[users@httpd] port 80 curl connection refused.

Hi,



I can ping the DNS IP.



I have done just setup a fresh install of apache2 on ubuntu 20.04

http://localhost is ok

port 80 is open.



sudo ufw status  
Status: active

To                         Action      From  
\--                         \------      \----  
22/tcp                     ALLOW       Anywhere  
80                         ALLOW       Anywhere  
22/tcp (v6)                ALLOW       Anywhere (v6)  
80 (v6)                    ALLOW       Anywhere (v6)



I followed these instructions a number of occasion just to make sure I am
doing it right.

https://ubuntu.com/tutorials/install-and-configure-apache#3-creating-your-own-
website

I have two different  virtual hosts setup in the apache2 configuration.



I have not overlooked these directions. I do have a DNS IP.

https://httpd.apache.org/docs/2.4/vhosts/examples.html

### Note

Creating virtual host configurations on your Apache server does not magically
cause DNS entries to be created for those host names. You _must_ have the
names in DNS, resolving to your IP address, or nobody else will be able to see
your web site. You can put entries in your `hosts` file for local testing, but
that will work only from the machine with those `hosts` entries.



The browser is unable to connect.



and

curl http://123.456.7.543 (example ip address)  
curl: (7) Failed to connect to 123.456.7.543 port 80: Connection refused



what have a I missed  ?



Thanks









\--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] port 80 curl connection refused.

Posted by patrice molinchaeux <pa...@engineer.com>.

Thanks

had to reset the router for some reason.

everything rocks !



**Sent:**  Wednesday, May 05, 2021 at 9:34 AM  
**From:**  "Dino Ciuffetti" <di...@tuxweb.it>  
**To:**  users@httpd.apache.org  
**Subject:**  Re: [users@httpd] port 80 curl connection refused.

> curl <http://123.456.7.543> (example ip address)  
>  curl: (7) Failed to connect to 123.456.7.543 port 80: Connection refused

>

>  

  
  
  
"Connection refused" means that your apache service is not bound to port
TCP/80, it's down, or your routing send HTTP traffic to another host where
apache is not installed.  
  
Check if apache httpd is up and running, check if it's working on port 80 and
also check your routing.

\--------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] port 80 curl connection refused.

Posted by Dino Ciuffetti <di...@tuxweb.it>.
curl http://123.456.7.543 (http://123.456.7.543) (example ip address)
curl: (7) Failed to connect to 123.456.7.543 port 80: Connection refused
"Connection refused" means that your apache service is not bound to port TCP/80, it's down, or your routing send HTTP traffic to another host where apache is not installed.

Check if apache httpd is up and running, check if it's working on port 80 and also check your routing.