Guest User

Untitled

a guest
Mar 5th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.37 KB | None | 0 0
  1. ServerTokens Prod
  2.  
  3. ServerRoot "/etc/httpd"
  4.  
  5. PidFile run/httpd.pid
  6.  
  7. Timeout 60
  8.  
  9. KeepAlive Off
  10.  
  11. MaxKeepAliveRequests 100
  12.  
  13. KeepAliveTimeout 15
  14.  
  15. <IfModule prefork.c>
  16. StartServers 8
  17. MinSpareServers 5
  18. MaxSpareServers 20
  19. ServerLimit 256
  20. MaxClients 256
  21. MaxRequestsPerChild 4000
  22. </IfModule>
  23.  
  24. <IfModule worker.c>
  25. StartServers 4
  26. MaxClients 300
  27. MinSpareThreads 25
  28. MaxSpareThreads 75
  29. ThreadsPerChild 25
  30. MaxRequestsPerChild 0
  31. </IfModule>
  32.  
  33. Listen 80
  34.  
  35. LoadModule auth_basic_module modules/mod_auth_basic.so
  36. LoadModule auth_digest_module modules/mod_auth_digest.so
  37. LoadModule authn_file_module modules/mod_authn_file.so
  38. LoadModule authn_alias_module modules/mod_authn_alias.so
  39. LoadModule authn_anon_module modules/mod_authn_anon.so
  40. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  41. LoadModule authn_default_module modules/mod_authn_default.so
  42. LoadModule authz_host_module modules/mod_authz_host.so
  43. LoadModule authz_user_module modules/mod_authz_user.so
  44. LoadModule authz_owner_module modules/mod_authz_owner.so
  45. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  46. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  47. LoadModule authz_default_module modules/mod_authz_default.so
  48. LoadModule ldap_module modules/mod_ldap.so
  49. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  50. LoadModule include_module modules/mod_include.so
  51. LoadModule log_config_module modules/mod_log_config.so
  52. LoadModule logio_module modules/mod_logio.so
  53. LoadModule env_module modules/mod_env.so
  54. LoadModule ext_filter_module modules/mod_ext_filter.so
  55. LoadModule mime_magic_module modules/mod_mime_magic.so
  56. LoadModule expires_module modules/mod_expires.so
  57. LoadModule deflate_module modules/mod_deflate.so
  58. LoadModule headers_module modules/mod_headers.so
  59. LoadModule usertrack_module modules/mod_usertrack.so
  60. LoadModule setenvif_module modules/mod_setenvif.so
  61. LoadModule mime_module modules/mod_mime.so
  62. LoadModule dav_module modules/mod_dav.so
  63. LoadModule status_module modules/mod_status.so
  64. LoadModule autoindex_module modules/mod_autoindex.so
  65. LoadModule info_module modules/mod_info.so
  66. LoadModule dav_fs_module modules/mod_dav_fs.so
  67. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  68. LoadModule negotiation_module modules/mod_negotiation.so
  69. LoadModule dir_module modules/mod_dir.so
  70. LoadModule actions_module modules/mod_actions.so
  71. LoadModule speling_module modules/mod_speling.so
  72. LoadModule userdir_module modules/mod_userdir.so
  73. LoadModule alias_module modules/mod_alias.so
  74. LoadModule substitute_module modules/mod_substitute.so
  75. LoadModule rewrite_module modules/mod_rewrite.so
  76. LoadModule proxy_module modules/mod_proxy.so
  77. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  78. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  79. LoadModule proxy_http_module modules/mod_proxy_http.so
  80. LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
  81. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  82. LoadModule cache_module modules/mod_cache.so
  83. LoadModule suexec_module modules/mod_suexec.so
  84. LoadModule disk_cache_module modules/mod_disk_cache.so
  85. LoadModule cgi_module modules/mod_cgi.so
  86. LoadModule version_module modules/mod_version.so
  87.  
  88. Include conf.d/*.conf
  89.  
  90. User apache
  91. Group apache
  92.  
  93. ServerAdmin root@localhost
  94.  
  95. UseCanonicalName Off
  96.  
  97. DocumentRoot "/var/www/html"
  98.  
  99. <Directory />
  100. Options FollowSymLinks
  101. AllowOverride None
  102. </Directory>
  103.  
  104. <Directory "/var/www/html">
  105.  
  106. Options Indexes FollowSymLinks
  107.  
  108. AllowOverride None
  109.  
  110. Order allow,deny
  111. Allow from all
  112.  
  113. </Directory>
  114.  
  115. <IfModule mod_userdir.c>
  116.  
  117. UserDir disabled
  118.  
  119. </IfModule>
  120.  
  121. DirectoryIndex index.html index.html.var
  122.  
  123. AccessFileName .htaccess
  124.  
  125. DumpIOOutput On
  126.  
  127. <Files ~ "^\.ht">
  128. Order allow,deny
  129. Deny from all
  130. Satisfy All
  131. </Files>
  132.  
  133. TypesConfig /etc/mime.types
  134.  
  135. DefaultType text/plain
  136.  
  137. <IfModule mod_mime_magic.c>
  138. MIMEMagicFile conf/magic
  139. </IfModule>
  140.  
  141. HostnameLookups Off
  142.  
  143. ErrorLog logs/error_log
  144.  
  145. LogLevel warn
  146.  
  147. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  148. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  149. LogFormat "%{Referer}i -> %U" referer
  150. LogFormat "%{User-agent}i" agent
  151.  
  152. CustomLog logs/access_log combined
  153.  
  154. ServerSignature Off
  155.  
  156. Alias /icons/ "/var/www/icons/"
  157.  
  158. <Directory "/var/www/icons">
  159. Options Indexes MultiViews FollowSymLinks
  160. AllowOverride None
  161. Order allow,deny
  162. Allow from all
  163. </Directory>
  164.  
  165. <IfModule mod_dav_fs.c>
  166. DAVLockDB /var/lib/dav/lockdb
  167. </IfModule>
  168.  
  169. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  170.  
  171. <Directory "/var/www/cgi-bin">
  172. AllowOverride None
  173. Options None
  174. Order allow,deny
  175. Allow from all
  176. </Directory>
  177.  
  178. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
  179.  
  180. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  181.  
  182. AddIconByType (TXT,/icons/text.gif) text/*
  183. AddIconByType (IMG,/icons/image2.gif) image/*
  184. AddIconByType (SND,/icons/sound2.gif) audio/*
  185. AddIconByType (VID,/icons/movie.gif) video/*
  186.  
  187. AddIcon /icons/binary.gif .bin .exe
  188. AddIcon /icons/binhex.gif .hqx
  189. AddIcon /icons/tar.gif .tar
  190. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  191. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  192. AddIcon /icons/a.gif .ps .ai .eps
  193. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  194. AddIcon /icons/text.gif .txt
  195. AddIcon /icons/c.gif .c
  196. AddIcon /icons/p.gif .pl .py
  197. AddIcon /icons/f.gif .for
  198. AddIcon /icons/dvi.gif .dvi
  199. AddIcon /icons/uuencoded.gif .uu
  200. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  201. AddIcon /icons/tex.gif .tex
  202. AddIcon /icons/bomb.gif core
  203.  
  204. AddIcon /icons/back.gif ..
  205. AddIcon /icons/hand.right.gif README
  206. AddIcon /icons/folder.gif ^^DIRECTORY^^
  207. AddIcon /icons/blank.gif ^^BLANKICON^^
  208.  
  209. DefaultIcon /icons/unknown.gif
  210.  
  211. ReadmeName README.html
  212. HeaderName HEADER.html
  213.  
  214. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  215.  
  216. AddLanguage ca .ca
  217. AddLanguage cs .cz .cs
  218. AddLanguage da .dk
  219. AddLanguage de .de
  220. AddLanguage el .el
  221. AddLanguage en .en
  222. AddLanguage eo .eo
  223. AddLanguage es .es
  224. AddLanguage et .et
  225. AddLanguage fr .fr
  226. AddLanguage he .he
  227. AddLanguage hr .hr
  228. AddLanguage it .it
  229. AddLanguage ja .ja
  230. AddLanguage ko .ko
  231. AddLanguage ltz .ltz
  232. AddLanguage nl .nl
  233. AddLanguage nn .nn
  234. AddLanguage no .no
  235. AddLanguage pl .po
  236. AddLanguage pt .pt
  237. AddLanguage pt-BR .pt-br
  238. AddLanguage ru .ru
  239. AddLanguage sv .sv
  240. AddLanguage zh-CN .zh-cn
  241. AddLanguage zh-TW .zh-tw
  242.  
  243. 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
  244.  
  245. ForceLanguagePriority Prefer Fallback
  246.  
  247. AddDefaultCharset UTF-8
  248.  
  249. AddType application/x-compress .Z
  250. AddType application/x-gzip .gz .tgz
  251.  
  252. AddType application/x-x509-ca-cert .crt
  253. AddType application/x-pkcs7-crl .crl
  254.  
  255. AddHandler type-map var
  256.  
  257. AddType text/html .shtml
  258. AddOutputFilter INCLUDES .shtml
  259.  
  260. Alias /error/ "/var/www/error/"
  261.  
  262. <IfModule mod_negotiation.c>
  263. <IfModule mod_include.c>
  264. <Directory "/var/www/error">
  265. AllowOverride None
  266. Options IncludesNoExec
  267. AddOutputFilter Includes html
  268. AddHandler type-map var
  269. Order allow,deny
  270. Allow from all
  271. LanguagePriority en es de fr
  272. ForceLanguagePriority Prefer Fallback
  273. </Directory>
  274.  
  275. </IfModule>
  276. </IfModule>
  277.  
  278. BrowserMatch "Mozilla/2" nokeepalive
  279. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  280. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  281. BrowserMatch "Java/1\.0" force-response-1.0
  282. BrowserMatch "JDK/1\.0" force-response-1.0
  283.  
  284. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  285. BrowserMatch "MS FrontPage" redirect-carefully
  286. BrowserMatch "^WebDrive" redirect-carefully
  287. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  288. BrowserMatch "^gnome-vfs/1.0" redirect-carefully
  289. BrowserMatch "^XML Spy" redirect-carefully
  290. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  291.  
  292. ServerName server.com
  293. NameVirtualHost *:80
  294. NameVirtualHost *:443
  295.  
  296.  
  297. <VirtualHost *:80>
  298. ServerName default
  299. DocumentRoot /var/www/html/default
  300. ErrorLog /var/log/httpd/default-error.log
  301. CustomLog /var/log/httpd/default-access_log common
  302. <Directory /var/www/html/default>
  303. Order allow,deny
  304. Allow from all
  305. </Directory>
  306. </VirtualHost>
  307.  
  308. <VirtualHost *:443>
  309. ServerName default
  310. DocumentRoot /var/www/html/default
  311. ErrorLog /var/log/httpd/default-error.log
  312. CustomLog /var/log/httpd/default-access_log common
  313. SSLEngine on
  314. SSLCertificateFile /etc/ssl/certs/example.crt
  315. SSLCertificateKeyFile /etc/ssl/private/example.key
  316. <Directory /var/www/html/default>
  317. Order allow,deny
  318. Allow from all
  319. </Directory>
  320. </VirtualHost>
  321.  
  322.  
  323. <VirtualHost *:80>
  324. ServerAdmin [email protected]
  325. DocumentRoot /opt/osdial/html
  326. ServerName server.com
  327. DirectoryIndex index.php
  328. ErrorLog /var/log/httpd/server.com-error_log
  329. CustomLog /var/log/httpd/server.com-access_log common
  330. RewriteEngine On
  331. RewriteCond %{HTTPS} off
  332. RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
  333. </VirtualHost>
  334.  
  335.  
  336. <VirtualHost *:443>
  337. ServerAdmin [email protected]
  338. DocumentRoot /opt/osdial/html
  339. ServerName server.com
  340. DirectoryIndex index.php
  341. SSLEngine on
  342. SSLCertificateFile /etc/ssl/certs/example.crt
  343. SSLCertificateKeyFile /etc/ssl/private/example.key
  344. ErrorLog /var/log/httpd/https.server.com-error_log
  345. CustomLog /var/log/httpd/https.server.com-access_log common
  346. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment