• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Using wget on local web site as scheduled task

AdamJohn

New Pleskian
Hi,

I am trying to configure cron job that will call a web page (PHP service) that belongs to locally hosted site.

When I try to use:
Code:
wget -qO- <myURL>
I get the default page:
Code:
<html>
<head>
</head>
<title></title>
<body bgcolor=#FFFFFF text=#001C66>

<table width="100%" border="0">
   <tr>
    <td><img src="img/construction.gif" alt="under construction"></td>
    <td valign="bottom"><font size="+2" face="verdana,arial,helvetica,sans-serif">
This domain has just been registered for one of our customers!</font><br>
<font face="verdana,arial,helvetica,sans-serif">
Domain registration and webhosting at best prices.</font><br>
  </tr>
    <tr>
    <td>&nbsp;</td>
    <td align="center">
   </td>
</td>

  </tr>
</table>

</body>
</html>
From any other machine it works fine. I would appreciate if anyone could point me in the right direction.

Regards
 
Is that page one of those pages in that domain's httpdocs folder or it's the default plesk's 'non existent' domain parking page?
 
Thank you for the reply. I managed to solve the problem by editing hosts file. It seems that 1and1 adds default-domain.com into the hosts file during OS installation.

Regards
 
Back
Top