I wanted to use the first method as seems easier.
So I opened both files wordpress.conf and wordpress-le-ssl.conf
and not found any line with ServerName example.com
I wanted to use the first method as seems easier.
So I opened both files wordpress.conf and wordpress-le-ssl.conf
and not found any line with ServerName example.com
That’s a little unusual, but it’s probably safe to just add that line after <VirtualHost *:80>
.
If you want to be doubly sure you can try running
sudo apachectl -S
first to see exactly what virtual hosts are configured, just in case there’s another one that’s not immediately obvious.
Okay, that’s not exactly the line I was expecting to see but it does confirm that this is the file that Certbot already used for your non-www domain, so what I’d do is add at the top of that file, just under the <VirtualHost *:80>
line:
ServerName example.com
ServerAlias www.example.com
(obviously replacing example.com
with your real domain name) and then run ./letsencrypt-auto --apache
ok it worked:
now do which one do i try for the example.com already in existence ?
sorry fior these micro questions but don’t want to mess this up now !!
I’ll need a little more context - can you show the command you typed and the full output?
Okay, in this case I would select 1
.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.