Advertisement
Guest User

radosgw config with apache, not success

a guest
Mar 13th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <VirtualHost node_a:80>
  2. ServerName node_a
  3. ServerAdmin node_a
  4. DocumentRoot /var/www/html
  5.  
  6. <IfModule mod_rewrite.c>
  7. RewriteEngine On
  8. RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  9. </IfModule>
  10. <IfModule mod_fastcgi.c>
  11. <Directory /var/www/html>
  12. Options +ExecCGI
  13. AllowOverride All
  14. SetHandler fastcgi-script
  15. Order allow,deny
  16. Allow from all
  17. AuthBasicAuthoritative Off
  18. </Directory>
  19. </IfModule>
  20.  
  21. AllowEncodedSlashes On
  22. ErrorLog /var/log/httpd/rgw_error_log
  23. CustomLog /var/log/httpd/rgw_access_log combined
  24. ServerSignature Off
  25. SetEnv SERVER_PORT_SECURE 65443
  26. </VirtualHost>
  27.  
  28. <VirtualHost node_a:443>
  29. ServerName node_a
  30. ServerAdmin node_a
  31. DocumentRoot /var/www/html
  32. #ErrorLog logs/ssl_error_log
  33. #TransferLog logs/ssl_access_log
  34. LogLevel warn
  35. SSLEngine on
  36. SSLProtocol all -SSLv2
  37. SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
  38. SSLCertificateFile /etc/pki/tls/certs/server.crt
  39. SSLCertificateKeyFile /etc/pki/tls/private/server.key
  40. <Files ~ "\.(cgi|shtml|phtml|php3?)$">
  41. SSLOptions +StdEnvVars
  42. </Files>
  43. <Directory "/var/www/cgi-bin">
  44. SSLOptions +StdEnvVars
  45. </Directory>
  46. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
  47. CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  48.  
  49. <IfModule mod_rewrite.c>
  50. RewriteEngine On
  51. RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) /s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  52. </IfModule>
  53. <IfModule mod_fastcgi.c>
  54. <Directory /var/www/html>
  55. Options +ExecCGI
  56. AllowOverride All
  57. SetHandler fastcgi-script
  58. Order allow,deny
  59. Allow from all
  60. AuthBasicAuthoritative Off
  61. </Directory>
  62. </IfModule>
  63.  
  64. AllowEncodedSlashes On
  65. ErrorLog /var/log/httpd/rgw_error_log
  66. CustomLog /var/log/httpd/rgw_access_log combined
  67. ServerSignature Off
  68. SetEnv SERVER_PORT_SECURE 65443
  69. </VirtualHost>
  70.  
  71. <IfModule mod_fastcgi.c>
  72. FastCgiExternalServer /var/www/html/s3gw.fcgi -socket /tmp/radosgw.sock
  73. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement