Skip to content

Commit f87fe5d

Browse files
committed
create files and folders
1 parent db13295 commit f87fe5d

31 files changed

+7760
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#
2+
# Directives controlling the display of server-generated directory listings.
3+
#
4+
# Required modules: mod_authz_core, mod_authz_host,
5+
# mod_autoindex, mod_alias
6+
#
7+
# To see the listing of a directory, the Options directive for the
8+
# directory must include "Indexes", and the directory must not contain
9+
# a file matching those listed in the DirectoryIndex directive.
10+
#
11+
12+
#
13+
# IndexOptions: Controls the appearance of server-generated directory
14+
# listings.
15+
#
16+
IndexOptions FancyIndexing HTMLTable VersionSort
17+
18+
# We include the /icons/ alias for FancyIndexed directory listings. If
19+
# you do not use FancyIndexing, you may comment this out.
20+
#
21+
Alias /icons/ "/usr/local/apache2/icons/"
22+
23+
<Directory "/usr/local/apache2/icons">
24+
Options Indexes MultiViews
25+
AllowOverride None
26+
Require all granted
27+
</Directory>
28+
29+
#
30+
# AddIcon* directives tell the server which icon to show for different
31+
# files or filename extensions. These are only displayed for
32+
# FancyIndexed directories.
33+
#
34+
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
35+
36+
AddIconByType (TXT,/icons/text.gif) text/*
37+
AddIconByType (IMG,/icons/image2.gif) image/*
38+
AddIconByType (SND,/icons/sound2.gif) audio/*
39+
AddIconByType (VID,/icons/movie.gif) video/*
40+
41+
AddIcon /icons/binary.gif .bin .exe
42+
AddIcon /icons/binhex.gif .hqx
43+
AddIcon /icons/tar.gif .tar
44+
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
45+
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
46+
AddIcon /icons/a.gif .ps .ai .eps
47+
AddIcon /icons/layout.gif .html .shtml .htm .pdf
48+
AddIcon /icons/text.gif .txt
49+
AddIcon /icons/c.gif .c
50+
AddIcon /icons/p.gif .pl .py
51+
AddIcon /icons/f.gif .for
52+
AddIcon /icons/dvi.gif .dvi
53+
AddIcon /icons/uuencoded.gif .uu
54+
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
55+
AddIcon /icons/tex.gif .tex
56+
AddIcon /icons/bomb.gif core
57+
58+
AddIcon /icons/back.gif ..
59+
AddIcon /icons/hand.right.gif README
60+
AddIcon /icons/folder.gif ^^DIRECTORY^^
61+
AddIcon /icons/blank.gif ^^BLANKICON^^
62+
63+
#
64+
# DefaultIcon is which icon to show for files which do not have an icon
65+
# explicitly set.
66+
#
67+
DefaultIcon /icons/unknown.gif
68+
69+
#
70+
# AddDescription allows you to place a short description after a file in
71+
# server-generated indexes. These are only displayed for FancyIndexed
72+
# directories.
73+
# Format: AddDescription "description" filename
74+
#
75+
#AddDescription "GZIP compressed document" .gz
76+
#AddDescription "tar archive" .tar
77+
#AddDescription "GZIP compressed tar archive" .tgz
78+
79+
#
80+
# ReadmeName is the name of the README file the server will look for by
81+
# default, and append to directory listings.
82+
#
83+
# HeaderName is the name of a file which should be prepended to
84+
# directory indexes.
85+
ReadmeName README.html
86+
HeaderName HEADER.html
87+
88+
#
89+
# IndexIgnore is a set of filenames which directory indexing should ignore
90+
# and not include in the listing. Shell-style wildcarding is permitted.
91+
#
92+
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
93+

webserver/extra/httpd-dav.conf

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# Distributed authoring and versioning (WebDAV)
3+
#
4+
# Required modules: mod_alias, mod_auth_digest, mod_authn_core, mod_authn_file,
5+
# mod_authz_core, mod_authz_user, mod_dav, mod_dav_fs,
6+
# mod_setenvif
7+
8+
# The following example gives DAV write access to a directory called
9+
# "uploads" under the ServerRoot directory.
10+
#
11+
# The User/Group specified in httpd.conf needs to have write permissions
12+
# on the directory where the DavLockDB is placed and on any directory where
13+
# "Dav On" is specified.
14+
15+
DavLockDB "/usr/local/apache2/var/DavLock"
16+
17+
Alias /uploads "/usr/local/apache2/uploads"
18+
19+
<Directory "/usr/local/apache2/uploads">
20+
Dav On
21+
22+
AuthType Digest
23+
AuthName DAV-upload
24+
# You can use the htdigest program to create the password database:
25+
# htdigest -c "/usr/local/apache2/user.passwd" DAV-upload admin
26+
AuthUserFile "/usr/local/apache2/user.passwd"
27+
AuthDigestProvider file
28+
29+
# Allow universal read-access, but writes are restricted
30+
# to the admin user.
31+
<RequireAny>
32+
Require method GET POST OPTIONS
33+
Require user admin
34+
</RequireAny>
35+
</Directory>
36+
37+
#
38+
# The following directives disable redirects on non-GET requests for
39+
# a directory that does not include the trailing slash. This fixes a
40+
# problem with several clients that do not appropriately handle
41+
# redirects for folders with DAV methods.
42+
#
43+
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
44+
BrowserMatch "MS FrontPage" redirect-carefully
45+
BrowserMatch "^WebDrive" redirect-carefully
46+
BrowserMatch "^WebDAVFS/1.[01234]" redirect-carefully
47+
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
48+
BrowserMatch "^XML Spy" redirect-carefully
49+
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
50+
BrowserMatch " Konqueror/4" redirect-carefully

webserver/extra/httpd-default.conf

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#
2+
# This configuration file reflects default settings for Apache HTTP Server.
3+
#
4+
# You may change these, but chances are that you may not need to.
5+
#
6+
7+
#
8+
# Timeout: The number of seconds before receives and sends time out.
9+
#
10+
Timeout 60
11+
12+
#
13+
# KeepAlive: Whether or not to allow persistent connections (more than
14+
# one request per connection). Set to "Off" to deactivate.
15+
#
16+
KeepAlive On
17+
18+
#
19+
# MaxKeepAliveRequests: The maximum number of requests to allow
20+
# during a persistent connection. Set to 0 to allow an unlimited amount.
21+
# We recommend you leave this number high, for maximum performance.
22+
#
23+
MaxKeepAliveRequests 100
24+
25+
#
26+
# KeepAliveTimeout: Number of seconds to wait for the next request from the
27+
# same client on the same connection.
28+
#
29+
KeepAliveTimeout 5
30+
31+
#
32+
# UseCanonicalName: Determines how Apache constructs self-referencing
33+
# URLs and the SERVER_NAME and SERVER_PORT variables.
34+
# When set "Off", Apache will use the Hostname and Port supplied
35+
# by the client. When set "On", Apache will use the value of the
36+
# ServerName directive.
37+
#
38+
UseCanonicalName Off
39+
40+
#
41+
# AccessFileName: The name of the file to look for in each directory
42+
# for additional configuration directives. See also the AllowOverride
43+
# directive.
44+
#
45+
AccessFileName .htaccess
46+
47+
#
48+
# ServerTokens
49+
# This directive configures what you return as the Server HTTP response
50+
# Header. The default is 'Full' which sends information about the OS-Type
51+
# and compiled in modules.
52+
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
53+
# where Full conveys the most information, and Prod the least.
54+
#
55+
ServerTokens Full
56+
57+
#
58+
# Optionally add a line containing the server version and virtual host
59+
# name to server-generated pages (internal error documents, FTP directory
60+
# listings, mod_status and mod_info output etc., but not CGI generated
61+
# documents or custom error documents).
62+
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
63+
# Set to one of: On | Off | EMail
64+
#
65+
ServerSignature Off
66+
67+
#
68+
# HostnameLookups: Log the names of clients or just their IP addresses
69+
# e.g., www.apache.org (on) or 204.62.129.132 (off).
70+
# The default is off because it'd be overall better for the net if people
71+
# had to knowingly turn this feature on, since enabling it means that
72+
# each client request will result in AT LEAST one lookup request to the
73+
# nameserver.
74+
#
75+
HostnameLookups Off
76+
77+
#
78+
# Set a timeout for how long the client may take to send the request header
79+
# and body.
80+
# The default for the headers is header=20-40,MinRate=500, which means wait
81+
# for the first byte of headers for 20 seconds. If some data arrives,
82+
# increase the timeout corresponding to a data rate of 500 bytes/s, but not
83+
# above 40 seconds.
84+
# The default for the request body is body=20,MinRate=500, which is the same
85+
# but has no upper limit for the timeout.
86+
# To disable, set to header=0 body=0
87+
#
88+
<IfModule reqtimeout_module>
89+
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
90+
</IfModule>

webserver/extra/httpd-info.conf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# Get information about the requests being processed by the server
3+
# and the configuration of the server.
4+
#
5+
# Required modules: mod_authz_core, mod_authz_host,
6+
# mod_info (for the server-info handler),
7+
# mod_status (for the server-status handler)
8+
9+
#
10+
# Allow server status reports generated by mod_status,
11+
# with the URL of http://servername/server-status
12+
# Change the ".example.com" to match your domain to enable.
13+
14+
<Location /server-status>
15+
SetHandler server-status
16+
Require host .example.com
17+
Require ip 127
18+
</Location>
19+
20+
#
21+
# ExtendedStatus controls whether Apache will generate "full" status
22+
# information (ExtendedStatus On) or just basic information (ExtendedStatus
23+
# Off) when the "server-status" handler is called. The default is Off.
24+
#
25+
#ExtendedStatus On
26+
27+
#
28+
# Allow remote server configuration reports, with the URL of
29+
# http://servername/server-info (requires that mod_info.c be loaded).
30+
# Change the ".example.com" to match your domain to enable.
31+
#
32+
<Location /server-info>
33+
SetHandler server-info
34+
Require host .example.com
35+
Require ip 127
36+
</Location>

0 commit comments

Comments
 (0)