<VirtualHost bugzilla.domain.com>
    ServerAdmin bugzilla@domain.com
    ServerName bugzilla.domain.com

    DocumentRoot /usr/share/bugzilla/web
    
    SetEnv X_BUGZILLA_SITE "basic"
    SetEnv X_BUGZILLA_WEBPATH "/"

    # This is needed for keeping a good url in lots of links
    RewriteEngine On
    RewriteRule ^(.*/cgi-bin/bugzilla)/?$ $1/index.cgi [R]

    # Rewrite the index access to the CGI path, much clean than
    # the pretty old-fashion index.html redirection
    RewriteRule ^/index.html$ /cgi-bin/index.cgi [PT]

</VirtualHost>
