Unix Web Hosting for Developers

Unix - Unix Like Operating Systems

The LogFormat statement controls the data logged by

Filed under: Guide To FreeBSD — webmaster @ 12:44 pm

The LogFormat statement controls the data logged by the server. There are several different default LogFormat settings established for your convenience: The “common” format logs the IP address of the client, the time of the request, the file requested, and a few other basic things. The “referrer” format logs the site that referred the client meaning, another Web page with a link to yours. The “agent” format records the Web browser used. The “combined” format logs all of the above. (This can generate very large logs, so be sure you have lots of disk space.) Note If you dig through the Apache documentation, you can write your own LogFormat statements easily enough. The formats mentioned here are understood by all the popular Web log analysis programs, however, so don’t change them arbitrarily Custom Logs ………………………………………………………………………………………. CustomLog /var/log/httpd-access.log combined ………………………………………………………………………………………. The CustomLog statement controls the name of the log file and the format used. In the preceding example, the main Web site logs to /var/log/httpd-access.log in the “combined” format. You can have several CustomLog statements for different purposes. For example, if you’re using an Apache module that provides special functionality that you want logged, but you don’t want to break the WebTrends product being used by your clients, you can use multiple CustomLog statements to write to two separate log files. Aliases ………………………………………………………………………………………. Alias /icons/ “/usr/local/www/icons/” ………………………………………………………………………………………. Use the Alias statement to provide aliases for directories on your Web site, much like a symlink. In the preceding example, someone looking at http://www.AbsoluteBSD.com/icons/ would actually be pulling files from the directory /usr/local/www/icons/. 343

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Linux Web Hosting services

2 Comments

  1. […] Wesley Clark Link to Article linux The LogFormat statement controls the data logged by » Posted at Unix Web Hosting for Developers on Thursday, June 28, 2007 The LogFormat statement controls the data logged by the server … quality web space to host and run your application check Lunarwebhost Linux Web Hosting services View Entire Article » […]

    Pingback by University Update - Linux - The LogFormat statement controls the data logged by — June 28, 2007 @ 3:09 pm

  2. dbca74096ad860592a95…

    dbca74096ad8…

    Trackback by dbca74096ad860592a95 — October 2, 2007 @ 3:59 pm

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Unix Web Hosting