Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two servers (one LAMP, one Windows) and one website with an associated blog. I'm running the main site on the Windows server, and the blog on the LAMP server, using Wordpress. The main site is accessed at (it's in Danish -- sorry), the blog is accessed at (this link is bad, read on).

The main site works fine. The blog works, except for the frontpage. Example of working post: The frontpage of the blog ( shows html from however (except for the css and javascript). In fact, any other URL than the frontpage "works", and gets served by Wordpress e.g.

I cannot -- for the life of me -- understand how the LAMP server running manages to serve up content generated by the Windows server running Looking at the response headers at, it's evident that the content originates from Apache, not IIS.

I'm pretty sure it's not a DNS-issue, since the problem is evident even when accessing the raw IP, eg. vs. I'm thinking it's a bad config in Apache... any clues?

UPDATE: As requested, here's the apache conf file for the non-working site. Incidentally, another Wordpress blog is running on the server (though not on a subdomain), and it is not exhibiting this quirk.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/
    <Directory />
            Options FollowSymLinks
            AllowOverride All
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from ::1/128

share|improve this question
I suggest you post the Apache config files. – tomjedrz Apr 9 '10 at 21:12

Which rewrite rules have you set up in your .htaccess file in the WordPress install directory?

It's probably a longshot but it could be a rule with a [P] flag.

share|improve this answer
up vote 0 down vote accepted

The problem turned out to be an index.html file in the blog root directory with the html in it (I have no idea how it got there...). Thanks goes to Jakob Andersen ( for suggestions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.