From powerhouse, 1 Week ago, written in Plain Text.
  1. [orca@orcacomputers conf.d]$ httpd -S
  2. VirtualHost configuration:
  3. *:443                  is a NameVirtualHost
  4.          default server hopetonmedia.com (/etc/httpd/conf.d/hopetonmedia.com-le-ssl.conf:2)
  5.          port 443 namevhost hopetonmedia.com (/etc/httpd/conf.d/hopetonmedia.com-le-ssl.conf:2)
  6.                  alias www.hopetonmedia.com
  7.          port 443 namevhost orcacomputers.orcainbox (/etc/httpd/conf.d/ssl.conf:56)
  8.          port 443 namevhost thepowerhousemethod.org (/etc/httpd/conf.d/thepowerhousemethod.org-le-ssl.conf:2)
  9.                  alias www.thepowerhousemethod.org
  10. *:80                   is a NameVirtualHost
  11.          default server orcacomputers.orcainbox (/etc/httpd/conf.d/00-default.conf:1)
  12.          port 80 namevhost orcacomputers.orcainbox (/etc/httpd/conf.d/00-default.conf:1)
  13.          port 80 namevhost hopetonmedia.com (/etc/httpd/conf.d/hopetonmedia.com.conf:1)
  14.                  alias www.hopetonmedia.com
  15.          port 80 namevhost internetpowerhouse.org (/etc/httpd/conf.d/internetpowerhouse.org.conf:1)
  16.                  alias www.internetpowerhouse.org
  17.          port 80 namevhost themartialartsofmoney.com (/etc/httpd/conf.d/themartialartsofmoney.com.conf:1)
  18.                  alias www.themartialartsofmoney.com
  19.          port 80 namevhost thepowerhousemethod.org (/etc/httpd/conf.d/thepowerhousemethod.org.conf:1)
  20.                  alias www.thepowerhousemethod.org
  21. ServerRoot: "/etc/httpd"
  22. Main DocumentRoot: "/var/www/"
  23. Main ErrorLog: "/etc/httpd/logs/error_log"
  24. Mutex authdigest-opaque: using_defaults
  25. Mutex proxy-balancer-shm: using_defaults
  26. Mutex rewrite-map: using_defaults
  27. Mutex authdigest-client: using_defaults
  28. Mutex ssl-stapling: using_defaults
  29. Mutex proxy: using_defaults
  30. Mutex authn-socache: using_defaults
  31. Mutex ssl-cache: using_defaults
  32. Mutex default: dir="/run/httpd/" mechanism=default
  33. Mutex mpm-accept: using_defaults
  34. PidFile: "/run/httpd/httpd.pid"
  35. Define: _RH_HAS_HTTPPROTOCOLOPTIONS
  36. Define: DUMP_VHOSTS
  37. Define: DUMP_RUN_CFG
  38. User: name="apache" id=48 not_used
  39. Group: name="apache" id=48 not_used
  40.  
  41. [orca@orcacomputers conf.d]$ cat hopetonmedia.com.conf
  42. <VirtualHost *:80>
  43.        
  44.         ServerName hopetonmedia.com
  45.         ServerAlias www.hopetonmedia.com
  46.         ServerAdmin webmaster@localhost
  47.         DocumentRoot /var/www/hopetonmedia.com/public_html
  48.         ErrorLog /var/log/httpd/hopetonmedia.com-error.log
  49.         CustomLog /var/log/httpd/hopetonmedia.com-access.log combined
  50.  
  51.  
  52.         <Directory "/var/www/hopetonmedia.com/public_html">
  53.           AllowOverride All
  54.         </Directory>
  55.                
  56.  
  57.  
  58.  
  59.  
  60. RewriteEngine on
  61. RewriteCond %{SERVER_NAME} =hopetonmedia.com [OR]
  62. RewriteCond %{SERVER_NAME} =www.hopetonmedia.com
  63. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  64. </VirtualHost>
  65.  
  66. [orca@orcacomputers conf.d]$ cat themartialartsofmoney.com.conf
  67. <VirtualHost *:80>
  68.        
  69.         ServerName themartialartsofmoney.com
  70.         ServerAlias www.themartialartsofmoney.com
  71.         ServerAdmin webmaster@localhost
  72.         DocumentRoot /var/www/themartialartsofmoney.com/public_html
  73.         ErrorLog /var/log/httpd/themartialartsofmoney.com-error.log
  74.         CustomLog /var/log/httpd/themartialartsofmoney.com-access.log combined
  75.  
  76.  
  77.         <Directory "/var/www/themartialartsofmoney.com/public_html">
  78.           AllowOverride All
  79.         </Directory>
  80.                
  81. </VirtualHost>
  82.  
  83. [orca@orcacomputers conf]$ cat httpd.conf
  84. #
  85. # This is the main Apache HTTP server configuration file.  It contains the
  86. # configuration directives that give the server its instructions.
  87. # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
  88. # In particular, see
  89. # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
  90. # for a discussion of each configuration directive.
  91. #
  92. # Do NOT simply read the instructions in here without understanding
  93. # what they do.  They're here only as hints or reminders.  If you are unsure
  94. # consult the online docs. You have been warned.  
  95. #
  96. # Configuration and logfile names: If the filenames you specify for many
  97. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  98. # server will use that explicit path.  If the filenames do *not* begin
  99. # with "/", the value of ServerRoot is prepended -- so 'log/access_log'
  100. # with ServerRoot set to '/www' will be interpreted by the
  101. # server as '/www/log/access_log', where as '/log/access_log' will be
  102. # interpreted as '/log/access_log'.
  103.  
  104. #
  105. # ServerRoot: The top of the directory tree under which the server's
  106. # configuration, error, and log files are kept.
  107. #
  108. # Do not add a slash at the end of the directory path.  If you point
  109. # ServerRoot at a non-local disk, be sure to specify a local disk on the
  110. # Mutex directive, if file-based mutexes are used.  If you wish to share the
  111. # same ServerRoot for multiple httpd daemons, you will need to change at
  112. # least PidFile.
  113. #
  114. ServerRoot "/etc/httpd"
  115.  
  116. #
  117. # Listen: Allows you to bind Apache to specific IP addresses and/or
  118. # ports, instead of the default. See also the <VirtualHost>
  119. # directive.
  120. #
  121. # Change this to Listen on specific IP addresses as shown below to
  122. # prevent Apache from glomming onto all bound IP addresses.
  123. #
  124. #Listen 12.34.56.78:80
  125. Listen 80
  126.  
  127. #
  128. # Dynamic Shared Object (DSO) Support
  129. #
  130. # To be able to use the functionality of a module which was built as a DSO you
  131. # have to place corresponding `LoadModule' lines at this location so the
  132. # directives contained in it are actually available _before_ they are used.
  133. # Statically compiled modules (those listed by `httpd -l') do not need
  134. # to be loaded here.
  135. #
  136. # Example:
  137. # LoadModule foo_module modules/mod_foo.so
  138. #
  139. Include conf.modules.d/*.conf
  140.  
  141. #
  142. # If you wish httpd to run as a different user or group, you must run
  143. # httpd as root initially and it will switch.  
  144. #
  145. # User/Group: The name (or #number) of the user/group to run httpd as.
  146. # It is usually good practice to create a dedicated user and group for
  147. # running httpd, as with most system services.
  148. #
  149. User apache
  150. Group apache
  151.  
  152. # 'Main' server configuration
  153. #
  154. # The directives in this section set up the values used by the 'main'
  155. # server, which responds to any requests that aren't handled by a
  156. # <VirtualHost> definition.  These values also provide defaults for
  157. # any <VirtualHost> containers you may define later in the file.
  158. #
  159. # All of these directives may appear inside <VirtualHost> containers,
  160. # in which case these default settings will be overridden for the
  161. # virtual host being defined.
  162. #
  163.  
  164. #
  165. # ServerAdmin: Your address, where problems with the server should be
  166. # e-mailed.  This address appears on some server-generated pages, such
  167. # as error documents.  e.g. admin@your-domain.com
  168. #
  169. ServerAdmin root@localhost
  170.  
  171. #
  172. # ServerName gives the name and port that the server uses to identify itself.
  173. # This can often be determined automatically, but we recommend you specify
  174. # it explicitly to prevent problems during startup.
  175. #
  176. # If your host doesn't have a registered DNS name, enter its IP address here.
  177. #
  178. #ServerName www.example.com:80
  179.  
  180. #
  181. # Deny access to the entirety of your server's filesystem. You must
  182. # explicitly permit access to web content directories in other
  183. # <Directory> blocks below.
  184. #
  185. <Directory />
  186.     AllowOverride none
  187.     Require all denied
  188. </Directory>
  189.  
  190. #
  191. # Note that from this point forward you must specifically allow
  192. # particular features to be enabled - so if something's not working as
  193. # you might expect, make sure that you have specifically enabled it
  194. # below.
  195. #
  196.  
  197. #
  198. # DocumentRoot: The directory out of which you will serve your
  199. # documents. By default, all requests are taken from this directory, but
  200. # symbolic links and aliases may be used to point to other locations.
  201. #
  202. DocumentRoot "/var/www/"
  203.  
  204. #
  205. # Relax access to content within /var/www.
  206. #
  207. <Directory "/var/www">
  208.     AllowOverride None
  209.     # Allow open access:
  210.     Require all granted
  211. </Directory>
  212.  
  213. # Further relax access to the default document root:
  214. <Directory "/var/www/html">
  215.     #
  216.     # Possible values for the Options directive are "None", "All",
  217.     # or any combination of:
  218.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  219.     #
  220.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
  221.     # doesn't give it to you.
  222.     #
  223.     # The Options directive is both complicated and important.  Please see
  224.     # http://httpd.apache.org/docs/2.4/mod/core.html#options
  225.     # for more information.
  226.     #
  227.     Options Indexes FollowSymLinks
  228.  
  229.     #
  230.     # AllowOverride controls what directives may be placed in .htaccess files.
  231.     # It can be "All", "None", or any combination of the keywords:
  232.     #   Options FileInfo AuthConfig Limit
  233.     #
  234.     AllowOverride None
  235.  
  236.     #
  237.     # Controls who can get stuff from this server.
  238.     #
  239.     Require all granted
  240. </Directory>
  241.  
  242. #
  243. # DirectoryIndex: sets the file that Apache will serve if a directory
  244. # is requested.
  245. #
  246. <IfModule dir_module>
  247.     DirectoryIndex index.html
  248. </IfModule>
  249.  
  250. #
  251. # The following lines prevent .htaccess and .htpasswd files from being
  252. # viewed by Web clients.
  253. #
  254. <Files ".ht*">
  255.     Require all denied
  256. </Files>
  257.  
  258. #
  259. # ErrorLog: The location of the error log file.
  260. # If you do not specify an ErrorLog directive within a <VirtualHost>
  261. # container, error messages relating to that virtual host will be
  262. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  263. # container, that host's errors will be logged there and not here.
  264. #
  265. ErrorLog "logs/error_log"
  266.  
  267. #
  268. # LogLevel: Control the number of messages logged to the error_log.
  269. # Possible values include: debug, info, notice, warn, error, crit,
  270. # alert, emerg.
  271. #
  272. LogLevel warn
  273.  
  274. <IfModule log_config_module>
  275.     #
  276.     # The following directives define some format nicknames for use with
  277.     # a CustomLog directive (see below).
  278.     #
  279.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  280.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  281.  
  282.     <IfModule logio_module>
  283.       # You need to enable mod_logio.c to use %I and %O
  284.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  285.     </IfModule>
  286.  
  287.     #
  288.     # The location and format of the access logfile (Common Logfile Format).
  289.     # If you do not define any access logfiles within a <VirtualHost>
  290.     # container, they will be logged here.  Contrariwise, if you *do*
  291.     # define per-<VirtualHost> access logfiles, transactions will be
  292.     # logged therein and *not* in this file.
  293.     #
  294.     #CustomLog "logs/access_log" common
  295.  
  296.     #
  297.     # If you prefer a logfile with access, agent, and referer information
  298.     # (Combined Logfile Format) you can use the following directive.
  299.     #
  300.     CustomLog "logs/access_log" combined
  301. </IfModule>
  302.  
  303. <IfModule alias_module>
  304.     #
  305.     # Redirect: Allows you to tell clients about documents that used to
  306.     # exist in your server's namespace, but do not anymore. The client
  307.     # will make a new request for the document at its new location.
  308.     # Example:
  309.     # Redirect permanent /foo http://www.example.com/bar
  310.  
  311.     #
  312.     # Alias: Maps web paths into filesystem paths and is used to
  313.     # access content that does not live under the DocumentRoot.
  314.     # Example:
  315.     # Alias /webpath /full/filesystem/path
  316.     #
  317.     # If you include a trailing / on /webpath then the server will
  318.     # require it to be present in the URL.  You will also likely
  319.     # need to provide a <Directory> section to allow access to
  320.     # the filesystem path.
  321.  
  322.     #
  323.     # ScriptAlias: This controls which directories contain server scripts.
  324.     # ScriptAliases are essentially the same as Aliases, except that
  325.     # documents in the target directory are treated as applications and
  326.     # run by the server when requested rather than as documents sent to the
  327.     # client.  The same rules about trailing "/" apply to ScriptAlias
  328.     # directives as to Alias.
  329.     #
  330.     ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  331.  
  332. </IfModule>
  333.  
  334. #
  335. # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
  336. # CGI directory exists, if you have that configured.
  337. #
  338. <Directory "/var/www/cgi-bin">
  339.     AllowOverride None
  340.     Options None
  341.     Require all granted
  342. </Directory>
  343.  
  344. <IfModule mime_module>
  345.     #
  346.     # TypesConfig points to the file containing the list of mappings from
  347.     # filename extension to MIME-type.
  348.     #
  349.     TypesConfig /etc/mime.types
  350.  
  351.     #
  352.     # AddType allows you to add to or override the MIME configuration
  353.     # file specified in TypesConfig for specific file types.
  354.     #
  355.     #AddType application/x-gzip .tgz
  356.     #
  357.     # AddEncoding allows you to have certain browsers uncompress
  358.     # information on the fly. Note: Not all browsers support this.
  359.     #
  360.     #AddEncoding x-compress .Z
  361.     #AddEncoding x-gzip .gz .tgz
  362.     #
  363.     # If the AddEncoding directives above are commented-out, then you
  364.     # probably should define those extensions to indicate media types:
  365.     #
  366.     AddType application/x-compress .Z
  367.     AddType application/x-gzip .gz .tgz
  368.  
  369.     #
  370.     # AddHandler allows you to map certain file extensions to "handlers":
  371.     # actions unrelated to filetype. These can be either built into the server
  372.     # or added with the Action directive (see below)
  373.     #
  374.     # To use CGI scripts outside of ScriptAliased directories:
  375.     # (You will also need to add "ExecCGI" to the "Options" directive.)
  376.     #
  377.     #AddHandler cgi-script .cgi
  378.  
  379.     # For type maps (negotiated resources):
  380.     #AddHandler type-map var
  381.  
  382.     #
  383.     # Filters allow you to process content before it is sent to the client.
  384.     #
  385.     # To parse .shtml files for server-side includes (SSI):
  386.     # (You will also need to add "Includes" to the "Options" directive.)
  387.     #
  388.     AddType text/html .shtml
  389.     AddOutputFilter INCLUDES .shtml
  390. </IfModule>
  391.  
  392. #
  393. # Specify a default charset for all content served; this enables
  394. # interpretation of all content as UTF-8 by default.  To use the
  395. # default browser choice (ISO-8859-1), or to allow the META tags
  396. # in HTML content to override this choice, comment out this
  397. # directive:
  398. #
  399. AddDefaultCharset UTF-8
  400.  
  401. <IfModule mime_magic_module>
  402.     #
  403.     # The mod_mime_magic module allows the server to use various hints from the
  404.     # contents of the file itself to determine its type.  The MIMEMagicFile
  405.     # directive tells the module where the hint definitions are located.
  406.     #
  407.     MIMEMagicFile conf/magic
  408. </IfModule>
  409.  
  410. #
  411. # Customizable error responses come in three flavors:
  412. # 1) plain text 2) local redirects 3) external redirects
  413. #
  414. # Some examples:
  415. #ErrorDocument 500 "The server made a boo boo."
  416. #ErrorDocument 404 /missing.html
  417. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  418. #ErrorDocument 402 http://www.example.com/subscription_info.html
  419. #
  420.  
  421. #
  422. # EnableMMAP and EnableSendfile: On systems that support it,
  423. # memory-mapping or the sendfile syscall may be used to deliver
  424. # files.  This usually improves server performance, but must
  425. # be turned off when serving from networked-mounted
  426. # filesystems or if support for these functions is otherwise
  427. # broken on your system.
  428. # Defaults if commented: EnableMMAP On, EnableSendfile Off
  429. #
  430. #EnableMMAP off
  431. EnableSendfile on
  432.  
  433. # Supplemental configuration
  434. #
  435. # Load config files in the "/etc/httpd/conf.d" directory, if any.
  436. IncludeOptional conf.d/*.conf
  437.  
  438.  
  439.  
  440.  
captcha