Advertisement
brucewhealton

httpd.conf file

Mar 8th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.76 KB | None | 0 0
  1. I know I'll have to delete this very soon for security purposes. I have setup fwwebdev.dnsdynamic.com and futurewavewebdevelopment.com to point to my ip. I opened the ports and added to the iptables file. After updating my httpd.conf file, I get a forbidden error, when I try either futurewavewebdevelopment.com or fwwebdev.dnsdynamic.com
  2. I want this structure:
  3. /home/www/fwwebdev.dnsdynamic.com/public_html
  4. and /home/www/futurewavewebdevelopment.com/public_html
  5.  
  6.  
  7. GNU nano 2.0.9 File: httpd.conf
  8.  
  9. #
  10. # This is the main Apache server configuration file. It contains the
  11. # configuration directives that give the server its instructions.
  12. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
  13. # In particular, see
  14. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  15. # for a discussion of each configuration directive.
  16. #
  17. #
  18. # Do NOT simply read the instructions in here without understanding
  19. # what they do. They're here only as hints or reminders. If you are unsure
  20. # consult the online docs. You have been warned.
  21. #
  22. # The configuration directives are grouped into three basic sections:
  23. # 1. Directives that control the operation of the Apache server process as a
  24. # whole (the 'global environment').
  25. # 2. Directives that define the parameters of the 'main' or 'default' server,
  26. # which responds to requests that aren't handled by a virtual host.
  27. # These directives also provide default values for the settings
  28. # of all virtual hosts.
  29. # 3. Settings for virtual hosts, which allow Web requests to be sent to
  30. # different IP addresses or hostnames and have them handled by the
  31. # same Apache server process.
  32. #
  33. # Configuration and logfile names: If the filenames you specify for many
  34. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  35. # server will use that explicit path. If the filenames do *not* begin
  36. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  37. # with ServerRoot set to "/etc/httpd" will be interpreted by the
  38. # server as "/etc/httpd/logs/foo.log".
  39. #
  40.  
  41. ### Section 1: Global Environment
  42. #
  43. # The directives in this section affect the overall operation of Apache,
  44. # such as the number of concurrent requests it can handle or where it
  45. # can find its configuration files.
  46. #
  47.  
  48. #
  49. # Don't give away too much information about all the subcomponents
  50. # we are running. Comment out this line if you don't mind remote sites
  51. # finding out what major optional modules you are running
  52. ServerTokens OS
  53.  
  54. #
  55. # ServerRoot: The top of the directory tree under which the server's
  56. # configuration, error, and log files are kept.
  57. #
  58. # NOTE! If you intend to place this on an NFS (or otherwise network)
  59. # mounted filesystem then please read the LockFile documentation
  60. # (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
  61. # you will save yourself a lot of trouble.
  62. #
  63. # Do NOT add a slash at the end of the directory path.
  64. #
  65. ServerRoot "/etc/httpd"
  66. #
  67. # PidFile: The file in which the server should record its process
  68. # identification number when it starts. Note the PIDFILE variable in
  69. # /etc/sysconfig/httpd must be set appropriately if this location is
  70. # changed.
  71. #
  72. PidFile run/httpd.pid
  73.  
  74. #
  75. # Timeout: The number of seconds before receives and sends time out.
  76. #
  77. Timeout 160
  78.  
  79. #
  80. # KeepAlive: Whether or not to allow persistent connections (more than
  81. # one request per connection). Set to "Off" to deactivate.
  82. #
  83. KeepAlive Off
  84.  
  85. #
  86. # MaxKeepAliveRequests: The maximum number of requests to allow
  87. # during a persistent connection. Set to 0 to allow an unlimited amount.
  88. # We recommend you leave this number high, for maximum performance.
  89. #
  90. MaxKeepAliveRequests 100
  91.  
  92. #
  93. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  94. # same client on the same connection.
  95. #
  96. KeepAliveTimeout 15
  97.  
  98. ##
  99. ## Server-Pool Size Regulation (MPM specific)
  100. ##
  101.  
  102. # prefork MPM
  103. # StartServers: number of server processes to start
  104. # MinSpareServers: minimum number of server processes which are kept spare
  105. # MaxSpareServers: maximum number of server processes which are kept spare
  106. # ServerLimit: maximum value for MaxClients for the lifetime of the server
  107. # MaxClients: maximum number of server processes allowed to start
  108. # MaxRequestsPerChild: maximum number of requests a server process serves
  109. <IfModule prefork.c>
  110. StartServers 8
  111. MinSpareServers 5
  112. MaxSpareServers 20
  113. ServerLimit 256
  114. MaxClients 256
  115. MaxRequestsPerChild 4000
  116. </IfModule>
  117.  
  118. # worker MPM
  119. # StartServers: initial number of server processes to start
  120. # MaxClients: maximum number of simultaneous client connections
  121. # MinSpareThreads: minimum number of worker threads which are kept spare
  122. # MaxSpareThreads: maximum number of worker threads which are kept spare
  123. # ThreadsPerChild: constant number of worker threads in each server process
  124. # MaxRequestsPerChild: maximum number of requests a server process serves
  125. <IfModule worker.c>
  126. StartServers 4
  127. MaxClients 300
  128. MinSpareThreads 25
  129. MaxSpareThreads 75
  130. ThreadsPerChild 25
  131. MaxRequestsPerChild 0
  132. </IfModule>
  133.  
  134. #
  135. # Listen: Allows you to bind Apache to specific IP addresses and/or
  136. # ports, in addition to the default. See also the <VirtualHost>
  137. # directive.
  138. #
  139. # Change this to Listen on specific IP addresses as shown below to
  140. # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
  141. #
  142. #Listen 12.34.56.78:80
  143. Listen 80
  144.  
  145. #
  146. # Dynamic Shared Object (DSO) Support
  147. #
  148. # To be able to use the functionality of a module which was built as a DSO you
  149. # have to place corresponding `LoadModule' lines at this location so the
  150. # directives contained in it are actually available _before_ they are used.
  151. # Statically compiled modules (those listed by `httpd -l') do not need
  152. # to be loaded here.
  153. #
  154. # Example:
  155. # LoadModule foo_module modules/mod_foo.so
  156. #
  157. LoadModule auth_basic_module modules/mod_auth_basic.so
  158. LoadModule auth_digest_module modules/mod_auth_digest.so
  159. LoadModule authn_file_module modules/mod_authn_file.so
  160. LoadModule authn_alias_module modules/mod_authn_alias.so
  161. LoadModule authn_anon_module modules/mod_authn_anon.so
  162. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  163. LoadModule authn_default_module modules/mod_authn_default.so
  164. LoadModule authz_host_module modules/mod_authz_host.so
  165. LoadModule authz_user_module modules/mod_authz_user.so
  166. LoadModule authz_owner_module modules/mod_authz_owner.so
  167. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  168. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  169. LoadModule authz_default_module modules/mod_authz_default.so
  170. LoadModule ldap_module modules/mod_ldap.so
  171. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  172. LoadModule include_module modules/mod_include.so
  173. LoadModule log_config_module modules/mod_log_config.so
  174. LoadModule logio_module modules/mod_logio.so
  175. LoadModule log_config_module modules/mod_log_config.so
  176. LoadModule logio_module modules/mod_logio.so
  177. LoadModule env_module modules/mod_env.so
  178. LoadModule ext_filter_module modules/mod_ext_filter.so
  179. LoadModule mime_magic_module modules/mod_mime_magic.so
  180. LoadModule expires_module modules/mod_expires.so
  181. LoadModule deflate_module modules/mod_deflate.so
  182. LoadModule headers_module modules/mod_headers.so
  183. LoadModule usertrack_module modules/mod_usertrack.so
  184. LoadModule setenvif_module modules/mod_setenvif.so
  185. LoadModule mime_module modules/mod_mime.so
  186. LoadModule dav_module modules/mod_dav.so
  187. LoadModule status_module modules/mod_status.so
  188. LoadModule autoindex_module modules/mod_autoindex.so
  189. LoadModule info_module modules/mod_info.so
  190. LoadModule dav_fs_module modules/mod_dav_fs.so
  191. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  192. LoadModule negotiation_module modules/mod_negotiation.so
  193. LoadModule dir_module modules/mod_dir.so
  194. LoadModule actions_module modules/mod_actions.so
  195. LoadModule speling_module modules/mod_speling.so
  196. LoadModule userdir_module modules/mod_userdir.so
  197. LoadModule alias_module modules/mod_alias.so
  198. LoadModule substitute_module modules/mod_substitute.so
  199. LoadModule rewrite_module modules/mod_rewrite.so
  200. LoadModule proxy_module modules/mod_proxy.so
  201. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  202. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  203. LoadModule proxy_http_module modules/mod_proxy_http.so
  204. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  205. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  206. LoadModule cache_module modules/mod_cache.so
  207. LoadModule suexec_module modules/mod_suexec.so
  208. LoadModule disk_cache_module modules/mod_disk_cache.so
  209. LoadModule cgi_module modules/mod_cgi.so
  210. LoadModule version_module modules/mod_version.so
  211.  
  212. #
  213. # The following modules are not loaded by default:
  214. #
  215. #LoadModule asis_module modules/mod_asis.so
  216. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
  217. #LoadModule cern_meta_module modules/mod_cern_meta.so
  218. #LoadModule cgid_module modules/mod_cgid.so
  219. #LoadModule dbd_module modules/mod_dbd.so
  220. #LoadModule dumpio_module modules/mod_dumpio.so
  221. #LoadModule filter_module modules/mod_filter.so
  222. #LoadModule ident_module modules/mod_ident.so
  223. #LoadModule log_forensic_module modules/mod_log_forensic.so
  224. #LoadModule unique_id_module modules/mod_unique_id.so
  225. #
  226.  
  227. #
  228. # Load config files from the config directory "/etc/httpd/conf.d".
  229. #
  230. Include conf.d/*.conf
  231. #
  232. # ExtendedStatus controls whether Apache will generate "full" status
  233. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  234. # Off) when the "server-status" handler is called. The default is Off.
  235. #
  236. #ExtendedStatus On
  237.  
  238. #
  239. # If you wish httpd to run as a different user or group, you must run
  240. # httpd as root initially and it will switch.
  241. #
  242. # User/Group: The name (or #number) of the user/group to run httpd as.
  243. # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
  244. # . On HPUX you may not be able to use shared memory as nobody, and the
  245. # suggested workaround is to create a user www and use that user.
  246. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  247. # when the value of (unsigned)Group is above 60000;
  248. # don't use Group #-1 on these systems!
  249. #
  250. #User apache
  251. #Group apache
  252. User www
  253. Group www
  254.  
  255. ### Section 2: 'Main' server configuration
  256. #
  257. # The directives in this section set up the values used by the 'main'
  258. # server, which responds to any requests that aren't handled by a
  259. # <VirtualHost> definition. These values also provide defaults for
  260. # any <VirtualHost> containers you may define later in the file.
  261. #
  262. # All of these directives may appear inside <VirtualHost> containers,
  263. # in which case these default settings will be overridden for the
  264. # virtual host being defined.
  265. #
  266.  
  267. #
  268. # ServerAdmin: Your address, where problems with the server should be
  269. # e-mailed. This address appears on some server-generated pages, such
  270. # as error documents. e.g. admin@your-domain.com
  271. #
  272. ServerAdmin bruce@futurewavewebdevelopment.com
  273.  
  274. #
  275. # ServerName gives the name and port that the server uses to identify itself.
  276. # This can often be determined automatically, but we recommend you specify
  277. # it explicitly to prevent problems during startup.
  278. #
  279. # If this is not set to valid DNS name for your host, server-generated
  280. # redirections will not work. See also the UseCanonicalName directive.
  281. #
  282. # If your host doesn't have a registered DNS name, enter its IP address here.
  283. # You will have to access it by its address anyway, and this will make
  284. # redirections work in a sensible way.
  285. #
  286. #ServerName www.example.com:80
  287. ServerName futurewavewebdevelopment.com
  288.  
  289. #
  290. # UseCanonicalName: Determines how Apache constructs self-referencing
  291. # URLs and the SERVER_NAME and SERVER_PORT variables.
  292. # When set "Off", Apache will use the Hostname and Port supplied
  293. # by the client. When set "On", Apache will use the value of the
  294. # ServerName directive.
  295. #
  296. UseCanonicalName Off
  297.  
  298. #
  299. # DocumentRoot: The directory out of which you will serve your
  300. # documents. By default, all requests are taken from this directory, but
  301. # symbolic links and aliases may be used to point to other locations.
  302. #
  303. DocumentRoot "/home/www"
  304.  
  305. #
  306. # Each directory to which Apache has access can be configured with respect
  307. # to which services and features are allowed and/or disabled in that
  308. # directory (and its subdirectories).
  309. #
  310. # First, we configure the "default" to be a very restrictive set of
  311. # features.
  312. #
  313. <Directory />
  314. Options FollowSymLinks
  315. AllowOverride None
  316. </Directory>
  317.  
  318. #
  319. # Note that from this point forward you must specifically allow
  320. # particular features to be enabled - so if something's not working as
  321. # you might expect, make sure that you have specifically enabled it
  322. # below.
  323. #
  324.  
  325. #
  326. # This should be changed to whatever you set DocumentRoot to.
  327. #
  328. <Directory "/home/www">
  329.  
  330. #
  331. # Possible values for the Options directive are "None", "All",
  332. # or any combination of:
  333. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  334. #
  335. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  336. # doesn't give it to you.
  337. #
  338. # The Options directive is both complicated and important. Please see
  339. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  340. # for more information.
  341. Options Indexes FollowSymLinks
  342.  
  343. #
  344. # AllowOverride controls what directives may be placed in .htaccess files.
  345. # It can be "All", "None", or any combination of the keywords:
  346. # Options FileInfo AuthConfig Limit
  347. #
  348. AllowOverride None
  349.  
  350. #
  351. # Controls who can get stuff from this server.
  352. #
  353. Order allow,deny
  354. Allow from all
  355.  
  356. </Directory>
  357.  
  358. #
  359. # UserDir: The name of the directory that is appended onto a user's home
  360. # directory if a ~user request is received.
  361. #
  362. # The path to the end user account 'public_html' directory must be
  363. # accessible to the webserver userid. This usually means that ~userid
  364. # must have permissions of 711, ~userid/public_html must have permissions
  365. # of 755, and documents contained therein must be world-readable.
  366. # Otherwise, the client will only receive a "403 Forbidden" message.
  367. #
  368. # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
  369. #
  370. <IfModule mod_userdir.c>
  371. #
  372. # UserDir is disabled by default since it can confirm the presence
  373. # of a username on the system (depending on home directory
  374. # permissions).
  375. #
  376. UserDir disabled
  377.  
  378. #
  379. # To enable requests to /~user/ to serve the user's public_html
  380. # directory, remove the "UserDir disabled" line above, and uncomment
  381. # the following line instead:
  382. #
  383. #UserDir public_html
  384.  
  385. </IfModule>
  386.  
  387. #
  388. # Control access to UserDir directories. The following is an example
  389. # for a site where these directories are restricted to read-only.
  390. #
  391. #<Directory /home/*/public_html>
  392. # AllowOverride FileInfo AuthConfig Limit
  393. # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  394. # <Limit GET POST OPTIONS>
  395. # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  396. # <Limit GET POST OPTIONS>
  397. # Order allow,deny
  398. # Allow from all
  399. # </Limit>
  400. # <LimitExcept GET POST OPTIONS>
  401. # Order deny,allow
  402. # Deny from all
  403. # </LimitExcept>
  404. #</Directory>
  405.  
  406. #
  407. # DirectoryIndex: sets the file that Apache will serve if a directory
  408. # is requested.
  409. #
  410. # The index.html.var file (a type-map) is used to deliver content-
  411. # negotiated documents. The MultiViews Option can be used for the
  412. # same purpose, but it is much slower.
  413. #
  414. DirectoryIndex index.html index.html.var
  415.  
  416. #
  417. # AccessFileName: The name of the file to look for in each directory
  418. # for additional configuration directives. See also the AllowOverride
  419. # directive.
  420. #
  421. AccessFileName .htaccess
  422.  
  423. #
  424. # The following lines prevent .htaccess and .htpasswd files from being
  425. # viewed by Web clients.
  426. #
  427. <Files ~ "^\.ht">
  428. Order allow,deny
  429. Deny from all
  430. Satisfy All
  431. </Files>
  432.  
  433. #
  434. # TypesConfig describes where the mime.types file (or equivalent) is
  435. # to be found.
  436. #
  437. TypesConfig /etc/mime.types
  438.  
  439. #
  440. # DefaultType is the default MIME type the server will use for a document
  441. # if it cannot otherwise determine one, such as from filename extensions.
  442. # If your server contains mostly text or HTML documents, "text/plain" is
  443. # a good value. If most of your content is binary, such as applications
  444. # or images, you may want to use "application/octet-stream" instead to
  445. # keep browsers from trying to display binary files as though they are
  446. # text.
  447. #
  448. DefaultType text/plain
  449.  
  450. #
  451. # The mod_mime_magic module allows the server to use various hints from the
  452. # The mod_mime_magic module allows the server to use various hints from the
  453. # contents of the file itself to determine its type. The MIMEMagicFile
  454. # directive tells the module where the hint definitions are located.
  455. #
  456. <IfModule mod_mime_magic.c>
  457. # MIMEMagicFile /usr/share/magic.mime
  458. MIMEMagicFile conf/magic
  459. </IfModule>
  460.  
  461. #
  462. # HostnameLookups: Log the names of clients or just their IP addresses
  463. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  464. # The default is off because it'd be overall better for the net if people
  465. # had to knowingly turn this feature on, since enabling it means that
  466. # each client request will result in AT LEAST one lookup request to the
  467. # nameserver.
  468. #
  469. HostnameLookups Off
  470.  
  471. #
  472. # EnableMMAP: Control whether memory-mapping is used to deliver
  473. # files (assuming that the underlying OS supports it).
  474. # The default is on; turn this off if you serve from NFS-mounted
  475. # filesystems. On some systems, turning it off (regardless of
  476. # filesystem) can improve performance; for details, please see
  477. # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
  478. #
  479. #EnableMMAP off
  480.  
  481. #
  482. # EnableSendfile: Control whether the sendfile kernel support is
  483. # used to deliver files (assuming that the OS supports it).
  484. # The default is on; turn this off if you serve from NFS-mounted
  485. # filesystems. Please see
  486. # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
  487. #
  488. #EnableSendfile off
  489.  
  490. #
  491. # ErrorLog: The location of the error log file.
  492. # If you do not specify an ErrorLog directive within a <VirtualHost>
  493. # container, error messages relating to that virtual host will be
  494. # logged here. If you *do* define an error logfile for a <VirtualHost>
  495. # container, that host's errors will be logged there and not here.
  496. #
  497. ErrorLog logs/error_log
  498.  
  499. #
  500. # LogLevel: Control the number of messages logged to the error_log.
  501. # Possible values include: debug, info, notice, warn, error, crit,
  502. # alert, emerg.
  503. #
  504. LogLevel warn
  505.  
  506. # The following directives define some format nicknames for use with
  507. # a CustomLog directive (see below).
  508. #
  509. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  510. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  511. LogFormat "%{Referer}i -> %U" referer
  512. LogFormat "%{User-agent}i" agent
  513.  
  514. # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
  515. # requires the mod_logio module to be loaded.
  516. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  517.  
  518. #
  519. # The location and format of the access logfile (Common Logfile Format).
  520. # If you do not define any access logfiles within a <VirtualHost>
  521. # container, they will be logged here. Contrariwise, if you *do*
  522. # define per-<VirtualHost> access logfiles, transactions will be
  523. # logged therein and *not* in this file.
  524. #
  525. #CustomLog logs/access_log common
  526.  
  527. #
  528. # If you would like to have separate agent and referer logfiles, uncomment
  529. # the following directives.
  530. #
  531. #CustomLog logs/referer_log referer
  532. #CustomLog logs/agent_log agent
  533.  
  534. #
  535. # For a single logfile with access, agent, and referer information
  536. # (Combined Logfile Format), use the following directive:
  537. #
  538. CustomLog logs/access_log combined
  539.  
  540. #
  541. # Optionally add a line containing the server version and virtual host
  542. # name to server-generated pages (internal error documents, FTP directory
  543. # listings, mod_status and mod_info output etc., but not CGI generated
  544. # documents or custom error documents).
  545. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  546. # Set to one of: On | Off | EMail
  547. #
  548. ServerSignature On
  549.  
  550. #
  551. # Aliases: Add here as many aliases as you need (with no limit). The format is
  552. # Alias fakename realname
  553. #
  554. # Note that if you include a trailing / on fakename then the server will
  555. # require it to be present in the URL. So "/icons" isn't aliased in this
  556. # example, only "/icons/". If the fakename is slash-terminated, then the
  557. # realname must also be slash terminated, and if the fakename omits the
  558. # trailing slash, the realname must also omit it.
  559. #
  560. # We include the /icons/ alias for FancyIndexed directory listings. If you
  561. # do not use FancyIndexing, you may comment this out.
  562. Alias /icons/ "/var/www/icons/"
  563.  
  564. <Directory "/var/www/icons">
  565. Options Indexes MultiViews FollowSymLinks
  566. AllowOverride None
  567. Order allow,deny
  568. Allow from all
  569. </Directory>
  570.  
  571. #
  572. # WebDAV module configuration section.
  573. #
  574. <IfModule mod_dav_fs.c>
  575. # Location of the WebDAV lock database.
  576. DAVLockDB /var/lib/dav/lockdb
  577. </IfModule>
  578.  
  579. #
  580. # ScriptAlias: This controls which directories contain server scripts.
  581. # ScriptAliases are essentially the same as Aliases, except that
  582. # documents in the realname directory are treated as applications and
  583. # run by the server when requested rather than as documents sent to the client.
  584. # The same rules about trailing "/" apply to ScriptAlias directives as to
  585. # Alias.
  586. #
  587. ScriptAlias /cgi-bin/ "/home/www/*/cgi-bin/"
  588.  
  589. #
  590. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  591. # CGI directory exists, if you have that configured.
  592. #
  593. <Directory "/home/www/*/cgi-bin">
  594. AllowOverride None
  595. Options None
  596. Order allow,deny
  597. Allow from all
  598. </Directory>
  599.  
  600. #
  601. # Redirect allows you to tell clients about documents which used to exist in
  602. # your server's namespace, but do not anymore. This allows you to tell the
  603. # clients where to look for the relocated document.
  604. # Example:
  605. # Redirect permanent /foo http://www.example.com/bar
  606.  
  607. #
  608. # Directives controlling the display of server-generated directory listings.
  609. #
  610.  
  611. #
  612. # IndexOptions: Controls the appearance of server-generated directory
  613. # listings.
  614. #
  615. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  616. # AddIcon* directives tell the server which icon to show for different
  617. # files or filename extensions. These are only displayed for
  618. # FancyIndexed directories.
  619. #
  620. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  621.  
  622. AddIconByType (TXT,/icons/text.gif) text/*
  623. AddIconByType (IMG,/icons/image2.gif) image/*
  624. AddIconByType (SND,/icons/sound2.gif) audio/*
  625. AddIconByType (VID,/icons/movie.gif) video/*
  626.  
  627. AddIcon /icons/binary.gif .bin .exe
  628. AddIcon /icons/binhex.gif .hqx
  629. AddIcon /icons/tar.gif .tar
  630. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  631. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  632. AddIcon /icons/a.gif .ps .ai .eps
  633. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  634. AddIcon /icons/text.gif .txt
  635. AddIcon /icons/c.gif .c
  636. AddIcon /icons/p.gif .pl .py
  637. AddIcon /icons/f.gif .for
  638. AddIcon /icons/dvi.gif .dvi
  639. AddIcon /icons/uuencoded.gif .uu
  640. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  641. AddIcon /icons/tex.gif .tex
  642. AddIcon /icons/bomb.gif core
  643.  
  644. AddIcon /icons/back.gif ..
  645. AddIcon /icons/hand.right.gif README
  646. AddIcon /icons/folder.gif ^^DIRECTORY^^
  647. AddIcon /icons/blank.gif ^^BLANKICON^^
  648.  
  649. #
  650. # DefaultIcon is which icon to show for files which do not have an icon
  651. # explicitly set.
  652. #
  653. DefaultIcon /icons/unknown.gif
  654.  
  655. #
  656. # AddDescription allows you to place a short description after a file in
  657. # server-generated indexes. These are only displayed for FancyIndexed
  658. # directories.
  659. # Format: AddDescription "description" filename
  660. #
  661. #AddDescription "GZIP compressed document" .gz
  662. #AddDescription "tar archive" .tar
  663. #AddDescription "GZIP compressed tar archive" .tgz
  664.  
  665. #
  666. # ReadmeName is the name of the README file the server will look for by
  667. # default, and append to directory listings.
  668. # HeaderName is the name of a file which should be prepended to
  669. # directory indexes.
  670. ReadmeName README.html
  671. HeaderName HEADER.html
  672.  
  673. #
  674. # IndexIgnore is a set of filenames which directory indexing should ignore
  675. # and not include in the listing. Shell-style wildcarding is permitted.
  676. #
  677. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  678.  
  679. #
  680. # DefaultLanguage and AddLanguage allows you to specify the language of
  681. # a document. You can then use content negotiation to give a browser a
  682. # file in a language the user can understand.
  683. #
  684. # Specify a default language. This means that all data
  685. # going out without a specific language tag (see below) will
  686. # be marked with this one. You probably do NOT want to set
  687. # this unless you are sure it is correct for all cases.
  688. #
  689. # * It is generally better to not mark a page as
  690. # * being a certain language than marking it with the wrong
  691. # * language!
  692. #
  693. # DefaultLanguage nl
  694. #
  695. # Note 1: The suffix does not have to be the same as the language
  696. # keyword --- those with documents in Polish (whose net-standard
  697. # language code is pl) may wish to use "AddLanguage pl .po" to
  698. # avoid the ambiguity with the common suffix for perl scripts.
  699. #
  700. # Note 2: The example entries below illustrate that in some cases
  701. # the two character 'Language' abbreviation is not identical to
  702. # the two character 'Country' code for its country,
  703. # E.g. 'Danmark/dk' versus 'Danish/da'.
  704. #
  705. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  706. # specifier. There is 'work in progress' to fix this and get
  707. # the reference data for rfc1766 cleaned up.
  708. #
  709. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  710. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  711. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  712. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  713. # Norwegian (no) - Polish (pl) - Portugese (pt)
  714. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  715. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  716. #
  717. AddLanguage ca .ca
  718. AddLanguage cs .cz .cs
  719. AddLanguage da .dk
  720. AddLanguage de .de
  721. AddLanguage el .el
  722. AddLanguage en .en
  723.  
  724. # LanguagePriority allows you to give precedence to some languages
  725. # in case of a tie during content negotiation.
  726. #
  727. # Just list the languages in decreasing order of preference. We have
  728. # more or less alphabetized them here. You probably want to change this.
  729. #
  730. 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
  731.  
  732. #
  733. # ForceLanguagePriority allows you to serve a result page rather than
  734. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  735. # [in case no accepted languages matched the available variants]
  736. #
  737. ForceLanguagePriority Prefer Fallback
  738.  
  739. #
  740. # Specify a default charset for all content served; this enables
  741. # interpretation of all content as UTF-8 by default. To use the
  742. # default browser choice (ISO-8859-1), or to allow the META tags
  743. # in HTML content to override this choice, comment out this
  744. # directive:
  745. #
  746. AddDefaultCharset UTF-8
  747.  
  748. #
  749. # AddType allows you to add to or override the MIME configuration
  750. # file mime.types for specific file types.
  751. #
  752. #AddType application/x-tar .tgz
  753.  
  754. #
  755. # AddEncoding allows you to have certain browsers uncompress
  756. # information on the fly. Note: Not all browsers support this.
  757. # AddEncoding allows you to have certain browsers uncompress
  758. # information on the fly. Note: Not all browsers support this.
  759. # Despite the name similarity, the following Add* directives have nothing
  760. # to do with the FancyIndexing customization directives above.
  761. #
  762. #AddEncoding x-compress .Z
  763. #AddEncoding x-gzip .gz .tgz
  764.  
  765. # If the AddEncoding directives above are commented-out, then you
  766. # probably should define those extensions to indicate media types:
  767. #
  768. AddType application/x-compress .Z
  769. AddType application/x-gzip .gz .tgz
  770.  
  771. #
  772. # MIME-types for downloading Certificates and CRLs
  773. #
  774. AddType application/x-x509-ca-cert .crt
  775. AddType application/x-pkcs7-crl .crl
  776.  
  777. #
  778. # AddHandler allows you to map certain file extensions to "handlers":
  779. # actions unrelated to filetype. These can be either built into the server
  780. # or added with the Action directive (see below)
  781. #
  782. # To use CGI scripts outside of ScriptAliased directories:
  783. # (You will also need to add "ExecCGI" to the "Options" directive.)
  784. #
  785. #AddHandler cgi-script .cgi
  786.  
  787. #
  788. # For files that include their own HTTP headers:
  789. #
  790. #AddHandler send-as-is asis
  791.  
  792. #
  793. # For type maps (negotiated resources):
  794. # (This is enabled by default to allow the Apache "It Worked" page
  795. # to be distributed in multiple languages.)
  796. #
  797. AddHandler type-map var
  798.  
  799. #
  800. # Filters allow you to process content before it is sent to the client.
  801. #
  802. # To parse .shtml files for server-side includes (SSI):
  803. # (You will also need to add "Includes" to the "Options" directive.)
  804. #
  805. AddType text/html .shtml
  806. AddOutputFilter INCLUDES .shtml
  807.  
  808. #
  809. # Action lets you define media types that will execute a script whenever
  810. # a matching file is called. This eliminates the need for repeated URL
  811. # pathnames for oft-used CGI file processors.
  812. # Format: Action media/type /cgi-script/location
  813. # Format: Action handler-name /cgi-script/location
  814. # Format: Action media/type /cgi-script/location
  815. # Format: Action handler-name /cgi-script/location
  816. #
  817.  
  818. #
  819. # Customizable error responses come in three flavors:
  820. # 1) plain text 2) local redirects 3) external redirects
  821. #
  822. # Some examples:
  823. #ErrorDocument 500 "The server made a boo boo."
  824. #ErrorDocument 404 /missing.html
  825. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  826. #ErrorDocument 402 http://www.example.com/subscription_info.html
  827. #
  828.  
  829. #
  830. # Putting this all together, we can internationalize error responses.
  831. #
  832. # We use Alias to redirect any /error/HTTP_<error>.html.var response to
  833. # our collection of by-error message multi-language collections. We use
  834. # includes to substitute the appropriate text.
  835. #
  836. # You can modify the messages' appearance without changing any of the
  837. # default HTTP_<error>.html.var files by adding the line:
  838. #
  839. # Alias /error/include/ "/your/include/path/"
  840. #
  841. # which allows you to create your own set of files by starting with the
  842. # /var/www/error/include/ files and
  843. # copying them to /your/include/path/, even on a per-VirtualHost basis.
  844. #
  845.  
  846. Alias /error/ "/home/www/error/"
  847.  
  848. <IfModule mod_negotiation.c>
  849. <IfModule mod_include.c>
  850. <Directory "/home/www/error">
  851. AllowOverride None
  852. Options IncludesNoExec
  853. AddOutputFilter Includes html
  854. AddHandler type-map var
  855. Order allow,deny
  856. Allow from all
  857. LanguagePriority en es de fr
  858. ForceLanguagePriority Prefer Fallback
  859. </Directory>
  860.  
  861. # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
  862. # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
  863. # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
  864. # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
  865. # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
  866. # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
  867. # ErrorDocument 410 /error/HTTP_GONE.html.var
  868. # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
  869. # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  870. # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  871. # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
  872. # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
  873. # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
  874. # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
  875. # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
  876. # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
  877. # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
  878. # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
  879. # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
  880.  
  881. </IfModule>
  882. </IfModule>
  883.  
  884. #
  885. # The following directives modify normal HTTP response behavior to
  886. # handle known problems with browser implementations.
  887. #
  888. BrowserMatch "Mozilla/2" nokeepalive
  889. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  890. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  891. BrowserMatch "Java/1\.0" force-response-1.0
  892. BrowserMatch "JDK/1\.0" force-response-1.0
  893.  
  894. #
  895. # The following directive disables redirects on non-GET requests for
  896. # a directory that does not include the trailing slash. This fixes a
  897. # problem with Microsoft WebFolders which does not appropriately handle
  898. # redirects for folders with DAV methods.
  899. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
  900. #
  901. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  902. BrowserMatch "MS FrontPage" redirect-carefully
  903. BrowserMatch "^WebDrive" redirect-carefully
  904. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  905. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  906. BrowserMatch "^XML Spy" redirect-carefully
  907. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  908.  
  909. #
  910. # Allow server status reports generated by mod_status,
  911. # with the URL of http://servername/server-status
  912. # Change the ".example.com" to match your domain to enable.
  913. #
  914. #<Location /server-status>
  915. # SetHandler server-status
  916. # Order deny,allow
  917. # Deny from all
  918. # Allow from .example.com
  919. #</Location>
  920.  
  921. #
  922. # Allow remote server configuration reports, with the URL of
  923. # http://servername/server-info (requires that mod_info.c be loaded).
  924. # Change the ".example.com" to match your domain to enable.
  925. #
  926. #<Location /server-info>
  927. # SetHandler server-info
  928. #<Location /server-info>
  929. # SetHandler server-info
  930. # Order deny,allow
  931. # Deny from all
  932. # Allow from .example.com
  933. #</Location>
  934.  
  935. #
  936. # Proxy Server directives. Uncomment the following lines to
  937. # enable the proxy server:
  938. #
  939. #<IfModule mod_proxy.c>
  940. #ProxyRequests On
  941. #
  942. #<Proxy *>
  943. # Order deny,allow
  944. # Deny from all
  945. # Allow from .example.com
  946. #</Proxy>
  947.  
  948. #
  949. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  950. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  951. # Set to one of: Off | On | Full | Block
  952. #
  953. #ProxyVia On
  954.  
  955. #
  956. # To enable a cache of proxied content, uncomment the following lines.
  957. # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
  958. #
  959. #<IfModule mod_disk_cache.c>
  960. # CacheEnable disk /
  961. # CacheRoot "/var/cache/mod_proxy"
  962. #</IfModule>
  963. #
  964.  
  965. #</IfModule>
  966. # End of proxy directives.
  967.  
  968. ### Section 3: Virtual Hosts
  969. #
  970. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  971. # machine you can setup VirtualHost containers for them. Most configurations
  972. # use only name-based virtual hosts so the server doesn't need to worry about
  973. # IP addresses. This is indicated by the asterisks in the directives below.
  974. #
  975. # Please see the documentation at
  976. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  977. # for further details before you try to setup virtual hosts.
  978. #
  979. # You may use the command line option '-S' to verify your virtual host
  980. # configuration.
  981.  
  982. #
  983. # Use name-based virtual hosting.
  984. # Use name-based virtual hosting.
  985. #
  986. NameVirtualHost *:80
  987. #
  988. # NOTE: NameVirtualHost cannot be used without a port specifier
  989. # (e.g. :80) if mod_ssl is being used, due to the nature of the
  990. # SSL protocol.
  991. #
  992.  
  993. #
  994. # VirtualHost example:
  995. # Almost any Apache directive may go into a VirtualHost container.
  996. # The first VirtualHost section is used for requests without a known
  997. # server name.
  998. #
  999. <VirtualHost *:80>
  1000. ServerAdmin webmaster@futurewavewebdevelopment.com
  1001. DocumentRoot /home/www/futurewavewebdevelopment.com/public_html/
  1002. ServerName futurewavewebdevelopment.com
  1003. ErrorLog logs/futurewavewebdevelopment.com-error_log
  1004. CustomLog logs/futurewavewebdevelopment.com-access_log common
  1005. </VirtualHost>
  1006.  
  1007.  
  1008. [ Read 1012 lines ]
  1009. ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
  1010. ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement