For some reason just can’t get my site to connect to apache2. I’m hosting it from a laptop with Ubuntu Server as the OS. I’ve tried the ports.conf file in different configs but when i put my public ip (the one i think it should be) I get an error from apache saying apache2 can’t bind to my ip and no listening sockets available. My DNS is setup through CloudFlare and i’ve added both nameservers to my domain however i’m getting error 522 on my site
“An Error 522 means that the request was able to connect to your web server, but that the request didn’t finish”
If I remove my public ip from the ports.conf apache runs but i’m assuming it’s running from my private ipv4 and not my public one which obviously for hosting a site is not ideal and even then I still get the cloudflare error 522 on my site anyway.
GNU nano 7.2 ports.conf
Listen “my_public_ip”:80
Listen “my_public_ip”:443
Listen “my_public_ip”:443
Errors:
apachectl[2666]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 217.61.226.219:80
apachectl[2666]: no listening sockets available, shutting down apachectl[2666]: AH00015: Unable to open logs
Cloudflare Error
” An Error 522 means that the request was able to connect to your web server, but that the request didn’t finish. The most likely cause is that something on your server is hogging resources.”
Tried configuring all the necessary settings (.confs, firewall, tried port forwarding) I know it has to be something I’m just so new to all this, 1 day to be exact. I’ve tried quite a bit and even waited a while for DNS propagation but i think the problem lies within the apache2 web server on my server
Luke Singleton is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.