Two websites on port 80

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: example.com (not the real one)

I ran this command: sudo certbot --apache

It produced this output: http://assets.example.com/.well-known/acme-challenge/q-rVYFmF0Q6kQtlV3YaJDzLaHfg6AfoQKveOjl_Ca1M: Timeout during connect (likely firewall problem)

My web server is (include version): Apache 2.4

The operating system my web server runs on is (include version): Ubuntu 22.04 LTS

My hosting provider, if applicable, is: Hetzner

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.21.0

I have 2 web applications on the same apache webserver by way of virtual hosts and running on port 80.
the first web app is recognised by certbot and generated an SSL certificate.
for the 2nd web app am getting the error.
How could I solve generating SSL for the 2nd web app?

Obviously.

3 Likes

Not so obviously. Someone owns that domain name. Please do not use other people's domain names. I edited your post to use a standard one.

4 Likes

I would appreciate your support on helping me to resolve my issue.
Looking forward for your help.

What is your actual domain name?

You either have a DNS configuration problem or one in Apache. It is not practical to help debug those without the actual name.

If you want to debug it yourself, start by viewing your active Apache VirtualHosts with

sudo apache2ctl -t -D DUMP_VHOSTS

And check comms to your site with https://letsdebug.net

3 Likes

Thanks for the swift reply. Am really sorry for not sharing the actual domain name, as it is not allowed as per the present rules.
Will run the virtual hosts test and revert asap.
And letsdebug didn't reported any issues on DNS01 test, its said All Ok.
and on Http01 it failed.. attached the snapshot

The --apache plugin uses the HTTP Challenge

You need to sort out the reason the connection request failed. Again, without your domain name there isn't anything more for us to look at.

Check your DNS points to the server you ran certbot --apache. Make sure Apache is setup properly.

2 Likes

Also you might want to check the routers and firewalls, for Port 80, between the server and the public internet.
image

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.