httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Gradwohl <>
Subject Re: [users@httpd] DocumentRoot isn't the root for an absolute reference.
Date Thu, 16 Dec 2010 22:11:10 GMT
Hash: SHA1

On 12/16/2010 02:52 PM, Joost de Heer wrote:
> localhost isn't in the ServerName/-Alias, so the first (default) host is
> used, and the documentroot for that host is /var/www/html. A reference
> to /common/style.css will result in a request for the file
> /var/www/html/common/style.css.

Thank You Frank, Eric, Afsar, & Joost. I"m beginning to understand why
and how this is happening.

I can't reasonably create a lie on my development box (i.e. hosts fix)
because I need to hit my real domain server in Texas for my email, and I
also ssh into it to maintain it. I can't fudge the DNS.

I see now that the problem on my dev box is that I'm trying to get the
web site to function from a directory/file perspective, and my real box
is functioning from a DNS hostname perspective, so to speak.

I've had this problem for quite some time causing me to "fix" the html
when I move it to the real box, and it finally bothered me enough to try
to figure out what's going on.

So - How do I set up the dev box to 100% mimic the real box while I'm
testing so I don't have to hand massage the code when I move it? I can't
be the first guy to run into this, so is there a consensus on how to
approach the problem?

Having different httpd.conf files (real vs dev) is fine and expected.

- -- 
Bill Gradwohl
Roatan, Honduras
504 9 899 2652

Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora -


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message