pagure-apache-httpd.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #WSGISocketPrefix run/wsgi
  2. ##WSGIRestrictStdout On
  3. #WSGIRestrictSignal Off
  4. #WSGIPythonOptimize 1
  5. #WSGIPassAuthorization On
  6. #WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
  7. ## It is important that the doc server runs in a different apache process
  8. #WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
  9. #<VirtualHost *:80>
  10. #ServerName localhost.localdomain
  11. #Redirect permanent / https://localhost.localdomain/
  12. #</VirtualHost>
  13. #<VirtualHost *:80>
  14. #ServerName docs.localhost.localdomain
  15. #Redirect permanent / https://docs.localhost.localdomain/
  16. #</VirtualHost>
  17. #<VirtualHost *:443>
  18. #ServerName docs.localhost.localdomain
  19. #WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi
  20. #SSLEngine on
  21. #SSLProtocol all -SSLv2 -SSLv3
  22. ## Use secure TLSv1.1 and TLSv1.2 ciphers
  23. #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  24. #SSLCertificateFile /etc/pki/tls/....crt
  25. #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  26. #SSLCertificateKeyFile /etc/pki/tls/....key
  27. #Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
  28. #<Location />
  29. #WSGIProcessGroup paguredocs
  30. #<IfModule mod_authz_core.c>
  31. ## Apache 2.4
  32. #Require all granted
  33. #</IfModule>
  34. #<IfModule !mod_authz_core.c>
  35. ## Apache 2.2
  36. #Order deny,allow
  37. #Allow from all
  38. #</IfModule>
  39. #</Location>
  40. #</VirtualHost>
  41. #<VirtualHost *:443>
  42. #ServerName localhost.localdomain
  43. #WSGIScriptAlias / /usr/share/pagure/pagure.wsgi
  44. #SSLEngine on
  45. #SSLProtocol all -SSLv2 -SSLv3
  46. ## Use secure TLSv1.1 and TLSv1.2 ciphers
  47. #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  48. #SSLCertificateFile /etc/pki/tls/....crt
  49. #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  50. #SSLCertificateKeyFile /etc/pki/tls/....key
  51. #Alias /static /usr/lib/pythonX.Y/site-packages/pagure/static/
  52. #Alias /releases /var/www/releases
  53. ## Section used to support cloning git repo over http (https in this case)
  54. #SetEnv GIT_PROJECT_ROOT /path/to/git/repositories
  55. #<Location />
  56. #WSGIProcessGroup pagure
  57. #<IfModule mod_authz_core.c>
  58. ## Apache 2.4
  59. #Require all granted
  60. #</IfModule>
  61. #<IfModule !mod_authz_core.c>
  62. ## Apache 2.2
  63. #Order deny,allow
  64. #Allow from all
  65. #</IfModule>
  66. #</Location>
  67. ## Folder where are stored the tarball of the releases
  68. #<Location /releases>
  69. #WSGIProcessGroup pagure
  70. #<IfModule mod_authz_core.c>
  71. ## Apache 2.4
  72. #Require all granted
  73. #</IfModule>
  74. #<IfModule !mod_authz_core.c>
  75. ## Apache 2.2
  76. #Order deny,allow
  77. #Allow from all
  78. #</IfModule>
  79. #</Location>
  80. #<Directory /var/www/releases>
  81. #Options +Indexes
  82. #</Directory>
  83. #</VirtualHost>