Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2007 08:58:04 -0600
From:      Sam Munzani <sam@munzani.com>
To:        Daniel Leidert <daniel.leidert.spam@gmx.net>
Cc:        freebsd-cvsweb@freebsd.org
Subject:   Re: CSS not reading properly
Message-ID:  <45BF5CFC.6030500@munzani.com>
In-Reply-To: <1170160882.6983.17.camel@localhost>
References:  <45BE3FC5.2090009@comcast.net>	 <1170099874.27134.3.camel@localhost> <45BE57FA.6030802@munzani.com> <1170160882.6983.17.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
I figured out my problem. System install had created 
/usr/local/www/data, /usr/local/www/cgi-bin and /usr/local/www/icons 
empty directories at fresh install. The apache22 loads in its own 
directory(/usr/local/www/apache22/cgi-bin el al) now a days. When I 
loaded cvsweb3, it found empty directories and since that directory 
structure was its 1st priority, it installed the scripts, icons etc in 
those empty directory.

##### A section of Makefile from cvsweb3 ports directory. ##########
# Specify these directories in relative paths to ${PREFIX}.
.if exists(${PREFIX}/www/cgi-bin)
CGIDIR?=        www/cgi-bin
ICONSDIR?=      www/icons
CSSDIR?=        www/data/css
.elif exists(${PREFIX}/www/apache22/cgi-bin)
CGIDIR?=       www/apache22/cgi-bin
ICONSDIR?=     www/apache22/icons
CSSDIR?=       www/apache22/data/css
.elif exists(${PREFIX}/apache/cgi-bin)
CGIDIR?=        apache/cgi-bin
ICONSDIR?=      apache/icons
CSSDIR?=        apache/data/css
.else
CGIDIR?=        share/apache/cgi-bin
ICONSDIR?=      share/apache/icons
CSSDIR?=        share/apache/data/css
.endif
########################################################

I removed both packages, installed apache13 port which installed it self 
in /usr/local/www. Everything worked great.

I could have just removed cvsweb3 only and reinstall after removing 
those empty directory. However it was better to install apache in 
/usr/local/www because not doing so breaks many other installs like 
Nagios etc. I just didn't feel like configuring proper paths on each 
software I install so just changed the apache root :-)

Thanks to all who helped,

Regards,
Sam
> Am Montag, den 29.01.2007, 14:24 -0600 schrieb Sam Munzani:
>   
>> Daniel,
>>
>> There is nothing in httpd.conf file. All I did was I copied cvsweb.cgi
>> file to cgi-bin directory of Apache.
>>
>> Below are some paths I have installed under.
>> Apache Configuration file: /usr/local//etc/apache22/httpd.conf
>>
>> Some configurations from httpd.conf.
>> ServerRoot "/usr/local"
>> AccessFileName  .htaccess
>> DocumentRoot "/usr/local/www/apache22/data"
>> <Directory "/usr/local/www/apache22/cgi-bin">
>>     AllowOverride None
>>     Options None
>>     Order allow,deny
>>     Allow from all
>> </Directory>
>>
>> Cvsweb configuration file path:
>> /usr/local/etc/cvsweb/cvsweb.conf
>>     
>
> Is this mentioned in cvsweb.cgi ("##### Start of Configuration Area
> ########" ...)?
>
>   
>> Some contents from cvsweb.conf
>> my $iconsdir = '/icons/cvsweb'
>> $cssurl = '/css/cvsweb/cvsweb.css';
>>     
>
> So you installed the cvsweb-stuff into
>
> /usr/local/www/apache22/data/icons/cvsweb
> /usr/local/www/apache22/data/css/cvsweb/cvsweb.css
>
> ? What does your Log/Server say, when you try to load
>
> /css/cvsweb/cvsweb.css? 
>
> Do you have an
>
> Alias /icons/ /foo/
>
> somewhere in your httpd.conf (IIRC there is one by default under
> <IfModule mod_alias.c>, but I'm not sure)?
>
>   
>> My question is what are these paths in reference off? Are they
>> relative to the cvsweb directory or the apache document root?
>>     
>
> Relative to the document root.
>
> Regards, Daniel
>
>
>   




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45BF5CFC.6030500>