Apache pagure.conf configuration example for CentOS Linux 7

Get the default configuration file pagure.conf for Apache, optimized for CentOS Linux 7. This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/httpd/conf.d/pagure.conf.

For more configurations and setup guides, visit our related files section to further customize your system.

    #WSGISocketPrefix run/wsgi
##WSGIRestrictStdout On
#WSGIRestrictSignal Off
#WSGIPythonOptimize 1
#WSGIPassAuthorization On
#WSGIDaemonProcess pagure user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300
## It is important that the doc server runs in a different apache process
#WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-name=pagure processes=4 threads=4 inactivity-timeout=300

#<VirtualHost *:80>
  #ServerName localhost.localdomain
  #Redirect permanent / https://localhost.localdomain/
#</VirtualHost>


#<VirtualHost *:80>
  #ServerName docs.localhost.localdomain
  #Redirect permanent / https://docs.localhost.localdomain/
#</VirtualHost>


#<VirtualHost *:443>
  #ServerName docs.localhost.localdomain

  #WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi

  #SSLEngine on
  #SSLProtocol all -SSLv2 -SSLv3
  ## Use secure TLSv1.1 and TLSv1.2 ciphers
  #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"

  #SSLCertificateFile /etc/pki/tls/....crt
  #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  #SSLCertificateKeyFile /etc/pki/tls/....key

  #<Location />
    #WSGIProcessGroup paguredocs
    #<IfModule mod_authz_core.c>
      ## Apache 2.4
      #Require all granted
    #</IfModule>
    #<IfModule !mod_authz_core.c>
      ## Apache 2.2
      #Order deny,allow
      #Allow from all
    #</IfModule>
   #</Location>
#</VirtualHost>


#<VirtualHost *:443>
  #ServerName localhost.localdomain

  #WSGIScriptAlias / /usr/share/pagure/pagure.wsgi

  #SSLEngine on
  #SSLProtocol all -SSLv2 -SSLv3
  ## Use secure TLSv1.1 and TLSv1.2 ciphers
  #Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"

  #SSLCertificateFile /etc/pki/tls/....crt
  #SSLCertificateChainFile /etc/pki/tls/....intermediate.crt
  #SSLCertificateKeyFile /etc/pki/tls/....key

  #Alias /releases /var/www/releases

  ## Section used to support cloning git repo over http (https in this case)
  #SetEnv GIT_PROJECT_ROOT /path/to/git/repositories

  #<Location />
   #WSGIProcessGroup pagure
   #<IfModule mod_authz_core.c>
      ## Apache 2.4
      #Require all granted
   #</IfModule>
   #<IfModule !mod_authz_core.c>
      ## Apache 2.2
      #Order deny,allow
      #Allow from all
   #</IfModule>
  #</Location>

  ## Folder where are stored the tarball of the releases
  #<Location /releases>
   #WSGIProcessGroup pagure
   #<IfModule mod_authz_core.c>
      ## Apache 2.4
      #Require all granted
   #</IfModule>
   #<IfModule !mod_authz_core.c>
       ## Apache 2.2
      #Order deny,allow
      #Allow from all
   #</IfModule>
  #</Location>

  #<Directory /var/www/releases>
    #Options +Indexes
  #</Directory>

#</VirtualHost>


    
  

Config Details

Location
/etc/httpd/conf.d/pagure.conf
Operating system
CentOS Linux 7
Length
102 lines
MD5 checksum
279b6e79d8790f24780334a648240e1e

Usage

Download the raw file with wget or curl

Wget

wget -O pagure.conf.example https://exampleconfig.com/static/raw/apache/centos7/etc/httpd/conf.d/pagure.conf

cURL

curl https://exampleconfig.com/static/raw/apache/centos7/etc/httpd/conf.d/pagure.conf > pagure.conf.example