- add sources.
[platform/framework/web/crosswalk.git] / src / tools / python / google / httpd_config / httpd2_mac.conf
1 ## httpd2.conf -- Apache 2.x HTTP server configuration file
2
3 #
4 # Listen: Allows you to bind Apache to specific IP addresses and/or
5 # ports, instead of the default. See also the <VirtualHost>
6 # directive.
7 #
8 Listen 127.0.0.1:8000
9
10 #
11 # Dynamic Shared Object (DSO) Support
12 #
13 # To be able to use the functionality of a module which was built as a DSO you
14 # have to place corresponding `LoadModule' lines at this location so the
15 # directives contained in it are actually available _before_ they are used.
16 # Please read the file http://httpd.apache.org/docs/dso.html for more
17 # details about the DSO mechanism and run `httpd -l' for the list of already
18 # built-in (statically linked and thus always available) modules in your httpd
19 # binary.
20 #
21 # Note: The order in which modules are loaded is important.  Don't change
22 # the order below without expert advice.
23 #
24 # NOTE: This is not the same set of modules that gets loaded on win.
25 LoadModule authz_host_module libexec/apache2/mod_authz_host.so
26 LoadModule mime_module libexec/apache2/mod_mime.so
27 LoadModule ssl_module libexec/apache2/mod_ssl.so
28 LoadModule autoindex_module libexec/apache2/mod_autoindex.so
29 LoadModule alias_module libexec/apache2/mod_alias.so
30 LoadModule log_config_module libexec/apache2/mod_log_config.so
31
32 #LoadModule include_module libexec/apache2/mod_include.so
33 #LoadModule headers_module libexec/apache2/mod_headers.so
34 #LoadModule asis_module libexec/apache2/mod_asis.so
35 #LoadModule cgi_module libexec/apache2/mod_cgi.so
36 #LoadModule negotiation_module libexec/apache2/mod_negotiation.so
37 #LoadModule imagemap_module libexec/apache2/mod_imagemap.so
38 #LoadModule actions_module libexec/apache2/mod_actions.so
39 #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
40
41
42 #
43 # Each directory to which Apache has access, can be configured with respect
44 # to which services and features are allowed and/or disabled in that
45 # directory (and its subdirectories).
46 #
47 <Directory />
48     Options Indexes FollowSymLinks MultiViews ExecCGI Includes
49     AllowOverride All
50     Order allow,deny
51     Allow from all
52 </Directory>
53
54
55 #
56 # Apple specific filesystem protection.
57
58 <Files "rsrc">
59     Order allow,deny
60     Deny from all
61     Satisfy All
62 </Files>
63 <Directory  ~ ".*\.\.namedfork">
64     Order allow,deny
65     Deny from all
66     Satisfy All
67 </Directory>
68
69
70 #
71 # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
72 # Apache needs to construct a self-referencing URL (a URL that refers back
73 # to the server the response is coming from) it will use ServerName and
74 # Port to form a "canonical" name.  With this setting off, Apache will
75 # use the hostname:port that the client supplied, when possible.  This
76 # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
77 #
78 UseCanonicalName On
79
80
81 #
82 # The following directives define some format nicknames for use with
83 # a CustomLog directive (see below).
84 #
85 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
86 LogFormat "%h %l %u %t \"%r\" %>s %b" common
87 LogFormat "%{Referer}i -> %U" referer
88 LogFormat "%{User-agent}i" agent
89
90
91 #
92 # Optionally add a line containing the server version and virtual host
93 # name to server-generated pages (error documents, FTP directory listings,
94 # mod_status and mod_info output etc., but not CGI generated documents).
95 # Set to "EMail" to also include a mailto: link to the ServerAdmin.
96 # Set to one of:  On | Off | EMail
97 #
98 ServerSignature On
99
100
101 #
102 # Document types.
103 #
104 <IfModule mime_module>
105
106     #
107     # AddLanguage allows you to specify the language of a document. You can
108     # then use content negotiation to give a browser a file in a language
109     # it can understand.  
110     #
111     # Note 1: The suffix does not have to be the same as the language 
112     # keyword --- those with documents in Polish (whose net-standard 
113     # language code is pl) may wish to use "AddLanguage pl .po" to 
114     # avoid the ambiguity with the common suffix for perl scripts.
115     #
116     # Note 2: The example entries below illustrate that in quite
117     # some cases the two character 'Language' abbreviation is not
118     # identical to the two character 'Country' code for its country,
119     # E.g. 'Danmark/dk' versus 'Danish/da'.
120     #
121     # Note 3: In the case of 'ltz' we violate the RFC by using a three char 
122     # specifier. But there is 'work in progress' to fix this and get 
123     # the reference data for rfc1766 cleaned up.
124     #
125     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
126     # French (fr) - German (de) - Greek-Modern (el)
127     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
128     # Portugese (pt) - Luxembourgeois* (ltz)
129     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
130     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
131     # Russian (ru)
132     #
133     AddLanguage da .dk
134     AddLanguage nl .nl
135     AddLanguage en .en
136     AddLanguage et .ee
137     AddLanguage fr .fr
138     AddLanguage de .de
139     AddLanguage el .el
140     AddLanguage he .he
141     AddCharset ISO-8859-8 .iso8859-8
142     AddLanguage it .it
143     AddLanguage ja .ja
144     AddCharset ISO-2022-JP .jis
145     AddLanguage kr .kr
146     AddCharset ISO-2022-KR .iso-kr
147     AddLanguage nn .nn
148     AddLanguage no .no
149     AddLanguage pl .po
150     AddCharset ISO-8859-2 .iso-pl
151     AddLanguage pt .pt
152     AddLanguage pt-br .pt-br
153     AddLanguage ltz .lu
154     AddLanguage ca .ca
155     AddLanguage es .es
156     AddLanguage sv .sv
157     AddLanguage cs .cz .cs
158     AddLanguage ru .ru
159     AddLanguage zh-TW .zh-tw
160     AddCharset Big5         .Big5    .big5
161     AddCharset WINDOWS-1251 .cp-1251
162     AddCharset CP866        .cp866
163     AddCharset ISO-8859-5   .iso-ru
164     AddCharset KOI8-R       .koi8-r
165     AddCharset UCS-2        .ucs2
166     AddCharset UCS-4        .ucs4
167     AddCharset UTF-8        .utf8
168
169     # LanguagePriority allows you to give precedence to some languages
170     # in case of a tie during content negotiation.
171     #
172     # Just list the languages in decreasing order of preference. We have
173     # more or less alphabetized them here. You probably want to change this.
174     #
175     <IfModule negotiation_module>
176         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
177     </IfModule>
178
179     #
180     # AddType allows you to tweak mime.types without actually editing it, or to
181     # make certain files to be certain types.
182     #
183     AddType application/x-tar .tgz
184
185     #
186     # AddEncoding allows you to have certain browsers uncompress
187     # information on the fly. Note: Not all browsers support this.
188     # Despite the name similarity, the following Add* directives have nothing
189     # to do with the FancyIndexing customization directives above.
190     #
191     AddEncoding x-compress .Z
192     AddEncoding x-gzip .gz .tgz
193
194     #
195     # AddHandler allows you to map certain file extensions to "handlers",
196     # actions unrelated to filetype. These can be either built into the server
197     # or added with the Action command (see below)
198     #
199     # If you want to use server side includes, or CGI outside
200     # ScriptAliased directories, uncomment the following lines.
201     #
202     # To use CGI scripts:
203     #
204     AddHandler cgi-script .cgi .pl
205
206     #
207     # To use server-parsed HTML files
208     #
209     AddType text/html .shtml
210     AddHandler server-parsed .shtml
211
212     #
213     # Uncomment the following line to enable Apache's send-asis HTTP file
214     # feature
215     #
216     AddHandler send-as-is asis
217 </IfModule>
218
219
220 <IfModule php5_module>
221     AddType application/x-httpd-php .php
222     AddType application/x-httpd-php-source .phps
223 </IfModule>
224
225 <IfModule rewrite_module>
226     RewriteEngine On
227     RewriteCond %{REQUEST_METHOD} ^TRACE
228     RewriteRule .* - [F]
229 </IfModule>