Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-26-2011, 03:34 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 14

Rep: Reputation: 0
Bugzilla 4.0 not recognizing SetEnv variable for Virtual Host

Hi, I am attempting to stand up a new server Red Hat EL6 with Bugzilla-4.0 and everything is working expect Virtual Host. By defualt Bugzilla looks for SetEnv PROJECT (variable) in the /etc/httpd/conf/httpd.conf file. I followed the given instructions to place SetEnv PROJECT (variable) under <VirtualHost> however bugzilla doesn't recognize that it is there. When I put SetEnv PROJECT outside of <VirtualHost> then it becomes the default for ALL my different virtual host instead of using what is inside the <VirtualHost> section.

Here is the NameVirtualHost section of my httpd.conf file

NameVirtualHost *:443

Alias /UIDPMO /etc/bugzilla-4.0

SSLEngine on
SSLCertificateFile /etc/pki/CA/certs/uidsupport.crt
SSLCertificateKeyFile /etc/pki/CA/private/uidsupport.key
SSLCACertificateFile /etc/ssl/certs/ca-bundle.crt

DocumentRoot /etc/bugzilla-4.0/
<Directory /etc/bugzilla-4.0/>
Options FollowSymLinks MultiViews ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
AddHandler cgi-script .cgi
Order allow,deny
Allow from all


ScriptAlias /cgi-bin/ /var/www/cgi-bin/
# using the default error log above
ServerSignature On

# See
# MS IE Bug with SSL
# SetEnvIf User-Agent ".*MSIE.*" \
# nokeepalive ssl-unclean-shutdown \
# downgrade-1.0 force-response-1.0

Alias /PDS /etc/bugzilla-4.0

If anyone can help that would be greatly appreciated.

Thank you in advance

PS: Here is what Bugzilla 4.0.1 guide says to do:

2.4. Multiple Bugzilla databases with a single installation
The previous instructions referred to a standard installation, with one unique Bugzilla database. However, you may want to host several distinct installations, without having several copies of the code. This is possible by using the PROJECT environment variable. When accessed, Bugzilla checks for the existence of this variable, and if present, uses its value to check for an alternative configuration file named localconfig.<PROJECT> in the same location as the default one (localconfig). It also checks for customized templates in a directory named <PROJECT> in the same location as the default one (template/<langcode>). By default this is template/en/default so PROJECT's templates would be located at template/en/PROJECT.

To set up an alternate installation, just export PROJECT=foo before running for the first time. It will result in a file called instead of localconfig. Edit this file as described above, with reference to a new database, and re-run to populate it. That's all.

Now you have to configure the web server to pass this environment variable when accessed via an alternate URL, such as virtual host for instance. The following is an example of how you could do it in Apache, other Webservers may differ. <VirtualHost>
SetEnv PROJECT foo
Alias /bugzilla /var/www/bugzilla

Don't forget to also export this variable before accessing Bugzilla by other means, such as cron tasks for instance.

UPDATE: Resolved

For anyone that fell into the same trap as I did. The Bugzilla guide neglects to tell you where to set the SetEnv PROJECT variable. It turns out that you need to add this variable in the /etc/httpd/conf.d/ssl.conf file under each virtual host section. So for me I did the follwoing


Save the file, restarted Apache and everything worked as expected. Although I did include the NameVirtualHost section in /etc/httpd/conf/httpd.conf I don't think it made a difference.

Last edited by boomer42812; 05-27-2011 at 01:53 PM.
Old 05-28-2011, 01:43 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297

Thanks for sharing what you've found. Off the Zero Reply List.

Kind regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ping from Vmware host to Virtual Box host greatcyrus Linux - Virtualization and Cloud 7 03-09-2011 03:03 AM
debian lenny - all virtual hosts lead to first virtual host rantastic Linux - Server 2 04-21-2010 10:32 PM
apache server not recognizing virtual host Fedora 12 daudiam Linux - Server 10 04-19-2010 10:28 AM
Linux virtual machine not recognizing memory scottyp55 Red Hat 8 01-12-2010 06:43 PM
[SOLVED] Apache2 - virtual host defaulting to default host slimjim Linux - Server 1 10-31-2009 02:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration