• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Calling a page on a Plesk 11.5 server, from said server: error

LionelM

New Pleskian
Hi there,

I am managing a CentOS 6 server (running on Amazon EC2) with Plesk 11.5. Recently, we noticed something strange, when trying to set up a cron job. The cron job calls a URL on the server. The URL is certainly correct, as calling it from our own machines works fine. However, a wget or a curl from the server itself returns a Plesk default page, even when run as root.

Another issue, most probably related to the above problem, arises when trying to open a page on the server from a php script: calling

Code:
echo file_get_contents('http://my-domain-on-plesk-server.com/animage.png');

Fails with the following error:

Code:
 Warning: file_get_contents(http://my-domain-on-plesk-server.com/animage.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/vhosts/myhost/myscript.php on line 5

But getting the contents of a page not hosted on the server, such as google.co.uk, works perfectly well.

I suspect a configuration issue with either Apache or nginx, but I'm not quite sure where to look. Any ideas?
 
Back
Top