Advertisement
lamiastella

000-default.conf

Sep 17th, 2017
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. ubuntu@ip-172-31-43-224:~$ tail -20 /var/log/apache2/error.log
  2. [ 2017-09-18 00:03:43.1798 30648/7ff648f73780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.37', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.37', 'web_server_pid' => '30647', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }
  3. [ 2017-09-18 00:03:43.1951 30651/7f1f13caa780 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.30647/generation-0/request
  4. [ 2017-09-18 00:03:43.2176 30659/7f06d8575780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.30647/generation-0/logging
  5. [ 2017-09-18 00:03:43.2178 30648/7ff648f73780 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
  6. [Mon Sep 18 00:03:43.218159 2017] [ssl:emerg] [pid 30647] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
  7. [Mon Sep 18 00:03:43.218199 2017] [ssl:emerg] [pid 30647] AH02312: Fatal error initialising mod_ssl, exiting.
  8. [ 2017-09-18 00:03:43.2302 30659/7f06d8575780 agents/LoggingAgent/Main.cpp:289 ]: Caught signal, exiting...
  9.  
  10.  
  11.  
  12. my file:
  13.  
  14. $ cat /etc/apache2/sites-enabled/000-default.conf
  15. WSGIDaemonProcess www-data
  16. WSGIProcessGroup www-data
  17. WSGIPythonPath /usr/local/lib/python2.7/site-packages
  18.  
  19. <VirtualHost *:443>
  20. ServerName www.buhcomp.com
  21. DocumentRoot /home/ubuntu/vatic/public
  22.  
  23. WSGIScriptAlias /server /home/ubuntu/vatic/server.py
  24. CustomLog /var/log/apache2/access.log combined
  25. <Directory /home/ubuntu/vatic/public>
  26. Options +Indexes +FollowSymLinks +MultiViews +Includes +ExecCGI
  27. AllowOverride all
  28.  
  29. AddHandler cgi-script .cgi .pl
  30.  
  31. Order allow,deny
  32.  
  33. Require all granted
  34.  
  35. Allow from all
  36.  
  37. AddType text/html .html
  38.  
  39. AddOutputFilter INCLUDES .html
  40.  
  41. DirectoryIndex index.html
  42.  
  43. </Directory>
  44.  
  45. </VirtualHost>
  46.  
  47. <VirtualHost *:443>
  48.  
  49.  
  50.  
  51. DocumentRoot /home/ubuntu/LabelMeAnnotationTool-master
  52.  
  53.  
  54.  
  55. SSLEngine on
  56.  
  57. SSLOptions +StrictRequire
  58.  
  59.  
  60.  
  61. <Directory />
  62.  
  63. SSLRequireSSL
  64.  
  65. </Directory>
  66.  
  67.  
  68.  
  69. SSLProtocol -all +TLSv1 +SSLv3
  70.  
  71. SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
  72.  
  73.  
  74.  
  75. SSLCertificateFile /etc/apache2/ssl/4757dc1c480db857.crt
  76.  
  77. SSLCertificateKeyFile /etc/apache2/ssl/buhcomp_com.key
  78.  
  79.  
  80.  
  81. SSLVerifyClient none
  82.  
  83. SSLProxyEngine off
  84.  
  85. <IfModule mime.c>
  86.  
  87. AddType application/x-x509-ca-cert .crt
  88.  
  89. AddType application/x-pkcs7-crl .crl
  90.  
  91. </IfModule>
  92.  
  93. <Directory />
  94. #Options FollowSymLinks
  95. Options Indexes FollowSymLinks Includes ExecCGI
  96. AllowOverride All
  97. Order deny,allow
  98. Allow from all
  99. </Directory>
  100. <Directory /home/ubuntu/test/LabelMeAnnotationTool-master>
  101. Options +Indexes +FollowSymLinks +MultiViews +Includes +ExecCGI
  102. AllowOverride all
  103.  
  104. AddHandler cgi-script .cgi .pl
  105.  
  106. Order allow,deny
  107.  
  108. Require all granted
  109.  
  110. Allow from all
  111.  
  112. AddType text/html .shtml
  113.  
  114. AddOutputFilter INCLUDES .shtml
  115.  
  116. DirectoryIndex index.shtml
  117.  
  118. </Directory>
  119. </VirtualHost>
  120.  
  121.  
  122. ERROR:
  123.  
  124. ubuntu@ip-172-31-43-224:~$ apachectl -S
  125. AH00526: Syntax error on line 33 of /etc/apache2/sites-enabled/default-ssl.conf:
  126. SSLCertificateKeyFile: file '/etc/ssl/private/ssl-cert-snakeoil.key' does not exist or is empty
  127. Action '-S' failed.
  128. The Apache error log may have more information.
  129.  
  130.  
  131.  
  132. line 33 of the file:
  133. SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
  134. SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement