General :: Bugzilla 4.0 Not Recognizing SetEnv Variable For Virtual Host?

May 26, 2011

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
SetEnv PROJECT UIDPMO
<VirtualHost 140.188.65.31:443>

[code]....

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 checksetup.pl for the first time. It will result in a file called localconfig.foo instead of localconfig. Edit this file as described above, with reference to a new database, and re-run checksetup.pl 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 212.85.153.228:80>
ServerName foo.bar.baz
SetEnv PROJECT foo
Alias /bugzilla /var/www/bugzilla
</VirtualHost>

Don't forget to also export this variable before accessing Bugzilla by other means, such as cron tasks for instance. 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

<VirtualHost_default_443>
SetEnv PROJECT PDS

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.

View 1 Replies


ADVERTISEMENT

Fedora Servers :: Apache Not Recognizing Virtual Host 12?

Apr 17, 2010

I installed apache server on my Fedora 12. Its showing the test page 127.0.0.1, but when I give the address 97.168.234.76 (0r www.chaalu-kam.com), it tells that the requested url could not be retrieved.

I have made the following additions to the /etc/httpd/conf/httpd.conf file

Code:
NameVirtualHost 97.158.234.76
<VirtualHost 97.158.234.76>
ServerName www.chaalu-kam.com
DocumentRoot /var/www/html/

[Code]....

View 1 Replies View Related

Server :: Apache Server Not Recognizing Virtual Host Fedora 12

Apr 17, 2010

I installed apache server on my Fedora 12. Its showing the test page 127.0.0.1, but when I give the address 97.168.234.76 (0r www.chaalu-kam.com), it tells that the requested url could not be retrieved.

I have made the following additions to the /etc/httpd/conf/httpd.conf file

Code:

In addition to this, I have added this to my /etc/hosts file

Code:

I wanted to test the Apache server on my laptop only by putting an html file in /var/www/html and naming it as index.html. I want this index.html page to be displayed when I put www.chaalu-kam.com in my browser. What should I do? My firewall is off too

View 10 Replies View Related

Server :: Apache2 Virtual Host Defaulting To Default Host

Oct 30, 2009

Bit of an odd one, this. I've migrated a website from my old server to a new machine. Both servers run Ubuntu + Apache2. Both only serve a single site, apart from the default site.I've flipped the domain name to the new IP address.The trouble is that after moving the virtual host config over into sites-available, with the necessary link in sites-enabled, Apache attempts to serve from the default web root (/var/www) rather than the actual site content (in /var/www/technology). So for example, an attempt to browse.

View 1 Replies View Related

Ubuntu :: Virtual Box Is Not Recognizing Usb Printer

Mar 26, 2010

I am trying to make my Lexmark P4350 printer work so I downloaded Virtual Box on my laptop and installed Windows XP on it. This printer worked great with XP on another computer. I have done all the updates to XP and it seems to be working just fine but when I go to the printer set up, it is not showing up. I have tried it where I plug in the printer while Virtual Box is running, but it didn't seem to make any difference. When I plug the printer into the usb port, Ubunto starts searching for the drivers but the Virtual Box doesn't.

View 9 Replies View Related

Server :: Apache Virtual Host To Limit The Concurrent Connections Of Virtual Hosts?

Jul 3, 2009

apache virtual host to limit the concurrent connections of virtual hosts? Taking into account the host of each virtual user's home directory can also have more than one subdirectory, which should be restricted to a subdirectory. Is beyond the control of the operation of these sites in a subdirectory. Best local restrictions or limitations to the overall situation.

View 1 Replies View Related

Server :: Debian Lenny - All Virtual Hosts Lead To First Virtual Host

Apr 21, 2010

I'm having an issue with setting up the virtual hosts on my web server. I have 2 virtual hosts (example1.com, example2.com). example1.com works but example2.com is sent to the index file of example1.com. I did some searching on google and it seems the problem might be with my /etc/hosts file.

First virtual host that the second is also directed to...in sites-available/sites-enabled (note port 80 is blocked by my isp so I use 8080)

Code:

Second virtual host file

Code:

And my hosts file

Code:

# The following lines are desirable for IPv6 capable hosts

Also I'm using a dyndns.org...would that make a difference?

View 2 Replies View Related

Security :: Virtual Server To Access The Main Host Or Another Virtual Se

Jan 8, 2010

Is there anyway for one Virtual Server to access the main host, or another Virtual Server? Or would they be totally 100% independent?

View 5 Replies View Related

Server :: Create A Virtual Host And Virtual Ip In Proftpd Centos?

Nov 22, 2010

I want to create a virtual host and virtual ip in proftpd linux centos. can anyone please help me on this,I'm new in linux.

View 8 Replies View Related

Ubuntu :: Virtual Box Not Recognizing External Harddrives?

Jan 9, 2010

I am trying to accomplish the simple task of renaming my harddrives on Ubuntu, but the developers of Ubuntu decided that they didn't want anyone to have the ability of accomplishing such a simple task in an easy way!

I have been trying to get Gparted to work so I can rename my harddrives, but it doesn't want to work. (What a surprise!) So I decided it might be easier to simply install virtualbox and rename the harddrives through the virtual Windows system. The only problem is that Virtualbox won't recognize the harddrives, so I can't bloody well rename them!

View 3 Replies View Related

Red Hat :: System Virtual Machine Not Recognizing Memory / Something Else I Need To Do?

Jan 7, 2010

I have a Red Hat 5.3 virtual machine that has 3GB memory. I just upgraded the memory to 4GB, however when I run free -m it still only recognizes 3GB. Is there something else I need to do?

View 8 Replies View Related

General :: Ssh From Virtual Machine To Main Host?

Mar 17, 2011

ok how do you add a rule which allows a virtual machine to connectto ssh on the main fedora host?so connecting from a virtual machine to the main fedora host installation? I think i have to use an iptables command but not really sure

View 3 Replies View Related

General :: How To SSH Into Red Hat System (virtual Box Guest) From Windows 7 (host)

Nov 11, 2010

I have RHEL running in Virtual Box and my native OS is Win 7. From a purely educational standpoint, I want to be able to access RHEL from Win 7 over SSH. I download putty but don;t know how to make it do what I want. Ideally, I would like to use the linux command prompt at a minimum and preferably access the GUI apps also. IS this possible? I am just trying to explore and expand my linux knowledge.

View 7 Replies View Related

General :: Apache Virtual Host Document Root ?

Sep 9, 2009

I'm now configuring my web server to server different Virtual Hosts based on DNS name. Right now I store my files in /var/www per the default installation settings in Apache.

Questions:
I want to change the Document Root to /home/username/public_html/example1.dyndns.org for the second virtual server. What do the permissions need to be in order for Apache to read the files in this location? Would it be best to force Apache to run as this new username instead of www-data?

My Virtual host setup will look something like this

I want to change the DocumentRoot as I am running a chrooted ProFTPd server and want to be able to update webserver files via FTP. I am running Ubuntu 8.04 LTS Server (CLI only).

View 5 Replies View Related

General :: How To Apache Identify For Which Virtual Host The Request Has Come

Jan 22, 2011

I'm having some basic doubt! Consider 5 virtual domains has configured under a same server. I mean 5 different domains under same IP. Eg. mydomain1.com and mydomain2.com have IP 208.27.1.89. So when web browser request for mydomain1.com name server return IP address 208.27.1.89. Then browser contact IP 208.27.1.89 on port 80. Here comes my question how does apache know that the browser is looking for mydomain1.com not mydomain2.com. How apache differentiate the request for it's virtual hosts? By the way, what is a virtualhost ?

View 1 Replies View Related

General :: Select PHP Handler Module Per Virtual Host?

Oct 20, 2010

I would really like to install 2 or 3 PHP handler modules (suEXEC, FastCGI, etc) on a single server and assign which module should be used per virtual host or domain or whatever.

Is this possible?!
Could I get details?

View 1 Replies View Related

General :: Virtual Machine - Connect To Guest From Host PC Using Putty?

Feb 6, 2010

How can I connect to Linux (which is in a VM) from the host PC using putty? I can ping the 192.168.1.108 from my host PC. And there is sshd process running on Linux. I choose the SSH to connect, but gives error.

View 5 Replies View Related

General :: Forward Port For IP-Based Virtual Host To Work?

Mar 22, 2010

Having trouble visualising how IP-Based Virtual Host (with SSL) would work. Here is my vhosts.conf file:

Code:
#Define Name Virtal Host
NameVirtualHost 10.10.0.54:80
#Used to replace the main server host. The log file will reside in /var/log/httpd/error_log

[Code]....

How will it work? I will need to forward port 443 to the 10.10.0.55 interface right? Without doing that, there is no way this is going to work... is there? And that means that I can't run more than 1 ip-based SSL virtual host on one machine because I can't forward 443 to two different interfaces.

Also, do I use internal ip address or external ip address in the <VirtualHost > tag? I only have one static public ip.

View 5 Replies View Related

General :: Virtual Machines And Dual Monitors With A Windows 7 Host And Guest?

Oct 4, 2010

I'm looking for virtual machine software that supports dual monitors on a Linux guest with a Windows 7 host.VirtualBox supports dual monitors only for Windows guests. VMware Player was extremely slow, so I gave up. I'm not sure it supports dual monitors, anyway. Can anyone recommend a product for what I want to do?

View 1 Replies View Related

General :: Deploy Windows Server 2008 R2 In Virtual Machine On Host?

Jul 27, 2011

Will there be any issues installing and then subsequently running a Microsoft Windows Server 2008 R2 installation on a VirtualBox VM on a Linux host (Ubuntu 11.04 64-bit)? I require Windows Server 2008 R2 for a course I'm taking, and I dont have any systems to install/deploy it onto.

Host Machine Specs:

Ubuntu 11.04 64-bit
4GB RAM
350GB Disk Space
Nvidia Quadro system

View 2 Replies View Related

General :: Bash Script To Automate The Virtual Host Creation Process?

Mar 14, 2011

This is my sample code in /etc/httpd/conf.d/applications.conf file currently we are creating subdomain mannually for every new subdomain. I want to automate this process througs bash script , how its possible.

Code:

<VirtualHost *:80>
ServerName google.com
ServerAlias google.com

[code]....

In this code which i marked BOLD that content only we'l change for every subdomain. while manually doing this most of the times errors are coming to avoid that i need to automate this process.

View 3 Replies View Related

General :: Httpd Virtual Host Set To Mount To Samba Share Folder?

Dec 23, 2010

The scenario like this. I'm working on Ubuntu 10.10. I've enable samba sharing with full guest access enable. In my office I had another server (CentOS 5.5) installed just for me and I've created a Apache VirtualHost which root document pointed to share folder on my comp

This is my fstab setting
//my ubuntu computer name/sharing/www /media/www cifs context=system_ubject_r:httpd_sys_content_t:s0,username=username,password=******,iocharset=utf8,fi le_mode=0777,dir_mode=0777 0 0

After label the mount folder as httpd_sys_content_t the Apache web server working in correct way (duno much but at least it can index files and excute some php code so) then the troll come in : if some file was created by my ubuntu (personal comp) then the file would be listed in Apache virtualhost correctly.

But if I'm ssh to CentOS server goto /media/www which was mounted to my unbuntu computer. Then type command like $mkdir something Suprising that folder ./something could not be accessed by Apache anymore except I remount by umount and mount it again or "setenforce 0" What is wrong with my system can anyone point me out of this headache

View 1 Replies View Related

Software :: Program "giver" Recognizing The Virtual Machines?

Jun 18, 2010

if anyone can send me in the proper direction for this question, I would be grateful. I installed the newest Linux mint on the newest version of virtual box. I'm have trouble with program "giver" recognizing the virtual machines. I'm not sure if it has to do with the fact that, its using my mac's ip addresses or not. i have 2 other Linux mints installed on two other pc's on the same local network, and they recognize each other just fine. so my question is, does a virtual machine have to have its own ip address for program "giver" to recognize each other? maybe i have to change the network driver on vbox, but every time i do, i lose connection. at the moment, my network driver is set to NAT.

View 2 Replies View Related

General :: Can't Access Virtual "inet Addr" From Host

Mar 20, 2011

I created a Virtual WebServer (I used CentOS as guest) by using VirtualBox to test my website. When I typed "/sbin/ifconfig" to get "inet addr" it showed 192.168.56.101. I used a web browser from my host (Fedora 14 GNOME) to access 192.168.56.101. It was good, It displayed "Apache 2 Test Page". But I accessed 192.168.56.101/mysite it redirected to 127.0.0.1/mysite and showed error page.

View 1 Replies View Related

General :: How To Configure Serial Port Of Virtual Machine With Host Machine?

Jul 29, 2009

I successfully installed the virtual box on my fedora 8 system, and also created a virtual machine with windows xp OS, it works nicely, I try to configure the serial port of my virtual machine and try to configure the path for the port "screen shot are attached" it gives me the error message also the "screen shot are attached" for your review.Is kind of mistake is going on during the path setting, and how to set the path for configuring the serial port of my virtual machine so that I can use the hyper terminal tool of windows.

View 4 Replies View Related

General :: Run Windows Virtual Machines On A Windows Or Host?

Jul 7, 2011

I have currently have a PC with 16GB of RAM. I will be running multiple virtual machines using VirtualBox. Would I get the best performance from running the VMs on a Linux host, or a Windows host?

View 4 Replies View Related

General :: Cannot Ping From Host (RHEL 6) To RHEL 5 In (virtual)?

May 1, 2011

can not ping from host (RHEL 6) to RHEL 5 in (virtual)? I have stopped iptables on both machines. But still not able to ping from host machine to virtual.

View 1 Replies View Related

General :: Install Bugzilla On Centos 5.5?

Feb 23, 2011

installing Bugzilla on CentOS 5.5 step by step? I want to learn how to install on my own pc, cause I will have to install it later on this semester for my professor.

View 2 Replies View Related

Fedora :: Installing Virtual Box On 12 As Host O/S

Dec 29, 2009

installing Virtual Box on Fedora 12 (host O/S)? I need to install Fedora 12 then Virtual Box, then any other OSes as VMs? A list of available VMs under Fedora 12 / Virtual Box would be nice as well with any helpful hints on installing these VMs.

View 1 Replies View Related

Fedora :: Installing Virtual Box On 12 - Host O/S

Dec 30, 2009

Anyone have any guides to installing Virtual Box on Fedora 12 (host O/S)? I need to install Fedora 12 then Virtual Box, then any other OSes as VMs? A list of available VMs under Fedora 12 / Virtual Box would be nice as well with any helpful hints on installing these VMs.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved