Apache
Links
Altering APACHE Error Messages Using the Text Method.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: |
|
FORCING domain.com TO www.domain.com USING MOD REWRITE ENGINE AND .HTACCESSIf 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. |
|
How can I add MIME types, such as for MIDI files to my APACHE server configuration?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. |
|
How to Enable Server Side Includes on Your Web ServerTo 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. |
|
I am attempting to run a cgi script on my server, but it won't allow the script to run. How can I enBy 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 |
|
I do not want index.html to be the default page when a person accesses my site. If I rename index.htThe 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. |
|
I have noticed that since I have added INCLUDES to my .htaccess file, or to my access.srm, that 'exeTo do this, you MUST have access to the master server configuration files. If you are unable to edit these files, ask your system administrator to do it for you. If you do not have access to the server configuration files, you can add this line to your .htaccess file. IncludesNoExec |
|
No matter what I do, anything I add to my .htaccess file is ignored. How do I get .htaccess working?To do this, you MUST have access to the master server configuration files. If you are unable to edit these files, ask your system administrator to do it for you. Edit the file access.conf file and do the following: |
|
PREVENTING BANDWIDTH THEFT USING THE MOD REWRITE ENGINE AND .HTACCESSHOW DO I STOP THIS THEFT? The Apache Server's Mod Rewrite Engine (which must be compiled into your server to allow you to do this) can examine the name of the document requesting a file of a particular type. You can then define logic that basically does the following: If the URL of the page requesting the image file is from an allowed domain, display the image- otherwise return a broken image. |
|
Redirecting Your Reader to a CGI script when an error occurs.Redirecting your readers to a CGI script works exactly like sending them to an HTML page from their perspective, but it can be a timesaver for you as a webmaster. By calling a script, you have the opportunity to both handle the reader, and log the information. This can help you track down problems a lot faster than searching through your logs for errors. |
|