orcainbox

Tree of Jesse Bottleneck Isaih 11:11

Jul 16th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. [orca@orcacomputers conf.d]$ httpd -S
  2. AH00526: Syntax error on line 19 of /etc/httpd/conf.d/0rcan0mic.com-le-ssl.conf:
  3. SSLCertificateFile: file '/etc/letsencrypt/live/www.0rcan0mic.com/cert.pem' does not exist or is empty
  4. [orca@orcacomputers conf.d]$
  5.  
  6. So I renew the SSL certificate
  7. Obtaining a new certificate
  8. Deploying Certificate to VirtualHost /etc/httpd/conf.d/0rcan0mic.com-le-ssl.conf
  9. Enhancement redirect was already set.
  10.  
  11. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  12. Congratulations! You have successfully enabled https://www.0rcan0mic.com
  13. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  14.  
  15. IMPORTANT NOTES:
  16. - Congratulations! Your certificate and chain have been saved at:
  17. /etc/letsencrypt/live/www.0rcan0mic.com/fullchain.pem
  18. Your key file has been saved at:
  19. /etc/letsencrypt/live/www.0rcan0mic.com/privkey.pem
  20.  
  21. [orca@orcacomputers conf.d]$ httpd -S
  22. AH00526: Syntax error on line 19 of /etc/httpd/conf.d/0rcan0mic.com-le-ssl.conf:
  23. SSLCertificateFile: file '/etc/letsencrypt/live/www.0rcan0mic.com/cert.pem' does not exist or is empty
  24.  
  25. Nope, scoobie snacks, keep digging, let's show the vhosts like rbowen asked for.
  26. <VirtualHost *:80>
  27.  
  28. ServerName 0rcan0mic.com
  29. ServerAlias www.0rcan0mic.com
  30. ServerAdmin webmaster@localhost
  31. DocumentRoot /var/www/0rcan0mic.com/public_html
  32. ErrorLog /var/log/httpd/0rcan0mic.com-error.log
  33. CustomLog /var/log/httpd/0rcan0mic.com-access.log combined
  34.  
  35.  
  36. <Directory "/var/www/0rcan0mic.com/public_html">
  37. AllowOverride All
  38. </Directory>
  39.  
  40. RewriteEngine on
  41. RewriteCond %{SERVER_NAME} =www.0rcan0mic.com [OR]
  42. RewriteCond %{SERVER_NAME} =0rcan0mic.com
  43. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  44. </VirtualHost>
  45.  
  46. <IfModule mod_ssl.c>
  47. <VirtualHost *:443>
  48.  
  49. ServerName 0rcan0mic.com
  50. ServerAlias www.0rcan0mic.com
  51. ServerAdmin webmaster@localhost
  52. DocumentRoot /var/www/0rcan0mic.com/public_html
  53. ErrorLog /var/log/httpd/0rcan0mic.com-error.log
  54. CustomLog /var/log/httpd/0rcan0mic.com-access.log combined
  55.  
  56.  
  57. <Directory "/var/www/0rcan0mic.com/public_html">
  58. AllowOverride All
  59. </Directory>
  60.  
  61.  
  62.  
  63. Include /etc/letsencrypt/options-ssl-apache.conf
  64. SSLCertificateFile /etc/letsencrypt/live/www.0rcan0mic.com/cert.pem
  65. SSLCertificateKeyFile /etc/letsencrypt/live/www.0rcan0mic.com/privkey.pem
  66. SSLCertificateChainFile /etc/letsencrypt/live/www.0rcan0mic.com/chain.pem
  67. </VirtualHost>
  68. </IfModule>
  69. <VirtualHost *:80>
  70.  
  71. ServerName mybestfriendsarecats.com
  72. ServerAlias www.mybestfriendsarecats.com
  73. ServerAdmin webmaster@localhost
  74. DocumentRoot /var/www/mybestfriendsarecats.com/public_html
  75. ErrorLog /var/log/httpd/mybestfriendsarecats.com-error.log
  76. CustomLog /var/log/httpd/mybestfriendsarecats.com-access.log combined
  77.  
  78.  
  79. <Directory "/var/www/mybestfriendsarecats.com/public_html">
  80. AllowOverride All
  81. </Directory>
  82.  
  83. RewriteEngine on
  84. RewriteCond %{SERVER_NAME} =www.mybestfriendsarecats.com [OR]
  85. RewriteCond %{SERVER_NAME} =mybestfriendsarecats.com
  86. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  87. </VirtualHost>
  88.  
  89. <IfModule mod_ssl.c>
  90. <VirtualHost *:443>
  91.  
  92. ServerName mybestfriendsarecats.com
  93. ServerAlias www.mybestfriendsarecats.com
  94. ServerAdmin webmaster@localhost
  95. DocumentRoot /var/www/mybestfriendsarecats.com/public_html
  96. ErrorLog /var/log/httpd/mybestfriendsarecats.com-error.log
  97. CustomLog /var/log/httpd/mybestfriendsarecats.com-access.log combined
  98.  
  99.  
  100. <Directory "/var/www/mybestfriendsarecats.com/public_html">
  101. AllowOverride All
  102. </Directory>
  103.  
  104. RewriteEngine on
  105. # Some rewrite rules in this file were disabled on your HTTPS site,
  106. # because they have the potential to create redirection loops.
  107.  
  108. # RewriteCond %{SERVER_NAME} =www.mybestfriendsarecats.com [OR]
  109. # RewriteCond %{SERVER_NAME} =mybestfriendsarecats.com
  110. # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  111.  
  112.  
  113. SSLCertificateFile /etc/letsencrypt/live/mybestfriendsarecats.com/cert.pem
  114. SSLCertificateKeyFile /etc/letsencrypt/live/mybestfriendsarecats.com/privkey.pem
  115. Include /etc/letsencrypt/options-ssl-apache.conf
  116. SSLCertificateChainFile /etc/letsencrypt/live/mybestfriendsarecats.com/chain.pem
  117. </VirtualHost>
  118. </IfModule>
Add Comment
Please, Sign In to add comment