Advertisement
Guest User

Wordpress multisite on EC2 httpd.conf

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