• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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