Using subdomain to host website

Hi, so I have a website which receives 90% of its traffic from Google searches for "xxx yyyy zzzzzzz"

It is presently hosted at

and I am considering moving it to

in an effort to get its ranking improved from its present average position of 3.

( is not available at a reasonable price)

Anyone have any thoughts on this?


Openstack Error: No valid host was found. There are not enough hosts available

As a purpose of testing, I am trying to spin up instances of large size, I mean of 8 vCPU’s and greater than 20 GB memory, with 50 GB storage. Physical host has 48 GB RAM and 16 CPU. But everytime receives the same error

Failed to perform requested operation on instance "TestBigVM", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.]. 

In nova compute log, this is the last entry, and can’t see any errors:

2019-01-20 22:39:46.447 16511 INFO nova.compute.resource_tracker [req-ded356b5-7a71-451d-a834-db9e696b07dd - - - - -] Final resource view: phys_ram=49139MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=16 used_vcpus=0 pci_stats=[] 

Have googled so many links like and then also tried virt_type=kvm or qemu, but everything failed.

Is there any alternative or legitimate solution for this.? Stuck in between some task and this is very critical for the assigned task. Any help would really be appreciated.

Por que este archivo php en mi localhost funciona y en mi host no

me pasaron ese archivo php, es para hacer un streaming de un canal, la cosa es que en mi host no se ve, y en mi localhost, ese mismo archivo si se ve, y no me doy cuenta, no se si tiene que ver que en mi host tengo mi web conectada a una base de datos, pero esto no creo que sea, ya que en el localhost, tengo exactamente la misma web.
Dejo capturas del archivo, de como se tendrĂ­a que ver, y de como se ve:

