• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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