article

Paul Toone avatar image
1 Like"
Paul Toone posted Iago MF commented

FlexSim Web Server Proxied with Apache

FlexSim's Webserver is a query-driven manager and communication interface for FlexSim. It allows you to run FlexSim models through a web browser like Google Chrome, FireFox, Internet Explorer, etc. Since the FlexSim Web Server is a basic service to allow FlexSim to be served to a browser, you may decide you want a way to proxy to this service through a full service web server that you can control security and authentication through.

This guide will walk you through proxying to the FlexSim Web Server through Apache web server.


Install the FlexSim Web Server Program

  • Download and install the FlexSim Web Server from https://account.flexsim.com
  • Edit C:\Program Files (x86)\FlexSim Web Server\flexsim webserver configuration.txt
  • Change the port from 80 to 8080
  • Start the FlexSim Web Server by double clicking flexsimserver.bat
  • Test the server by going to http://127.0.01:8080
  • It should look like this:

apache73074-1693237892815.png



Install Apache Web Server for Windows

  • Extract the httpd-<version>.zip file you have downloaded
  • Go into the httpd-<version> folder you have extracted and copy the Apache24 (or Apache25) folder to C:\

Install Apache Dependencies

Configure Apache


Run Apache Web Server

In a file explorer or CMD line prompt, browse to the C:\Apache24\bin folder and run httpd.exe


Now that you have the FlexSim Web Server proxied through Apache, you may decide you want to configure Apache to handle security, authentication and customization. Since this is out of the scope of this guide, you can find details on the Internet that can guide you to setting these customizations up.

A few resources you may consider:

webserverflexsim webserver
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Iago MF avatar image Iago MF commented ·

Hi @Paul Toone

With this method, can we configure which models each access account can see?

Thanks in advance!

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Iago MF commented ·

@Iago MF No I don't think so. A proxy just forwards the requests through to the FlexSim Webserver and then back to the client.

If you set up a couple machines with FlexSim Webservers and then proxy them through Apache, you could give access to one of the servers based on a login. That way you can have different user groups with access to the models on each machine.

Other than that you would have to modify the JS code of the FlexSim Webserver to get the functionality you would like.

0 Likes 0 ·
Iago MF avatar image Iago MF Jacob Gillespie ♦ commented ·

Thanks Jacob!

0 Likes 0 ·

Article

Contributors

paul.t contributed to this article