Skip to Content

Apache

Listings

> >|

Altering APACHE Error Messages Using the Text Method.
( Added: Mon Jun 13 2005   Hits: 66)

The simplest method for changing the message that your readers see when they encounter an error is to modify the srm.conf file if you have the ability to do so, or to modify your .htaccess file. In the srm.conf file you will find a line that looks like this:

Report Link Rate It Review It Send To Friend!

FORCING domain.com TO www.domain.com USING MOD REWRITE ENGINE AND .HTACCESS
( Added: Mon Jun 13 2005   Hits: 68)

If your site can be accessed as both http://www.domain.com/ as well as http://domain.com/ and are having trouble with things such as cookies on the Netscape browser*, here is a little rewrite rule you can place in your httpd.conf or on a per directory basis using .htaccess.

Report Link Rate It Review It Send To Friend!

How can I add MIME types, such as for MIDI files to my APACHE server configuration?
( Added: Mon Jun 13 2005   Hits: 57)

Although APACHE out of the box comes supplied with a rather full set of MIME types, the one for MIDI (music) files doesn't work with Netscape. There are two ways to correct this problem.

Report Link Rate It Review It Send To Friend!

How to Enable Server Side Includes on Your Web Server
( Added: Mon Jun 13 2005   Hits: 51)

To me, the normal way to handle such a matter is from the server's conf files. To enable SSI, you will have to edit two files. The location of the files varies from installation to installation, but you can usually find them under the apache servers etc or conf directories.

Report Link Rate It Review It Send To Friend!

I am attempting to run a cgi script on my server, but it won't allow the script to run. How can I en
( Added: Mon Jun 13 2005   Hits: 50)

By default, the APACHE server's configuration has CGI turned off. Turning it on is a rather simple matter. In the example shown below, you will be able to call your scripts with a URL such as: http://Your_Domain.com/cgi-bin/scriptname.cgi

Report Link Rate It Review It Send To Friend!

I do not want index.html to be the default page when a person accesses my site. If I rename index.ht
( Added: Mon Jun 13 2005   Hits: 61)

The DirectoryIndex directive allows you to specify a specific filename or filenames as the default page in a directory. Depending on your needs, you can even make a CGI script the default. One note of caution on using a CGI as your default page: Many search engines will not index it.

Report Link Rate It Review It Send To Friend!

> >|