From owner-freebsd-questions@FreeBSD.ORG Tue Nov 9 20:08:01 2010 Return-Path: Delivered-To: Freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DFD51065675 for ; Tue, 9 Nov 2010 20:08:01 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id E195D8FC17 for ; Tue, 9 Nov 2010 20:07:58 +0000 (UTC) Received: from [192.168.1.64] ([76.240.47.196]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 9 Nov 2010 12:07:57 -0800 Message-ID: <4CD9AA1B.1050505@a1poweruser.com> Date: Tue, 09 Nov 2010 15:07:55 -0500 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Frank Shute References: <4CD84CFB.1090403@a1poweruser.com> <20101108203227.GA3662@orange.esperance-linux.co.uk> In-Reply-To: <20101108203227.GA3662@orange.esperance-linux.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Nov 2010 20:07:58.0063 (UTC) FILETIME=[CD9ABFF0:01CB8049] X-Sender: fbsd8@a1poweruser.com Cc: Freebsd-questions@freebsd.org Subject: Re: apache13 to apache22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 20:08:01 -0000 Frank Shute wrote: > On Mon, Nov 08, 2010 at 02:18:19PM -0500, Fbsd8 wrote: >> As I do a complete fresh install of 8.1 I saw that apache13 is no longer >> being supported, so thought this is the time I will move to apache22. >> >> Now everything went real easy until testing my websites. In apache13 the >> .css (style sheet) calls for a blue background. The .css file is in the >> same directory as the html files making up the website. In apache13 I >> got the blue background but in apache22 I get a white background. I >> checked the apache22 htppd.config file for any info on css but found none. >> >> Are .css (style sheet) handled differently in apache22? > > AFAIK they're not. > > It sounds like the stylesheet isn't being served up (white background > is default). > > Examine the apache error log. By default it's in /var/log. Also look > in the regular apache log and it could be the stylesheet is getting a > 404. > > Is server root the same in httpd.conf for 2.2 as it is for 1.3? Could > be the cause of the problem. 2.2 uses a different root by default > IIRC. > > > Regards, > This is part of my config file. ServerRoot "/usr/local" Listen 6680 DocumentRoot "/usr/local/www/apache22/data" AllowOverride None Order deny,allow Deny from all Options FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all Alias /FBSD_manuals/ "/usr/local/share/doc/" Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all Here are messages from the access-log. "GET /index.php/00.00-web_style_sheet.css HTTP/1.1" 200 6839 "GET /index.php/powered_by_apache_bsd.gif HTTP/1.1" 200 6839 "GET /index.php/powered_by_FreeBSD.gif HTTP/1.1" 200 6839 You can see that apache22 is saying the .css and the 2 .gif have been served up, but the browser has white background instead of blue and the 2 gif images are missing from the displayed web page. Now this is a working website that displays correctly on apache13 so i know there is nothing wrong with the directory content. The alias website has the .css file in the same directory and it displays correctly. What am I overlooking here?