Guest User

Untitled

a guest
Jun 20th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 KB | None | 0 0
  1. its:/etc/apache2 # httpd -v
  2. Server version: Apache/2.4.23 (Linux/SUSE)
  3. Server built: 2018-04-04 10:24:21.000000000 +0000
  4.  
  5. its:~ # apache2ctl -D SSL -k start
  6.  
  7. its:~ # netstat -anp | grep -i listen |head -10
  8. tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 12704/postgres
  9. tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1587/master
  10. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1461/sshd
  11. tcp 0 0 ::1:5432 :::* LISTEN 12704/postgres
  12. tcp 0 0 ::1:25 :::* LISTEN 1587/master
  13. tcp 0 0 :::443 :::* LISTEN 17086/httpd-prefork
  14. tcp 0 0 :::80 :::* LISTEN 17086/httpd-prefork
  15. tcp 0 0 :::22 :::* LISTEN 1461/sshd
  16. unix 2 [ ACC ] STREAM LISTENING 20198 3246/gnome-session- @/tmp/.ICE-unix/3246
  17. unix 2 [ ACC ] STREAM LISTENING 26729 10664/2 /tmp/ssh-QVZiT6g6BZ/agent.10664
  18.  
  19. [Tue Jun 19 18:09:06.548624 2018] [mpm_prefork:notice] [pid 17086] AH00163: Apache/2.4.23 (Linux/SUSE) OpenSSL/1.0.2j-fips PHP/7.0.7 configured -- resuming normal operations
  20. [Tue Jun 19 18:09:06.548653 2018] [core:notice] [pid 17086] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SSL'
  21.  
  22. its:~ # apache2ctl start
  23. its:/etc/apache2 # netstat -anp | grep -i listen |head -10
  24. tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 12704/postgres
  25. tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1587/master
  26. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1461/sshd
  27. tcp 0 0 ::1:5432 :::* LISTEN 12704/postgres
  28. tcp 0 0 ::1:25 :::* LISTEN 1587/master
  29. tcp 0 0 :::80 :::* LISTEN 22448/httpd-prefork
  30. tcp 0 0 :::22 :::* LISTEN 1461/sshd
  31. unix 2 [ ACC ] STREAM LISTENING 20198 3246/gnome-session- @/tmp/.ICE-unix/3246
  32. unix 2 [ ACC ] STREAM LISTENING 26729 10664/2 /tmp/ssh-QVZiT6g6BZ/agent.10664
  33. unix 2 [ ACC ] STREAM LISTENING 20051 1911/gdm-simple-sla @/tmp/dbus-UIT8sEpY
  34.  
  35. [Wed Jun 20 09:00:59.337270 2018] [ssl:warn] [pid 22448] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
  36. [Wed Jun 20 09:00:59.342902 2018] [mpm_prefork:notice] [pid 22448] AH00163: Apache/2.4.23 (Linux/SUSE) OpenSSL/1.0.2j-fips PHP/7.0.7 configured -- resuming normal operations
  37. [Wed Jun 20 09:00:59.342982 2018] [core:notice] [pid 22448] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf'
  38.  
  39. its:/etc/apache2 # cat httpd.conf |grep ssl-global.conf |grep -v #
  40. Include /etc/apache2/ssl-global.conf
  41. its:/etc/apache2 # cat ssl-global.conf|grep SSLSessionCache |grep -v #
  42. SSLSessionCache shmcb:/var/lib/apache2/ssl_scache(512000)
  43. SSLSessionCacheTimeout 300
  44.  
  45. its:/etc/apache2 # cat httpd.conf |grep -v ^# |grep -v ^$
  46. Include /etc/apache2/uid.conf
  47. Include /etc/apache2/server-tuning.conf
  48. ErrorLog /var/log/apache2/error_log
  49. <IfDefine !SYSCONFIG>
  50. Include /etc/apache2/loadmodule.conf
  51. </IfDefine>
  52. Include /etc/apache2/listen.conf
  53. Include /etc/apache2/mod_log_config.conf
  54. <IfDefine !SYSCONFIG>
  55. Include /etc/apache2/global.conf
  56. </IfDefine>
  57. Include /etc/apache2/mod_status.conf
  58. Include /etc/apache2/mod_info.conf
  59. Include /etc/apache2/mod_reqtimeout.conf
  60. Include /etc/apache2/mod_cgid-timeout.conf
  61. Include /etc/apache2/mod_usertrack.conf
  62. Include /etc/apache2/mod_autoindex-defaults.conf
  63. TypesConfig /etc/apache2/mime.types
  64. Include /etc/apache2/mod_mime-defaults.conf
  65. Include /etc/apache2/errors.conf
  66. Include /etc/apache2/ssl-global.conf
  67. <Directory />
  68. Options None
  69. AllowOverride None
  70. <IfModule !mod_access_compat.c>
  71. Require all denied
  72. </IfModule>
  73. <IfModule mod_access_compat.c>
  74. Order deny,allow
  75. Deny from all
  76. </IfModule>
  77. </Directory>
  78. AccessFileName .htaccess
  79. <Files ~ "^.ht">
  80. <IfModule !mod_access_compat.c>
  81. Require all denied
  82. </IfModule>
  83. <IfModule mod_access_compat.c>
  84. Order allow,deny
  85. Deny from all
  86. </IfModule>
  87. </Files>
  88. DirectoryIndex index.html index.html.var
  89. Include /etc/apache2/default-server.conf
  90. IncludeOptional /etc/apache2/vhosts.d/*.conf
  91. ServerName 192.168.25.53
  92. AddType application/x-httpd-php .php
  93. AddType application/x-httpd-php-source .phps
  94.  
  95. its:/etc/apache2 # cat vhosts.d/*conf |grep -v # |grep -v ^$
  96. ServerTokens Prod
  97. TraceEnable off
  98. LogLevel notice
  99. <IfDefine SSL>
  100. <IfDefine !NOSSL>
  101. <VirtualHost _default_:443>
  102. DocumentRoot /srv/www/htdocs/mantis
  103. ServerName 192.168.25.53
  104. ServerAlias 192.168.25.53
  105. ServerAdmin webadmin@debsinc.com
  106. ErrorLog "|| /usr/sbin/rotatelogs2 /var/log/apache2/error_log_ssl.%Y%m%d 100M"
  107. TransferLog "|| /usr/sbin/rotatelogs2 /var/log/apache2/access_log_ssl.%Y%m%d 100M"
  108. CustomLog "|| /usr/sbin/rotatelogs2 /var/log/apache2/ssl_request_log.%Y%m%d 100M" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b"
  109. CustomLog "|| /usr/sbin/rotatelogs2 /var/log/apache2/ssl_referer_log.%Y%m%d 100M" "%t %h %{Referer}i -> %U"
  110. <IfModule mod_rewrite.c>
  111. RewriteEngine on
  112. RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  113. RewriteRule .* - [F]
  114. </IfModule>
  115. SSLEngine on
  116. SSLCertificateFile /etc/apache2/ssl/apache.crt
  117. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  118. SSLCertificateChainFile /etc/apache2/ssl/apache.crt
  119. SSLCACertificatePath /etc/apache2/ssl
  120. <Files ~ ".(cgi|shtml|phtml|php3?)$">
  121. SSLOptions +StdEnvVars
  122. </Files>
  123. SetEnvIf User-Agent ".*MSIE.*"
  124. nokeepalive ssl-unclean-shutdown
  125. downgrade-1.0 force-response-1.0
  126.  
  127. <Directory "/srv/www/htdocs/mantis">
  128. Require all granted
  129. Order allow,deny
  130. Allow from all
  131. </Directory>
  132. </VirtualHost>
  133. </IfDefine>
  134. </IfDefine>
Add Comment
Please, Sign In to add comment