🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.linux.networking
6 messages
6 total messages Started by Ian Packer Sun, 18 Feb 1996 00:00
Apache MIME types
#593
Author: Ian Packer
Date: Sun, 18 Feb 1996 00:00
14 lines
937 bytes
Hello,

I'm trying to configure an Apache Web Server but have a couple of anomolies.

I want to enable the use of htm as a file extension for html, I've tried
adding
a line to srm.conf and .htaccess such as "AddType text/html htm" to no effect,
I tried editing the mime.types file and this didn't work either.
(I'm testing this by entering a URL of http://localhost.)

Any ideas why this might fail? 

Regards
Ian.
Re: Apache MIME types
#594
Author: Tomas Pospisek
Date: Tue, 20 Feb 1996 00:00
16 lines
1238 bytes
ian@bloggs.demon.co.uk (Ian Packer) wrote:
>Hello,
>
>I'm trying to configure an Apache Web Server but have a couple of anomolies.
>
>I want to enable the use of htm as a file extension for html, I've tried
>adding
>a line to srm.conf and .htaccess such as "AddType text/html htm" to no effect,
>I tried editing the mime.types file and this didn't work either.

I've done "AddType text/html html htm" and it works fine. The thing that
doesn't
work is the default page which is "Index.html" and not Index.htm - but that's a
different story.

grtz, tpo
Re: Apache MIME types
#595
Author: Miles O'Neal
Date: Tue, 20 Feb 1996 00:00
22 lines
1492 bytes
Ian Packer wrote:
> I'm trying to configure an Apache Web Server but have a couple of anomolies.
> 
> I want to enable the use of htm as a file extension for html, I've tried adding
> a line to srm.conf and .htaccess such as "AddType text/html htm" to no effect,
> I tried editing the mime.types file and this didn't work either.
> (I'm testing this by entering a URL of http://localhost)

You'd be better off asking this in comp.infosystems.www.servers.unix, but here
goes.

First, if that's really the line you added, you probably need a '.' before the
extension.  You would in NCSA.

Secondly, did you restart the server after you changed the file?

You shouldn't have to mess with mailcap or mime.types, because you
aren't defining a new type - just mapping a new extension to an
extant type.

-Miles
meo@schoneal.com
Re: Apache MIME types
#596
Author: RHS Linux User
Date: Wed, 21 Feb 1996 00:00
25 lines
1231 bytes
In article <4g8drj$un@bloggs.demon.co.uk>, Ian Packer wrote:
>Hello,
>
>I'm trying to configure an Apache Web Server but have a couple of anomolies.
>
>I want to enable the use of htm as a file extension for html, I've tried
>adding
>a line to srm.conf and .htaccess such as "AddType text/html htm" to no effect,
>I tried editing the mime.types file and this didn't work either.
>(I'm testing this by entering a URL of http://localhost.)
>
>Any ideas why this might fail? 

mime.types is the place to add it:

text/html	htm

is the line to add. Then do a kill -1 on your httpd  -- or if you're
using the apache server in RedHat, do:

 /etc/rc.d/rc3.d/S85httpd stop
 /etc/rc.d/rc3.d/S85httpd start


-- Charlie
Re: Apache MIME types
#597
Author: James R Grinter
Date: Wed, 21 Feb 1996 00:00
17 lines
1119 bytes
To solve the index.html/index.htm problem, you can either list
both (in the order you require) for the DirectoryIndex line,
or you could switch on MultiViews and just put 'index' instead.

In article <824914822.11612@fma10.fma.com> root@fma10.fma.com (RHS Linux User) writes:
>  /etc/rc.d/rc3.d/S85httpd stop
>  /etc/rc.d/rc3.d/S85httpd start

hmm, do they really not allow something like:

	/etc/init.d/httpd stop
	/etc/init.d/httpd start

which can be a damned sight easier to remember.

James.
Re: Apache MIME types
#598
Author: Dominic Mitchell
Date: Thu, 22 Feb 1996 00:00
29 lines
1590 bytes
On Wed, 21 Feb 1996 15:00:22 GMT, RHS Linux User <root@fma10.fma.com> wrote:
> In article <4g8drj$un@bloggs.demon.co.uk>, Ian Packer wrote:
> >Hello,
> >
> >I'm trying to configure an Apache Web Server but have a couple of anomolies.
> >
> >I want to enable the use of htm as a file extension for html, I've tried
> >adding
> >a line to srm.conf and .htaccess such as "AddType text/html htm" to no effect,
> >I tried editing the mime.types file and this didn't work either.
> >(I'm testing this by entering a URL of http://localhost.)
> >
> >Any ideas why this might fail? 
> 
> mime.types is the place to add it:
> 
> text/html	htm
> 
> is the line to add. Then do a kill -1 on your httpd  -- or if you're
> using the apache server in RedHat, do:
> 
>  /etc/rc.d/rc3.d/S85httpd stop
>  /etc/rc.d/rc3.d/S85httpd start

Nearly there.  You might not be in runlevel 3, or the number 85 might
not be guaranteed.  What is better is to do "/etc/rc.d/init.d/httpd.init
[start|stop]".

-Dom
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads