Note that there are some explanatory texts on larger screens.

plurals
  1. POApache virtual host not working correctly
    primarykey
    data
    text
    <p>I'm getting some strange behaviour on my local Windows 7 machine, which I am using to develop a website, when trying to access a specific virtual host on a xampp server.</p> <p>I currently have seven vhosts on my apache server, and all but one work exactly as intended.</p> <p>The <code>httpd-vhosts</code> entry for the site is:</p> <pre><code>&lt;VirtualHost *:80&gt; DocumentRoot "C:\Work\pim4bim\buildSite" ServerName pim4bmbuild ServerAlias pim4bimbuild ErrorLog "logs/error.log" CustomLog "logs/access.log" combined &lt;Directory "C:\Work\pim4bim\buildSite"&gt; AllowOverride All Order Allow,Deny Allow from all Require all granted &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>I have the <code>NameVirtualHost</code> line uncommented and have added the entry to my Windows hosts file.</p> <p>The strange behaviour is that, when accessing the vhost on my Windows machine, it displays a page that doesn't actually exist, at best it could be a partial reading of a page, but this doesn't make sense. (It shows some text that exists on other pages, but none of these include <em>only</em> that text.)</p> <p>However, when accessing the vhost from my Linux box, like I do all other of my vhosts, the site is operating correctly. While this is fine for development, I need to be able to access the vhost on my Windows machine for client demos and work away from home.</p> <p>I have triple checked that my vhost and hosts entries are properly formatted, and changed the directory listing from backward to forward slashes and back again with no difference. I've also restarted Apache several times (and added new vhosts since this one) to no avail.</p> <p>Any help would be greatly appreciated.</p> <p><strong>UPDATE:</strong></p> <p>When I load the page, my access log shows the following:</p> <pre><code>127.0.0.1 - - [22/Jun/2013:12:18:43 +0100] "GET / HTTP/1.1" 200 344 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36" 127.0.0.1 - - [22/Jun/2013:12:18:43 +0100] "GET /favicon.ico HTTP/1.1" 200 849 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36" </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload