Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Apache web server redirect #1760

tms_sooraj ·
Hi,

I have my QB instance running on the server port 10202. The URL looks like http://build on their browser and access QB.

In the previous QB version 1.2.13, we have done the web server configuration in <QB_install_dir>\tomcat\conf\server.xml. However, in QB 4.0.28, we're not sure of the location to make the web server configuration, so that the URL redirect can happen.

Please let us know.

FYI - We referred to this link http://wiki.pmease.com/display/QB40/Run ... ind+Apache
  • replies 5
  • views 1877
  • stars 0
robinshen ADMIN ·
QB4 runs behind apache via the reverse proxy mechanism and nothing needs to be configured at QB side for this to take effect, just set up your Apache httpd configuration file to include below:
<VirtualHost *:80>
# if you are configuring reverse proxy with https enabled, make sure to prepend the ServerName
# directive with "https://" schema, for example: https://build.example.com:443
ServerName build.example.com

ProxyRequests Off

# turn off this option. We will rely on ProxyPassReverse to translate
# urls in Http response headers.
ProxyPreserveHost Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://vctmspweb16:10202/
ProxyPassReverse / http://vctmspweb16:10202/

<Location />
Order allow,deny
Allow from all
</Location>

ErrorLog /var/log/apache2/quickbuild-error.log
CustomLog /var/log/apache2/quickbuild-access.log combined
LogLevel warn
</VirtualHost>
tms_sooraj ·
Where do I find the httpd.conf file on the server? The server which is hosting QB doesn't seem to have this file.
robinshen ADMIN ·
You will need to install the Apache web server separately: http://httpd.apache.org/
tms_sooraj ·
Thanks. One doubt: My server currently does not have Apache web server or IIS server. How does the QB URL come up and I access the web page? Isn't there a built in web server, that comes with QB4 package (as it used to come in QB1 package)? We were thinking of placing the redirect request on this web server.
robinshen ADMIN ·
Both QB1 and QB4 ships with a web server, so you will be able to access QB directly via http protocol. You may edit "conf/node.properties" to have QB running on port 80, and then you will be able to access QB via url "http://<QB server name>". However if you would like to access QB server with a different host name, you either need to change host name of the QB machine or run a Apache web server on desired host and use reverse proxy to redirect the traffic to the actual QB server.