Apache viewvc-wsgi.conf configuration example for CentOS Linux 7

Get the default configuration file viewvc-wsgi.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/viewvc-wsgi.conf.

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

    WSGIScriptAlias /viewvc /usr/lib/python2.7/site-packages/viewvc/bin/wsgi/viewvc.wsgi
Alias /viewvc-static /usr/share/viewvc/templates/docroot

<Directory /usr/lib/python2.7/site-packages/viewvc/bin/wsgi>
    Options -Indexes
    <Files viewvc.wsgi>
        <IfModule mod_authz_core.c>
            # Apache 2.4
            Require local
        </IfModule>
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order allow,deny
            Allow from 127.0.0.1
            Allow from ::1
        </IfModule>
    </Files>
</Directory>
<Directory /usr/share/viewvc/templates/docroot>
    Options -Indexes
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require local
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order allow,deny
        Allow from 127.0.0.1
        Allow from ::1
    </IfModule>
</Directory>

    
  

Config Details

Location
/etc/httpd/conf.d/viewvc-wsgi.conf
Operating system
CentOS Linux 7
Length
31 lines
MD5 checksum
20a73cd6aa7db9c588ad5372ace31546

Usage

Download the raw file with wget or curl

Wget

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

cURL

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