title: Unable to wget virtualhost from instance itself
body: <p>I have LAMP setup on Ec2 instance and setup a virtual hosts e.g </p>
  
  <pre><code>&lt;VirtualHost *:80 &gt;
      ServerName xx.xx.xx.xx
      ServerAdmin test@example.com
      DocumentRoot /var/www/dir1
  
  ..
  ..
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I am able to access the vhost contents publicly. But when I ssh to instance and 
  try: wget xx.xx.xx.xx (public ip), that does not seems to resolve. I need a way to resolve it locally to generate pdf using <code>wkhtmltopdf</code> .</p>