Guest User

Untitled

a guest
Jul 18th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.52 KB | None | 0 0
  1. #
  2. # This is the main Apache HTTP server configuration file. It contains the
  3. # configuration directives that give the server its instructions.
  4. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
  5. # In particular, see
  6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
  7. # for a discussion of each configuration directive.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do. They're here only as hints or reminders. If you are unsure
  11. # consult the online docs. You have been warned.
  12. #
  13. # Configuration and logfile names: If the filenames you specify for many
  14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  15. # server will use that explicit path. If the filenames do *not* begin
  16. # with "/", the value of ServerRoot is prepended -- so "logs/foo_log"
  17. # with ServerRoot set to "/www/apache/httpd-ndd-uat" will be interpreted by the
  18. # server as "/www/apache/httpd-ndd-uat/logs/foo_log".
  19.  
  20. #
  21. # ServerRoot: The top of the directory tree under which the server's
  22. # configuration, error, and log files are kept.
  23. #
  24. # Do not add a slash at the end of the directory path. If you point
  25. # ServerRoot at a non-local disk, be sure to point the LockFile directive
  26. # at a local disk. If you wish to share the same ServerRoot for multiple
  27. # httpd daemons, you will need to change at least LockFile and PidFile.
  28. #
  29. ServerRoot "/www/apache/httpd-ndd-uat"
  30.  
  31. #
  32. # Listen: Allows you to bind Apache to specific IP addresses and/or
  33. # ports, instead of the default. See also the <VirtualHost>
  34. # directive.
  35. #
  36. # Change this to Listen on specific IP addresses as shown below to
  37. # prevent Apache from glomming onto all bound IP addresses.
  38. #
  39. #Listen 12.34.56.78:80
  40. Listen 0.0.0.0:80
  41.  
  42. #
  43. # Dynamic Shared Object (DSO) Support
  44. #
  45. # To be able to use the functionality of a module which was built as a DSO you
  46. # have to place corresponding `LoadModule' lines at this location so the
  47. # directives contained in it are actually available _before_ they are used.
  48. # Statically compiled modules (those listed by `httpd -l') do not need
  49. # to be loaded here.
  50. #
  51. # Example:
  52. # LoadModule foo_module modules/mod_foo.so
  53. #
  54. LoadModule authn_file_module modules/mod_authn_file.so
  55. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  56. LoadModule authn_anon_module modules/mod_authn_anon.so
  57. LoadModule authn_dbd_module modules/mod_authn_dbd.so
  58. LoadModule authn_default_module modules/mod_authn_default.so
  59. LoadModule authz_host_module modules/mod_authz_host.so
  60. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  61. LoadModule authz_user_module modules/mod_authz_user.so
  62. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  63. LoadModule authz_owner_module modules/mod_authz_owner.so
  64. LoadModule authz_default_module modules/mod_authz_default.so
  65. LoadModule auth_basic_module modules/mod_auth_basic.so
  66. LoadModule auth_digest_module modules/mod_auth_digest.so
  67. LoadModule dbd_module modules/mod_dbd.so
  68. LoadModule dumpio_module modules/mod_dumpio.so
  69. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  70. LoadModule ext_filter_module modules/mod_ext_filter.so
  71. LoadModule include_module modules/mod_include.so
  72. LoadModule filter_module modules/mod_filter.so
  73. LoadModule substitute_module modules/mod_substitute.so
  74. LoadModule deflate_module modules/mod_deflate.so
  75. LoadModule log_config_module modules/mod_log_config.so
  76. LoadModule logio_module modules/mod_logio.so
  77. LoadModule env_module modules/mod_env.so
  78. LoadModule expires_module modules/mod_expires.so
  79. LoadModule headers_module modules/mod_headers.so
  80. LoadModule ident_module modules/mod_ident.so
  81. LoadModule setenvif_module modules/mod_setenvif.so
  82. LoadModule version_module modules/mod_version.so
  83. LoadModule proxy_module modules/mod_proxy.so
  84. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  85. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  86. LoadModule proxy_http_module modules/mod_proxy_http.so
  87. LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
  88. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  89. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  90. LoadModule ssl_module modules/mod_ssl.so
  91. LoadModule mime_module modules/mod_mime.so
  92. LoadModule dav_module modules/mod_dav.so
  93. LoadModule status_module modules/mod_status.so
  94. LoadModule autoindex_module modules/mod_autoindex.so
  95. LoadModule asis_module modules/mod_asis.so
  96. LoadModule info_module modules/mod_info.so
  97. LoadModule cgid_module modules/mod_cgid.so
  98. LoadModule dav_fs_module modules/mod_dav_fs.so
  99. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  100. LoadModule negotiation_module modules/mod_negotiation.so
  101. LoadModule dir_module modules/mod_dir.so
  102. LoadModule imagemap_module modules/mod_imagemap.so
  103. LoadModule actions_module modules/mod_actions.so
  104. LoadModule speling_module modules/mod_speling.so
  105. LoadModule userdir_module modules/mod_userdir.so
  106. LoadModule alias_module modules/mod_alias.so
  107. LoadModule rewrite_module modules/mod_rewrite.so
  108.  
  109. <IfModule !mpm_netware_module>
  110. <IfModule !mpm_winnt_module>
  111. #
  112. # If you wish httpd to run as a different user or group, you must run
  113. # httpd as root initially and it will switch.
  114. #
  115. # User/Group: The name (or #number) of the user/group to run httpd as.
  116. # It is usually good practice to create a dedicated user and group for
  117. # running httpd, as with most system services.
  118. #
  119. User sousr
  120. Group sogroup
  121.  
  122. </IfModule>
  123. </IfModule>
  124.  
  125. # 'Main' server configuration
  126. #
  127. # The directives in this section set up the values used by the 'main'
  128. # server, which responds to any requests that aren't handled by a
  129. # <VirtualHost> definition. These values also provide defaults for
  130. # any <VirtualHost> containers you may define later in the file.
  131. #
  132. # All of these directives may appear inside <VirtualHost> containers,
  133. # in which case these default settings will be overridden for the
  134. # virtual host being defined.
  135. #
  136.  
  137. #
  138. # ServerAdmin: Your address, where problems with the server should be
  139. # e-mailed. This address appears on some server-generated pages, such
  140. # as error documents. e.g. [email protected]
  141. #
  142. ServerAdmin [email protected]
  143.  
  144. #
  145. # ServerName gives the name and port that the server uses to identify itself.
  146. # This can often be determined automatically, but we recommend you specify
  147. # it explicitly to prevent problems during startup.
  148. #
  149. # If your host doesn't have a registered DNS name, enter its IP address here.
  150. #
  151. ServerName ndd-uat.ndipiazzainv.com:80
  152.  
  153. #
  154. # DocumentRoot: The directory out of which you will serve your
  155. # documents. By default, all requests are taken from this directory, but
  156. # symbolic links and aliases may be used to point to other locations.
  157. #
  158. DocumentRoot "/www/content/ndd-uat/docs"
  159.  
  160. #
  161. # Each directory to which Apache has access can be configured with respect
  162. # to which services and features are allowed and/or disabled in that
  163. # directory (and its subdirectories).
  164. #
  165. # First, we configure the "default" to be a very restrictive set of
  166. # features.
  167. #
  168. <Directory />
  169. Options FollowSymLinks
  170. AllowOverride None
  171. Order deny,allow
  172. Deny from all
  173. </Directory>
  174.  
  175. #
  176. # Note that from this point forward you must specifically allow
  177. # particular features to be enabled - so if something's not working as
  178. # you might expect, make sure that you have specifically enabled it
  179. # below.
  180. #
  181.  
  182. #
  183. # This should be changed to whatever you set DocumentRoot to.
  184. #
  185. <Directory "/www/content/ndd-uat/docs">
  186. #
  187. # Possible values for the Options directive are "None", "All",
  188. # or any combination of:
  189. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  190. #
  191. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  192. # doesn't give it to you.
  193. #
  194. # The Options directive is both complicated and important. Please see
  195. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  196. # for more information.
  197. #
  198. Options FollowSymLinks
  199.  
  200. #
  201. # AllowOverride controls what directives may be placed in .htaccess files.
  202. # It can be "All", "None", or any combination of the keywords:
  203. # Options FileInfo AuthConfig Limit
  204. #
  205. AllowOverride None
  206.  
  207. #
  208. # Controls who can get stuff from this server.
  209. #
  210. Order allow,deny
  211. Allow from all
  212.  
  213. </Directory>
  214.  
  215. #
  216. # DirectoryIndex: sets the file that Apache will serve if a directory
  217. # is requested.
  218. #
  219. <IfModule dir_module>
  220. DirectoryIndex index.html
  221. </IfModule>
  222.  
  223. #
  224. # The following lines prevent .htaccess and .htpasswd files from being
  225. # viewed by Web clients.
  226. #
  227. <FilesMatch "^\.ht">
  228. Order allow,deny
  229. Deny from all
  230. Satisfy All
  231. </FilesMatch>
  232.  
  233. #
  234. # ErrorLog: The location of the error log file.
  235. # If you do not specify an ErrorLog directive within a <VirtualHost>
  236. # container, error messages relating to that virtual host will be
  237. # logged here. If you *do* define an error logfile for a <VirtualHost>
  238. # container, that host's errors will be logged there and not here.
  239. #
  240. ErrorLog "logs/error_log"
  241.  
  242. #
  243. # LogLevel: Control the number of messages logged to the error_log.
  244. # Possible values include: debug, info, notice, warn, error, crit,
  245. # alert, emerg.
  246. #
  247. LogLevel warn
  248.  
  249. <IfModule log_config_module>
  250. #
  251. # The following directives define some format nicknames for use with
  252. # a CustomLog directive (see below).
  253. #
  254. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  255. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  256.  
  257. <IfModule logio_module>
  258. # You need to enable mod_logio.c to use %I and %O
  259. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  260. </IfModule>
  261.  
  262. #
  263. # The location and format of the access logfile (Common Logfile Format).
  264. # If you do not define any access logfiles within a <VirtualHost>
  265. # container, they will be logged here. Contrariwise, if you *do*
  266. # define per-<VirtualHost> access logfiles, transactions will be
  267. # logged therein and *not* in this file.
  268. #
  269. CustomLog "logs/access_log" common
  270.  
  271. #
  272. # If you prefer a logfile with access, agent, and referer information
  273. # (Combined Logfile Format) you can use the following directive.
  274. #
  275. #CustomLog "logs/access_log" combined
  276. </IfModule>
  277.  
  278. <IfModule alias_module>
  279. #
  280. # Redirect: Allows you to tell clients about documents that used to
  281. # exist in your server's namespace, but do not anymore. The client
  282. # will make a new request for the document at its new location.
  283. # Example:
  284. # Redirect permanent /foo http://www.example.com/bar
  285.  
  286. #
  287. # Alias: Maps web paths into filesystem paths and is used to
  288. # access content that does not live under the DocumentRoot.
  289. # Example:
  290. # Alias /webpath /full/filesystem/path
  291. #
  292. # If you include a trailing / on /webpath then the server will
  293. # require it to be present in the URL. You will also likely
  294. # need to provide a <Directory> section to allow access to
  295. # the filesystem path.
  296.  
  297. #
  298. # ScriptAlias: This controls which directories contain server scripts.
  299. # ScriptAliases are essentially the same as Aliases, except that
  300. # documents in the target directory are treated as applications and
  301. # run by the server when requested rather than as documents sent to the
  302. # client. The same rules about trailing "/" apply to ScriptAlias
  303. # directives as to Alias.
  304. #
  305. ScriptAlias /cgi-bin/ "/www/content/ndd-uat/cgi-bin/"
  306.  
  307. </IfModule>
  308.  
  309. <IfModule cgid_module>
  310. #
  311. # ScriptSock: On threaded servers, designate the path to the UNIX
  312. # socket used to communicate with the CGI daemon of mod_cgid.
  313. #
  314. #Scriptsock logs/cgisock
  315. </IfModule>
  316.  
  317. #
  318. # "/www/content/ndd-uat/cgi-bin" should be changed to whatever your ScriptAliased
  319. # CGI directory exists, if you have that configured.
  320. #
  321. <Directory "/www/content/ndd-uat/cgi-bin">
  322. AllowOverride None
  323. Options None
  324. Order allow,deny
  325. Allow from all
  326. </Directory>
  327.  
  328. #
  329. # DefaultType: the default MIME type the server will use for a document
  330. # if it cannot otherwise determine one, such as from filename extensions.
  331. # If your server contains mostly text or HTML documents, "text/plain" is
  332. # a good value. If most of your content is binary, such as applications
  333. # or images, you may want to use "application/octet-stream" instead to
  334. # keep browsers from trying to display binary files as though they are
  335. # text.
  336. #
  337. DefaultType text/plain
  338.  
  339. <IfModule mime_module>
  340. #
  341. # TypesConfig points to the file containing the list of mappings from
  342. # filename extension to MIME-type.
  343. #
  344. TypesConfig conf/mime.types
  345.  
  346. #
  347. # AddType allows you to add to or override the MIME configuration
  348. # file specified in TypesConfig for specific file types.
  349. #
  350. #AddType application/x-gzip .tgz
  351. #
  352. # AddEncoding allows you to have certain browsers uncompress
  353. # information on the fly. Note: Not all browsers support this.
  354. #
  355. #AddEncoding x-compress .Z
  356. #AddEncoding x-gzip .gz .tgz
  357. #
  358. # If the AddEncoding directives above are commented-out, then you
  359. # probably should define those extensions to indicate media types:
  360. #
  361. AddType application/x-compress .Z
  362. AddType application/x-gzip .gz .tgz
  363.  
  364. #
  365. # AddHandler allows you to map certain file extensions to "handlers":
  366. # actions unrelated to filetype. These can be either built into the server
  367. # or added with the Action directive (see below)
  368. #
  369. # To use CGI scripts outside of ScriptAliased directories:
  370. # (You will also need to add "ExecCGI" to the "Options" directive.)
  371. #
  372. #AddHandler cgi-script .cgi
  373.  
  374. # For type maps (negotiated resources):
  375. #AddHandler type-map var
  376.  
  377. #
  378. # Filters allow you to process content before it is sent to the client.
  379. #
  380. # To parse .shtml files for server-side includes (SSI):
  381. # (You will also need to add "Includes" to the "Options" directive.)
  382. #
  383. #AddType text/html .shtml
  384. #AddOutputFilter INCLUDES .shtml
  385. </IfModule>
  386.  
  387. #
  388. # The mod_mime_magic module allows the server to use various hints from the
  389. # contents of the file itself to determine its type. The MIMEMagicFile
  390. # directive tells the module where the hint definitions are located.
  391. #
  392. #MIMEMagicFile conf/magic
  393.  
  394. #
  395. # Customizable error responses come in three flavors:
  396. # 1) plain text 2) local redirects 3) external redirects
  397. #
  398. # Some examples:
  399. #ErrorDocument 500 "The server made a boo boo."
  400. #ErrorDocument 404 /missing.html
  401. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  402. #ErrorDocument 402 http://www.example.com/subscription_info.html
  403. #
  404.  
  405. #
  406. # MaxRanges: Maximum number of Ranges in a request before
  407. # returning the entire resource, or 0 for unlimited
  408. # Default setting is to accept 200 Ranges
  409. #MaxRanges 0
  410.  
  411. #
  412. # EnableMMAP and EnableSendfile: On systems that support it,
  413. # memory-mapping or the sendfile syscall is used to deliver
  414. # files. This usually improves server performance, but must
  415. # be turned off when serving from networked-mounted
  416. # filesystems or if support for these functions is otherwise
  417. # broken on your system.
  418. #
  419. #EnableMMAP off
  420. #EnableSendfile off
  421.  
  422. # Supplemental configuration
  423. #
  424. # The configuration files in the conf/extra/ directory can be
  425. # included to add extra features or to modify the default configuration of
  426. # the server, or you may simply copy their contents here and change as
  427. # necessary.
  428.  
  429. # Server-pool management (MPM specific)
  430. #Include conf/extra/httpd-mpm.conf
  431.  
  432. # Multi-language error messages
  433. #Include conf/extra/httpd-multilang-errordoc.conf
  434.  
  435. # Fancy directory listings
  436. #Include conf/extra/httpd-autoindex.conf
  437.  
  438. # Language settings
  439. #Include conf/extra/httpd-languages.conf
  440.  
  441. # User home directories
  442. #Include conf/extra/httpd-userdir.conf
  443.  
  444. # Real-time info on requests and configuration
  445. #Include conf/extra/httpd-info.conf
  446.  
  447. # Virtual hosts
  448. #Include conf/extra/httpd-vhosts.conf
  449.  
  450. # Local access to the Apache HTTP Server Manual
  451. #Include conf/extra/httpd-manual.conf
  452.  
  453. # Distributed authoring and versioning (WebDAV)
  454. #Include conf/extra/httpd-dav.conf
  455.  
  456. # Various default settings
  457. #Include conf/extra/httpd-default.conf
  458.  
  459. # Secure (SSL/TLS) connections
  460. Include conf/extra/httpd-ssl.conf
  461. #
  462. # Note: The following must must be present to support
  463. # starting without SSL on platforms with no /dev/random equivalent
  464. # but a statically compiled-in mod_ssl.
  465. #
  466. <IfModule ssl_module>
  467. SSLRandomSeed startup builtin
  468. SSLRandomSeed connect builtin
  469. </IfModule>
  470.  
  471.  
  472. RewriteEngine on
  473. RewriteCond %{SERVER_PORT} !^443$
  474. RewriteRule ^/(.*) https://uat.ndipiazza.com/$1 [L,R]
  475.  
  476. TraceEnable off
  477. ServerTokens Prod
Advertisement
Add Comment
Please, Sign In to add comment