Your Guide to Website Design and Management

Text Size:
small_A.gif small_A.gif
Bookmark and Share

Rating: 0.0/5 (0 votes)

Configuring and Administering Your Server >>

httpd.conf file

"For people who make websites" - A List Apart Magazine explores the design, development, and meaning of web content, with a special focus on web standards and best practices.
HTML Validator is a Mozilla extension that adds HTML validation inside Firefox and Mozilla. The number of errors of a HTML page is seen in the form of an icon in the status bar when browsing. The details of the errors are seen when looking the HTML source of the page.

The extension is based on Tidy and OpenSP. Both algorithms were originally developed by the Web Consortium W3C. Both algorithms are embedded inside Mozilla/Firefox and makes the validation locally on your machine, without sending HTML to a third party server.
This project aims to create an archive of user contributed clip art that can be freely used.
Starting at the beginning, this reference explains everything you need to know about using core JavaScript. It assumes you have the following basic background: a general understanding of the Internet and the World Wide Web and a good working knowledge of HTML. An excellent resource.
Edit your images on the fly online with Splashup, a web-based image editor that integrates with Flickr, Facebook, and Picasa. Splashup offers up a surprising array of image editing tools, far beyond the usual crop of resize and contrast-- you can also edit multiple images, play with filters and layers, use a variety of brushes, and more. Splashup is one of the best image editors in a long line of image editors; i.e., Picnik, Pixoh, and Resizr, to name just a few.[Lifehacker Annotation]
This website will let you:
  • Create an XML sitemap format that can be submitted to Google to help them crawl your website better.
  • Create a Text sitemap to submit to Yahoo.
  • Create a ROR sitemap, which is an independant XML format for any search engine.
  • Generate an HTML site map to allow human visitors to easily navigate on your site.
Clearspring's free Launchpad widget builder lets you easily turn your website's content into a widget which site visitors can use to place your content on all the major social media sites (MySpace, FaceBook, Google, hi5, Live, Yahoo, Wordpress, Blogger, etc.). The service also provides tracking and analysis.
This site features online text and html changing, modifying, converting tools designed to save you time making web pages or preparing text for web publication. If you've ever needed to capitalize sentences or convert line breaks to <p> or <br /> then this site can save you needless manual labor. There are other useful tools as well, like the one to uncompress html to make it readable and the ones to uppercase or lowercase text. Basically, the most common tasks that someone who works in an office or does freelance web development might encounter. Most of the tools have been created using javascript so you should be able to change large amounts of text as the processing is done on your computer instead of being limited by a server script.
You've downloaded and configured your Apache server and are ready to move on to the next project. Can it really be left to fend for itself in a darkened room?

Yes. To some degree, anyway. On the other hand, completely ignoring your Apache installation would be foolhardy.
The Wikipedia entry for Sender Policy Framework (SPF).
The Wikipedia entry for DomainKeys.

On Apache servers, the httpd.conf file is the main file of concern when modifying settings and functionality.

Depending on the hosting package and provider you chose, you may or may not have access to this file to modify. You may also have access to make limited changes via a graphical control panel. The default settings of your hosting package will dictate which, if any, changes might be needed. Changes I have had to make at different times include:

Recognize index.php as the default server page
You probably already know that when you type in a web address you don't need to specify /index.htm, /index.html, etc. That is because the server is usually configured to recognize .htm* files as default. You would think that when you add the PHP service to your server it would automatically recognize index.php as a default page as well. Usually that will be the case. But, for some hosting providers (e.g., mine) you must specify this yourself. To do so, find the following line in httpd.conf:
DirectoryIndex index.html index.htm
and replace with:
DirectoryIndex index.php index.html index.htm
Note: If you don't have access to the httpd.conf file you can make this change via a .htaccess file. To do so, just add the following line:
DirectoryIndex index.php index.htm index.html

404 page customization

If you can modify you httpd.conf file, find the line that begins with:
ErrorDocument 404
And change what comes after the 404 to the page location you wish your 404 pages to be redirected, e.g.,
ErrorDocument 404 /dirname/404page.php
If you don't have access to the httpd.conf file you can make this change via a .htaccess file. To do so, just add the following line:
ErrorDocument 404 /dirname/filename

Log file format

Your server tracks all site access and records relevant details to log files. The amount and format of information logged can be changed via the httpd.conf file. The point of this is to provide raw data for site analytics software. Thus, the only time you will really care about this is if you plan to install analytics software on your server. These days, many people are choosing hosted analytics programs like Google Analytics, which require placement of code on every relevant page, thus allowing logging directly to the hosted software site. In such a case, you don't care too much about log file format. If you want to know more about changing your log file format, I recommend reading the relevant Apache page.

Directory access

Some default server setups allow anyone to see contents of a directory where there is no index file. You may have seen this on other sites before where instead of a webpage you just saw a list of folders and filenames. Generally, this is not something you want. To make sure this doesn't happen on your server, comment out the following line in your httpd.conf file (e.g. add a # before the line).
Options Indexes FollowSymLinks MultiViews Includes

Text Size:
small_A.gif small_A.gif
Bookmark and Share



Trackbacks »