Hi, thanks Andrew. Youre a cpanel soldier!
Im trying to get the apache config sorted out as it has the private IP posted all around.
All the files (apache config and user/domain & domain_ssl) contain the private IP address.
Apache config:
Code:
<VirtualHost 10.7.7.7:80>
ServerName example.com
ServerAlias mail.example.com www.example.com
DocumentRoot /home/user/public_html
ServerAdmin [email protected]
--
<VirtualHost 10.7.7.7:443>
ServerName example.com
ServerAlias mail.example.com www.example.com cpcontacts.example.com webdisk.example.com cpanel.example.com webmail.example.com cpcalendars.example.com whm.example.com
This cpanel server looks direct ? (non NAT). We only have a private ip and a public IP to access the cpanel server.
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
link/ether 09:xx:1c:xx:cd:8d brd ff:ff:ff:ff:ff:ff
inet 10.7.7.7/24 brd 10.7.7.255 scope global dynamic eth0
valid_lft 2363sec preferred_lft 2363sec
inet6 kv92::8d:1cff:fea2:dd93/64 scope link
valid_lft forever preferred_lft forever
Thus far, every other cpanel error references the public IP when I try to install the cert, should I be updating :
a) all references be updated to public IP including the apache config and domain files,
b) the cpnat file be deleted
c) try to reinstall the cert
d) restart apache and cpanel
What I didnt do in the 1st attempt, when it broke, was change the apache config details manually. I believe they may have still been private IPs as they are now (see above) I did remove the cpnat file but everything broke during the cpanel scripted apache rebuild config script.