]>
Commit | Line | Data |
---|---|---|
4af76ed4 | 1 | ## |
2 | ## srm.conf -- Apache HTTP server configuration file | |
3 | ## | |
4 | ||
5 | # With this document, you define the name space that users see of your http | |
6 | # server. This file also defines server settings which affect how requests are | |
7 | # serviced, and how results should be formatted. | |
8 | ||
9 | # See the tutorials at http://www.apache.org/ for | |
10 | # more information. | |
11 | ||
12 | # Originally by Rob McCool; Adapted for Apache | |
13 | ||
14 | ||
15 | # DocumentRoot: The directory out of which you will serve your | |
16 | # documents. By default, all requests are taken from this directory, but | |
17 | # symbolic links and aliases may be used to point to other locations. | |
18 | ||
19 | DocumentRoot "/home/httpd/html" | |
20 | ||
21 | # UserDir: The name of the directory which is appended onto a user's home | |
22 | # directory if a ~user request is recieved. | |
23 | ||
24 | UserDir public_html | |
25 | ||
26 | # DirectoryIndex: Name of the file or files to use as a pre-written HTML | |
27 | # directory index. Separate multiple entries with spaces. | |
28 | ||
29 | DirectoryIndex index.html index.htm index.shtml index.cgi | |
30 | ||
31 | # The IndexOptions directive specifies the behavior of directory listing | |
32 | ||
33 | IndexOptions FancyIndexing IconHeight IconWidth | |
34 | ||
35 | # AddIcon tells the server which icon to show for different files or filename | |
36 | # extensions | |
37 | ||
38 | AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip | |
39 | ||
40 | AddIconByType (TXT,/icons/text.gif) text/* | |
41 | AddIconByType (IMG,/icons/image2.gif) image/* | |
42 | AddIconByType (SND,/icons/sound2.gif) audio/* | |
43 | AddIconByType (VID,/icons/movie.gif) video/* | |
44 | ||
45 | AddIcon /icons/binary.gif .bin .exe | |
46 | AddIcon /icons/binhex.gif .hqx | |
47 | AddIcon /icons/tar.gif .tar | |
48 | AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv | |
49 | AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip | |
50 | AddIcon /icons/a.gif .ps .ai .eps | |
51 | AddIcon /icons/layout.gif .html .shtml .htm .pdf | |
52 | AddIcon /icons/text.gif .txt | |
53 | AddIcon /icons/c.gif .c | |
54 | AddIcon /icons/p.gif .pl .py | |
55 | AddIcon /icons/f.gif .for | |
56 | AddIcon /icons/dvi.gif .dvi | |
57 | AddIcon /icons/uuencoded.gif .uu | |
58 | AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl | |
59 | AddIcon /icons/tex.gif .tex | |
60 | AddIcon /icons/bomb.gif core | |
61 | ||
62 | AddIcon /icons/back.gif .. | |
63 | AddIcon /icons/hand.right.gif README | |
64 | AddIcon /icons/folder.gif ^^DIRECTORY^^ | |
65 | AddIcon /icons/blank.gif ^^BLANKICON^^ | |
66 | ||
67 | # DefaultIcon is which icon to show for files which do not have an icon | |
68 | # explicitly set. | |
69 | ||
70 | DefaultIcon /icons/unknown.gif | |
71 | ||
72 | # AddDescription allows you to place a short description after a file in | |
73 | # server-generated indexes. | |
74 | # Format: AddDescription "description" filename | |
75 | ||
76 | # ReadmeName is the name of the README file the server will look for by | |
77 | # default. Format: ReadmeName name | |
78 | # | |
79 | # The server will first look for name.html, include it if found, and it will | |
80 | # then look for name and include it as plaintext if found. | |
81 | # | |
82 | # HeaderName is the name of a file which should be prepended to | |
83 | # directory indexes. | |
84 | ||
85 | ReadmeName README | |
86 | HeaderName HEADER | |
87 | ||
88 | # IndexIgnore is a set of filenames which directory indexing should ignore | |
89 | # Format: IndexIgnore name1 name2... | |
90 | ||
91 | IndexIgnore .??* *~ *# HEADER* README* RCS | |
92 | ||
93 | # AccessFileName: The name of the file to look for in each directory | |
94 | # for access control information. | |
95 | ||
96 | AccessFileName .htaccess | |
97 | ||
98 | # The following lines prevent .htaccess files from being viewed by | |
99 | # Web clients. Since .htaccess files often contain authorization | |
100 | # information, access is disallowed for security reasons. Comment | |
101 | # these lines out if you want Web visitors to see the contents of | |
102 | # .htaccess files. If you change the AccessFileName directive above, | |
103 | # be sure to make the corresponding changes here. | |
104 | ||
105 | <Files .htaccess> | |
106 | order allow,deny | |
107 | deny from all | |
108 | </Files> | |
109 | ||
110 | # TypesConfig describes where the mime.types file (or equivalent) is | |
111 | # to be found. | |
112 | ||
113 | TypesConfig /etc/mime.types | |
114 | ||
115 | # DefaultType is the default MIME type for documents which the server | |
116 | # cannot find the type of from filename extensions. | |
117 | ||
118 | DefaultType text/plain | |
119 | ||
120 | # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress | |
121 | # information on the fly. Note: Not all browsers support this. | |
122 | ||
123 | AddEncoding x-compress Z | |
124 | AddEncoding x-gzip gz | |
125 | ||
126 | # AddLanguage allows you to specify the language of a document. You can | |
127 | # then use content negotiation to give a browser a file in a language | |
128 | # it can understand. Note that the suffix does not have to be the same | |
129 | # as the language keyword --- those with documents in Polish (whose | |
130 | # net-standard language code is pl) may wish to use "AddLanguage pl .po" | |
131 | # to avoid the ambiguity with the common suffix for perl scripts. | |
132 | ||
133 | AddLanguage en .en | |
134 | AddLanguage fr .fr | |
135 | AddLanguage de .de | |
136 | AddLanguage da .da | |
137 | AddLanguage el .el | |
138 | AddLanguage it .it | |
139 | AddLanguage pl .po | |
140 | ||
141 | # LanguagePriority allows you to give precedence to some languages | |
142 | # in case of a tie during content negotiation. | |
143 | # Just list the languages in decreasing order of preference. | |
144 | ||
145 | LanguagePriority en pl fr de | |
146 | ||
147 | # Redirect allows you to tell clients about documents which used to exist in | |
148 | # your server's namespace, but do not anymore. This allows you to tell the | |
149 | # clients where to look for the relocated document. | |
150 | # Format: Redirect fakename url | |
151 | ||
152 | ||
153 | # Aliases: Add here as many aliases as you need (with no limit). The format is | |
154 | # Alias fakename realname | |
155 | ||
156 | # Note that if you include a trailing / on fakename then the server will | |
157 | # require it to be present in the URL. So "/icons" isn't aliased in this | |
158 | # example. | |
159 | ||
160 | Alias /icons/ "/home/httpd/icons/" | |
161 | ||
162 | # ScriptAlias: This controls which directories contain server scripts. | |
163 | # Format: ScriptAlias fakename realname | |
164 | ||
165 | ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" | |
166 | ||
167 | # If you want to use server side includes, or CGI outside | |
168 | # ScriptAliased directories, uncomment the following lines. | |
169 | ||
170 | # AddType allows you to tweak mime.types without actually editing it, or to | |
171 | # make certain files to be certain types. | |
172 | # Format: AddType type/subtype ext1 | |
173 | ||
174 | # For example, the PHP3 module (not part of the Apache distribution) | |
175 | # will typically use: | |
176 | #AddType application/x-httpd-php3 .phtml | |
177 | #AddType application/x-httpd-php3-source .phps | |
178 | ||
179 | # AddHandler allows you to map certain file extensions to "handlers", | |
180 | # actions unrelated to filetype. These can be either built into the server | |
181 | # or added with the Action command (see below) | |
182 | # Format: AddHandler action-name ext1 | |
183 | ||
184 | # To use CGI scripts: | |
185 | AddHandler cgi-script .cgi | |
186 | ||
187 | # To use server-parsed HTML files | |
188 | AddType text/html .shtml | |
189 | AddHandler server-parsed .shtml | |
190 | ||
191 | # Uncomment the following line to enable Apache's send-asis HTTP file | |
192 | # feature | |
193 | AddHandler send-as-is asis | |
194 | ||
195 | # If you wish to use server-parsed imagemap files, use | |
196 | AddHandler imap-file map | |
197 | ||
198 | # To enable type maps, you might want to use | |
199 | #AddHandler type-map var | |
200 | ||
201 | # Action lets you define media types that will execute a script whenever | |
202 | # a matching file is called. This eliminates the need for repeated URL | |
203 | # pathnames for oft-used CGI file processors. | |
204 | # Format: Action media/type /cgi-script/location | |
205 | # Format: Action handler-name /cgi-script/location | |
206 | ||
207 | # MetaDir: specifies the name of the directory in which Apache can find | |
208 | # meta information files. These files contain additional HTTP headers | |
209 | # to include when sending the document | |
210 | ||
211 | #MetaDir .web | |
212 | ||
213 | # MetaSuffix: specifies the file name suffix for the file containing the | |
214 | # meta information. | |
215 | ||
216 | #MetaSuffix .meta | |
217 | ||
4af76ed4 | 218 | # The following directives disable keepalives and HTTP header flushes. |
219 | # The first directive disables it for Netscape 2.x and browsers which | |
220 | # spoof it. There are known problems with these. | |
221 | # The second directive is for Microsoft Internet Explorer 4.0b2 | |
222 | # which has a broken HTTP/1.1 implementation and does not properly | |
223 | # support keepalive when it is used on 301 or 302 (redirect) responses. | |
224 | ||
225 | BrowserMatch "Mozilla/2" nokeepalive | |
226 | BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 | |
227 | ||
228 | # The following directive disables HTTP/1.1 responses to browsers which | |
229 | # are in violation of the HTTP/1.0 spec by not being able to grok a | |
230 | # basic 1.1 response. | |
231 | ||
232 | BrowserMatch "RealPlayer 4\.0" force-response-1.0 | |
233 | BrowserMatch "Java/1\.0" force-response-1.0 | |
234 | BrowserMatch "JDK/1\.0" force-response-1.0 |