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.
[root@localhost ~]# apachectl -t -D DUMP_VHOSTS
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 is a NameVirtualHost
default server dev-intipam-pits.primatc.co.id (/etc/httpd/conf.d/dev-intipam-pits-le-ssl.conf:2)
port 80 namevhost dev-intipam-pits.primatc.co.id (/etc/httpd/conf.d/dev-intipam-pits-le-ssl.conf:2)
port 80 namevhost dev-intipam-pits.primatc.co.id (/etc/httpd/conf.d/dev-intipam-pits.conf:1)
port 80 namevhost pits-api.primatc.co.id (/etc/httpd/conf.d/intipam-be-le-ssl.conf:2)
port 80 namevhost pits-api.primatc.co.id (/etc/httpd/conf.d/intipam-be.conf:1)
port 80 namevhost pits-api-dev.primatc.co.id (/etc/httpd/conf.d/pits-api-dev.conf:1)
*:443 localhost.localdomain (/etc/httpd/conf.d/ssl.conf:56)
[root@localhost ~]#
You have the same domain name defined twice for the same port (80). You can only have the same name once for each port.
This is duplicated
And this
Please post the contents of these two files. And add 3 backticks before and after the output so the forum formats it correctly.
Like this
```
show contents of /etc/httpd/conf.d/intipam-be-le-ssl.conf
```
And this:
```
show contents of /etc/httpd/conf.d/intipam-be.conf
```
I fixed it, and remove the other one as well. this:
[root@localhost conf.d]# apachectl -t -D DUMP_VHOSTS
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 is a NameVirtualHost
default server pits-api.primatc.co.id (/etc/httpd/conf.d/intipam-be.conf:1)
port 80 namevhost pits-api.primatc.co.id (/etc/httpd/conf.d/intipam-be.conf:1)
port 80 namevhost pits-api-dev.primatc.co.id (/etc/httpd/conf.d/pits-api-dev.conf:1)
*:443 is a NameVirtualHost
default server pits-api.primatc.co.id (/etc/httpd/conf.d/intipam-be-le-ssl.conf:2)
port 443 namevhost pits-api.primatc.co.id (/etc/httpd/conf.d/intipam-be-le-ssl.conf:2)
port 443 namevhost localhost.localdomain (/etc/httpd/conf.d/ssl.conf:56)
hey, it works. thanks a lot. this save my job. I really appreciate it.
[root@localhost conf.d]# certbot -v --apache -d pits-api.primatc.co.id
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Certificate is due for renewal, auto-renewing...
Renewing an existing certificate for pits-api.primatc.co.id
Performing the following challenges:
http-01 challenge for pits-api.primatc.co.id
Waiting for verification...
Cleaning up challenges
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/pits-api.primatc.co.id/fullchain.pem
Key is saved at: /etc/letsencrypt/live/pits-api.primatc.co.id/privkey.pem
This certificate expires on 2024-08-25.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate
Deploying Certificate to VirtualHost /etc/httpd/conf.d/intipam-be-le-ssl.conf
Successfully deployed certificate for pits-api.primatc.co.id to /etc/httpd/conf.d/intipam-be-le-ssl.conf
Redirecting vhost in /etc/httpd/conf.d/intipam-be.conf to ssl vhost in /etc/httpd/conf.d/intipam-be-le-ssl.conf
Your existing certificate has been successfully renewed, and the new certificate has been installed.
If you like Certbot, please consider supporting our work by: