Erick's Blog
  • Home
  • Blog
  • Apps
    • Mortgage Calculator
  • PowerShell
    • Blog & Examples
    • Excel Reference
  • Windchill
    • Document Exporter
    • Document Worker
    • E.P.L.E.S.
    • Export Released
    • Property Checker
    • Windchill Business Analytics >
      • Part 01 - Program Logic
      • Part 02 - Getting Data with SQL Queries
      • Part 03 - Automating SQL Queries
      • Part 04 - Converting SQL Results to XML
      • Part 05 - Data Processing and Manipulation
      • Part 06 - Displaying XML in HTML
      • Part 07 - Auto Updating Displayed Data
      • Part 08 - Hosting Webpage with an Existing Apache Installation
      • Part 09 - Running Multiple Queries In Sequence
      • Part 10 - Calculating Data Trends
      • Part 11 - Making It Modular
    • Windchill Quick View
  • Reviews
  • Music
  • Contact

Windchill Business Analytics: Programming Journal


Part 08: Hosting Webpage with an Existing Apache Installation

Last Updated: August 22, 2016
My basic program loop is complete.  I need to provide an easy way for users to access it.  Since the part a user accesses in a html file, I simply need to host that file with a web server.  Windchill already has an installation of Apache and I don't want to have to configure a separate web server.  I will use the existing Apache installation to host the page with a Virtual Host on a separate port number.

I will first place the html file in a folder meant to store the site and rename the html file to index.html.  It is important to rename to index.html such that Apache knows by default to show that page when a user tries to access the URL.
Picture
W.B.A. index.html Location
In Windchill, the virtual hosts file is located here: E:\ptc\Windchill\HTTPServer\conf\extra\​httpd-vhosts.conf
I will edit this file to point to the correct port (default is 80 so make sure to use a different one).  The location of the logs and site are also set here.

Picture
W.B.A. Apache Virtual Host Settings
Now either start Apache if it is not running or restart it if it already is and test.  You need to add the port number to the end of the URL like so: www.pdm10.mydomain.com:8080
Picture
W.B.A. Hosted Site
The test works and the page is accessible to other users (opening of firewall port 8080 is implied here).  At this point, it is time to work on the user interface and further functionality.  Having it hosted already makes it easy to test and roll out changes.

Previous: Auto Updating Displayed Data
W.B.A. â€‹Home
Next: Running multiple queries in sequence
Copyright © 2018 Erick Johnson
  • Home
  • Blog
  • Apps
    • Mortgage Calculator
  • PowerShell
    • Blog & Examples
    • Excel Reference
  • Windchill
    • Document Exporter
    • Document Worker
    • E.P.L.E.S.
    • Export Released
    • Property Checker
    • Windchill Business Analytics >
      • Part 01 - Program Logic
      • Part 02 - Getting Data with SQL Queries
      • Part 03 - Automating SQL Queries
      • Part 04 - Converting SQL Results to XML
      • Part 05 - Data Processing and Manipulation
      • Part 06 - Displaying XML in HTML
      • Part 07 - Auto Updating Displayed Data
      • Part 08 - Hosting Webpage with an Existing Apache Installation
      • Part 09 - Running Multiple Queries In Sequence
      • Part 10 - Calculating Data Trends
      • Part 11 - Making It Modular
    • Windchill Quick View
  • Reviews
  • Music
  • Contact