pagure-apache-httpd.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. #<Location />
  28. #WSGIProcessGroup paguredocs
  29. #<IfModule mod_authz_core.c>
  30. ## Apache 2.4
  31. #Require all granted
  32. #</IfModule>
  33. #<IfModule !mod_authz_core.c>
  34. ## Apache 2.2
  35. #Order deny,allow
  36. #Allow from all
  37. #</IfModule>
  38. #</Location>
  39. #</VirtualHost>
  40. #<VirtualHost *:443>
  41. #ServerName localhost.localdomain
  42. #WSGIScriptAlias / /usr/share/pagure/pagure.wsgi
  43. #SSLEngine on
  44. #SSLProtocol all -SSLv2 -SSLv3
  45. ## Use secure TLSv1.1 and TLSv1.2 ciphers
  46. #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
  47. #SSLCertificateFile /etc/pki/tls/....crt
  48. #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  49. #SSLCertificateKeyFile /etc/pki/tls/....key
  50. #Alias /releases /var/www/releases
  51. ## Section used to support cloning git repo over http (https in this case)
  52. #SetEnv GIT_PROJECT_ROOT /path/to/git/repositories
  53. #<Location />
  54. #WSGIProcessGroup pagure
  55. #<IfModule mod_authz_core.c>
  56. ## Apache 2.4
  57. #Require all granted
  58. #</IfModule>
  59. #<IfModule !mod_authz_core.c>
  60. ## Apache 2.2
  61. #Order deny,allow
  62. #Allow from all
  63. #</IfModule>
  64. #</Location>
  65. ## Folder where are stored the tarball of the releases
  66. #<Location /releases>
  67. #WSGIProcessGroup pagure
  68. #<IfModule mod_authz_core.c>
  69. ## Apache 2.4
  70. #Require all granted
  71. #</IfModule>
  72. #<IfModule !mod_authz_core.c>
  73. ## Apache 2.2
  74. #Order deny,allow
  75. #Allow from all
  76. #</IfModule>
  77. #</Location>
  78. #<Directory /var/www/releases>
  79. #Options +Indexes
  80. #</Directory>
  81. #</VirtualHost>