Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I need these things????

Status
Not open for further replies.

webmastadj84

IS-IT--Management
Aug 23, 2006
86
US
I need to know if I need all these things inside the apache config file. I am trying to clean it up to what I need exactly.

Here are the items that I am questioning:

============================================================
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html
============================================================
============================================================
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

ForceLanguagePriority Prefer Fallback

AddDefaultCharset UTF-8

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler type-map var

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
============================================================

Also, do the main file have to have a DocumentRoot, Server Admin, etc.? Basically this is how it I am going to have it set-up. Starting with two sites. All the sites are going to be in one directory: /var/ The first site will be /var/ and the second will be /var/ So as you can see, I don't need a general site. Currently don't need any logs to be running either. I will be running php and mysql though.
 
NO LOGS?????????????????????????????????????????

Are you trying to change the httpd.conf to try and make it run faster by removing things?
 
No, I am just trying to condense it to only the things I need. I am trying to learn it and have 500 lines of code that I really don't need is not helping. If I need them, I will add them later...simple as that.
 
I would create a backup first. Then you can delete anything you don't like in steps. If you break something, then you'll know what you need to put back. To answer your question, I don't think great harm will come if you delete those lines. Also, if you are going to be using virtual hosts, the 'main' never gets served so you can comment those lines out or delete them. The first vhost defined will become the default server. You may find it easier to put all your vhosts in their own file. Usually it's called vhosts.conf and is in the conf.d directory. Look for the 'Include' directive in httpd.conf and it will show you which directories and file extensions are included.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top