unable to resolve host – not found or unable to stat

Debian 7 Apache 2.2.22

Virtualhost with only one website using ssl – ssl certificate is for www.example.com (not example.com)

The following setup resolves the “unable to resolve host” error

/etc/hosts localhost
{server ip address} www.example.com www



However, if you have a new apache error

[error] [client] script ‘/var/www/wp-cron.php’ not found or unable to stat

Change hosts to

/etc/hosts localhost example.com www.example.com www

Error messages should be gone

You may also like...