• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Loopback HTTP connections going to wrong vhost

dtbaker

Basic Pleskian
Hello,

I just upgraded from 11 to 12.

In /var/log/httpd/access_log it is now full of requests like this from all the different WordPress installs on this box:

[25/Nov/2014:22:17:40 -0500] "POST /wp-cron.php?doing_wp_cron=1416971860.40590500831604003906 HTTP/1.0" 404 293 "-" "WordPress/4.0.1; http://xxxxxxxxx"
[25/Nov/2014:22:17:49 -0500] "POST /wp-cron.php?doing_wp_cron=1416971869.76135206222534179687 HTTP/1.0" 404 275 "-" "WordPress/4.0.1; http://xxxxxxxxx"
[25/Nov/2014:22:18:24 -0500] "POST /wp-cron.php?doing_wp_cron=1416971904.39924407005310058593 HTTP/1.0" 404 284 "-" "WordPress/4.0.1; http://xxxxxxxxx"


Along with some other requests generated by server side scripting trying to "hit" the local HTTP server.

If I ssh into the server and try a loopback http connection, something like this:

myserver# telnet mywebsite.com 80
Trying 54.x.x.x...
Connected to mywebsite.com.
Escape character is '^]'.
GET /images/logo.png HTTP/1.0
Host: mywebsite.com


The response is HTTP/1.1 404 Not Found and a new entry in /var/log/httpd/access_log is added, no entry in /var/www/vhosts/mywebsite.com/statistics/logs/access_log for local connections.

So it seems connections from "local" are hitting the default plesk site, and not going to the correct vhost.

Does anybody know how to solve this? Lots of things have ground to a hault.

(edit: I tried disabling mod_security/restart httpd and that didn't fix it)

(edit2: this is plesk on AWS with eth0 on a private IP and eth0:1 running an elastic IP address. The problem here is mywebsite.com resolves to the elastic ip address, but nginx is set to listen on the internal private ip address. adding a local /etc/hosts to resolve mywebsite.com to the internal ip address fixes the issue, but that means I have to do it for EVERY vhost on this box! )

Thanks heaps,
Dave
 
Last edited:
Back
Top