Advertisement
patonl

secure.conf

Mar 9th, 2012
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:443>
  2. ServerAdmin emailaddr
  3. ServerName host
  4.  
  5. SSLEngine On
  6. SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  7. SSLCertificateFile /etc/httpd/conf/file.crt
  8. SSLCertificateKeyFile /etc/httpd/conf/ssl.key/file.key
  9. SSLCertificateChainFile /etc/httpd/conf/ssl.crt/chain-file.crt
  10.  
  11. ErrorLog /var/log/httpd/ssl-error.log
  12.  
  13. # Possible values include: debug, info, notice, warn, error, crit,
  14. # alert, emerg.
  15. LogLevel debug
  16. CustomLog /var/log/httpd/ssl-access.log combined
  17.  
  18. ServerSignature On
  19.  
  20. <Directory "/usr/share/eprints/cgi/users">
  21. AuthName "User Area"
  22. AuthType "Basic"
  23. PerlAuthenHandler EPrints::Apache::Auth::authen
  24. PerlAuthzHandler EPrints::Apache::Auth::authz
  25. require valid-user
  26. SetHandler perl-script
  27. PerlHandler ModPerl::Registry
  28. PerlSendHeader Off
  29. Options ExecCGI FollowSymLinks
  30. </Directory>
  31.  
  32. <Directory "/usr/share/eprints/cgi/users/awstats">
  33. PerlSendHeader On
  34. </Directory>
  35.  
  36. <Location "/secure">
  37. PerlSetVar EPrints_ArchiveID orca
  38. PerlSetVar EPrints_Secure yes
  39. PerlSetVar EPrints_Dir_SecuredCGI /usr/share/eprints/cgi/users
  40. PerlSetVar EPrints_Dir_Documents /usr/share/eprints/archives/orca/documents
  41.  
  42. Order allow,deny
  43. Allow from all
  44. PerlLogHandler EPrints::Apache::LogHandler
  45. </Location>
  46.  
  47. <Directory "/usr/share/eprints/archives/orca/html">
  48. Order deny,allow
  49. Allow from all
  50. AddType 'text/html; charset=UTF-8' .html
  51. </Directory>
  52.  
  53. <Directory "/usr/share/eprints/archives/orca/documents">
  54. AuthName "Documents Area"
  55. AuthType "Basic"
  56. PerlAuthenHandler EPrints::Apache::Auth::authen_doc
  57. PerlAuthzHandler EPrints::Apache::Auth::authz_doc
  58. require valid-user
  59. </Directory>
  60.  
  61. <Directory "/usr/share/eprints/cgi">
  62. SetHandler perl-script
  63. PerlHandler ModPerl::Registry
  64. PerlSendHeader Off
  65. Options ExecCGI FollowSymLinks
  66. </Directory>
  67.  
  68. <Directory "/usr/share/eprints/archives/orca/html">
  69. SetHandler perl-script
  70. PerlResponseHandler EPrints::Apache::Template::handler
  71. </Directory>
  72.  
  73. PerlTransHandler EPrints::Apache::Rewrite
  74.  
  75. Alias /secure/cgi/accounts/confirm /usr/share/eprints/cgi/confirm
  76. Alias /secure/cgi/accounts/register /usr/share/eprints/cgi/register
  77. Alias /secure/cgi/accounts/reset_password /usr/share/eprints/cgi/reset_password
  78. Alias /secure/cgi/accounts/set_password /usr/share/eprints/cgi/set_password
  79. Alias /secure/cgi/users/ /usr/share/eprints/cgi/users/
  80. Alias /secure/ /usr/share/eprints/archives/orca/html/
  81.  
  82. Include /usr/share/eprints/cfg/apache_ssl/orca.conf
  83. </VirtualHost>
Advertisement
RAW Paste Data Copied
Advertisement