SSL cert won't renew on Apache Server

http://ubismartbackend.com/Test123 gives a 404.

I'm running commands as an admin in Windows Command Prompt

OK. I don't see that test file either.

In your apache VirtualHost, you have ServerName ubismartbackend:5000

Normally the port is left off with name based virtual hosts. Can you try removing the :5000 from the name and restarting apache.

3 Likes

I deleted the ":5000" in
c:/apache24/conf/extra/httpd-vhosts.conf
then ran
httpd -k restart

Still 404's.

Let's confirm the test file. Can you show output of this:

dir c:\users\administrator\desktop\app\ubismartbackend\Test*
3 Likes

OK. Before we start looking at logs can you try changing the forward slashes to a backslash in your DocumentRoot folder. I don't use Windows/Apache myself so can't test but I see other examples online using Windows backslashes

3 Likes

\http://ubismartbackend.com/Test123 :mage: :mage: :mage:

except the base URL is forbidden now?

c:/apache24/conf/extra/httpd-vhosts.conf looks like this

I need to step away for a bit but please show the renewal conf file I asked about earlier.

Also, what about this command

certbot certonly --webroot -w "(your path)" -d ubismartbackend.com -v --dry-run
3 Likes

Ok! Thank you so much for all of your help! Where is the renewal conf file?

1 Like

\certbot\renewal\ubismartbackend.com.conf

This one

4 Likes

Ok. I see you used the standalone option in the past so your renewal conf uses that for "renew" command. It won't work with apache running and standalone is harder to use with web servers in general. So, we want to change that.

Your dry-run test of this worked. So, try this command again but leave off --dry-run. That should get an actual cert and update the renewal conf file to be webroot.

certbot certonly --webroot -w "(your path)" -d ubismartbackend.com 
4 Likes


Excellent! Thank you so much!

Do I need to manually install this cert to Apache? Ubismartbackend.com is still giving me 403

1 Like

Please show the second file:

3 Likes

C:/Apache24/conf/extra/httpd-ssl.conf
@rg305

Please show the file:
C:/Apache24/conf/extra/httpd-ssl.conf

3 Likes

I restarted the Apache and my app is back online!

Thank you SO much for your help @MikeMcQ and @rg305!

2 Likes

Make sure IIS is disabled - that it won't try to start on reboot.

4 Likes

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