From owner-freebsd-questions@FreeBSD.ORG Mon Jan 31 20:45:51 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B29FD16A4D4 for ; Mon, 31 Jan 2005 20:45:51 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24C5D43D2F for ; Mon, 31 Jan 2005 20:45:51 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id j0VKjn929893; Mon, 31 Jan 2005 15:45:49 -0500 (EST) From: Jerry McAllister Message-Id: <200501312045.j0VKjn929893@clunix.cl.msu.edu> To: positiveviolence@gmail.com Date: Mon, 31 Jan 2005 15:45:49 -0500 (EST) In-Reply-To: <1107197418.3655.8.camel@localhost.localdomain> from "kip winston" at Jan 31, 2005 10:50:18 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: .html problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 20:45:51 -0000 > > we can transfer files to a freebsd server from XP. > > Everythime we try to upload index.html it goes from 850kb to 828kb > > and it always displays the same text index directory??? > > is that o the XP side or free bsd side... They probably treat trailing whitespace on lines differently. That could account for some difference. Also, if you used ftp to transfer the file in ASCII mode, then it would have chopped off a CR character from each line because UNIX uses just LF to terminate a line whereas MessyDOS uses CR-LF to terminate a line. Try looking at the file with a text editor such as vi. First of all, did it get put in the correct directory for your configuration? If it looks like html, eg starts with and ends with or other recognizable stuff, then it probably got transferred OK. The next thing to check is is the ownership and permissions are OK. The file should be readable by the web server (Apache probably) Finally, you should look at the name of the file and what is configured in the web server (httpd.conf). Mostly, Apache's httpd.conf starts out configured to recognize xxxx.html names files, but not xxxx.htm or other variations including xxxx.HTML or xxxx.HTM which you often get when moving a file from MustyDOS. Remember that UNIX is case sensitive. If the case or .html vs .htm is the problem you can either just rename the file on the FreeBSD system to a lower case only name or go in to the httpd.conf file and add those variations to it. I think I remember it is the DirectoryIndex index.html index.htm index.HTML etc etc etc directive that does it. Those are the first things I would check. After that, well, I don't know. > > I see the new file on the BSD server, but the same crappy index of/ page > keeps coming up... That will happen when it doesn't see a readable file with one of the acceptable names in the DirectoryIndex directive. You can turn off indexing and then you would see an error message instead of the directory listing. To do that remove the work "Indexes" from the Options directive that applies to your directory where the web page lives. Looks something like: Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all ////jerry