<?php header("Content-type: text/plain; charset=UTF-8");   function GetData($  url, $  host, $  agent, $  referer, $  origin){ $  options = array( 'http'=>array( 'method'=> "GET", 'header'=> "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" . "Accept-language: en-US,en;q=0.5\r\n" . "Accept-Encoding: text,\r\n" . "User-Agent: ".$  agent."\r\n" . "Referer: ".$  referer."\r\n" . "Origin: ".$  origin."\r\n" . "Host: ".$  host."\r\n" . "Connection: Close\r\n" ) ); $  context = stream_context_create($  options); $  file = file_get_contents($  url, 'r', $  context); return $  file; }  function search($  target, $  start, $  end){ $  start_at = strpos($  target, $  start) + strlen($  start); $  target = substr($  target,$  start_at); $  end_at = strpos($  target, $  end); return substr($  target, 0, $  end_at); };  function generateRandomString($  length) {  return substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN OPQRSTUVWXYZ"), 0, $  length);  }    $  file = GetData("http://web,com/embed.html", "","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0", "",""); $  json = search($  file,"\"GET\", \"","\"+x, true);");  $  x = generateRandomString('6');  $  file = GetData($  json.$  x, search($  json,"http://","/json/"),"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0", "",""); $  hls = search($  file, "\"canal\":\"","\"}"); $  hls = base64_decode(strrev($  hls)); //header("Location: ".$  hls); //echo $  hls; echo json_encode($  hls, JSON_FORCE_OBJECT); ?>

Asi se tiene que ver

Y en mi host, este mismo archivo solo aparece lo siguiente:


Esas comillas pero no genera nada adentro.

CURL intermittly answers “Could not resolve host”

I randomly looses internet access on my Debian server.

When I run curl, 90% of the time it answers instantly. 10% of the time it takes ~30 seconds to answer “Could not resolve host”. It happens approximatively one time every other minute.

I have two main network interfaces:

  • enp0s3 which is my default interface. It is bridged to my host machine (server is inside a VM). Its local IP address is fixed to
  • tun0 which is an OpenVPN tunneled interface. I only use it for some specific applications. Its local IP address is in the 10.8.xx.xx range.

I run several server applications that need to be publicly accessible through enp0s3 and some other that need to be publicly accessible through tun0.

What I noticed so far:

  • One of my applications is PMS (Plex). Whenever I stop it, things go back to normal.
  • When PMS tries (by itself) to find a publicly available route, it finds my private IP address as being Which is my tun0‘s local loopback IP. It should find, which is my enp0s3 bridged interface’s IP.

Here is the output of ifconfig on my machine:

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500     inet  netmask  broadcast     inet6 fe80::a00:27ff:fe3a:ec14  prefixlen 64  scopeid 0x20<link>     ether 08:00:27:3a:ec:14  txqueuelen 1000  (Ethernet)     RX packets 249315  bytes 35753507 (34.0 MiB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 361526  bytes 304896637 (290.7 MiB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536     inet  netmask     inet6 ::1  prefixlen 128  scopeid 0x10<host>     loop  txqueuelen 1  (Local Loopback)     RX packets 136520  bytes 74775157 (71.3 MiB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 136520  bytes 74775157 (71.3 MiB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo:1: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536     inet  netmask     loop  txqueuelen 1  (Local Loopback)  tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500     inet  netmask  destination     inet6 fe80::ca1a:c66a:dead:c393  prefixlen 64  scopeid 0x20<link>     unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100   (UNSPEC)     RX packets 154049  bytes 8981378 (8.5 MiB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 243944  bytes 217433197 (207.3 MiB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0 

Here is the output of ip rule show on my machine:

0:      from all lookup local  32765:  from lookup VPN  32766:  from all lookup main  32767:  from all lookup default 

Here is the output of ip route show on my machine:

default via dev enp0s3 dev tun0 proto kernel scope link src dev enp0s3 proto kernel scope link src 

Some other informations:

  • My modem/router’s default broadcast IP is
  • Interface lo:1 is a local loopback used to “jail” some applications on tun0‘s network and avoid them to go through enp0s3.

To put you in context, here is my iptables -S output (the jailed service is bind to port 51413):

-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -N SERVICES -A INPUT -i tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -s -o enp0s3 -j DROP -A SERVICES -p tcp -m tcp --dport 51413 -j ACCEPT -A SERVICES -p udp -m udp --dport 51413 -j ACCEPT 

What do you think?

I suspect Plex from spamming the network in order to find a publicly available route and putting down the network altogether when not managing to do so. In my own specific configuration.. I found no support about this. I’m sure my server configuration is wrong somewhere but I couldn’t find the catch. I’m no expert at all.

Trusted Host Patterns Settings Not working with IP

So I am trying to get this drupal(drupal845.localhost) site accessible by my VM. But the Trusted Host Settings are not working.

Here are the settings in my settings.php

$  settings['trusted_host_patterns'] = array(    '^drupal845\.localhost$  '    '^.+\.drupal845\.localhost$  '    '^192\.*\.*\.*\.drupal845\.localhost$  ', ); 

Not working

I have another drupal(drupal.localhost) site on the same machine and the trusted host patterns work. This is what I have in my settings.php for trusted host patterns:

$  settings['trusted_host_patterns'] = array(    '^drupal\.localhost$  '    '^.+\.drupal\.localhost$  '    '^192\.*\.*\.*\.drupal\.localhost$  ', ); 


Why does it work on the drupal.localhost but not on drupal845.localhost

Also to note is I have .localhost masked to I have to specify the port because windows is using 80 so my WSL(Ubuntu) Apache server I set to use 8080. They both work without the ip specification as well.

Docker: how to sync date between a CentOs host and a Debian container?

I have a CentOs host running a docker Debian container.

The container has the wrong localtime and timezone: how can I synchronize it with the host date?

I’m trying with mounting volumes on the docker-compose with /etc/localtime but it doesn’t work.

The solution I prefer should be one of them:

  • set a particular ENV in the Dockerfile
  • mount properly volumes in the docker-compose.yml