Configuring Apache HTTPD Service
A Virtual Directory (alias) needs to be configured in the Apache Web Server.
Alias | Physical Path | Content |
---|---|---|
HTML5 | <install_directory>/html5 | Root folder for JAVRA IDE-Files HTML5 application. |
Note: The default port for HTTPD server is 80 unless otherwise specified in the configuration file. Hence this port must be accessible from the client system in order to run the xfiles application.
For deployment using the AppServer through the AppInterface Servlet, following additional configurations must be done:
In order to set an application name, Add an alias with a desired name (‘xe70′ in the example below) in your httpd configuration to point to the following location: <install_directory>utils/html5
Example of adding alias on Windows: Alias /xe70 "/home/proj/xe70/utils/html5/" <Directory "/home/proj/xe70/utils/html5/"> AllowOverride all Options None Order allow,deny Allow from all </Directory>
Example of adding alias on Linux: Alias /xe70 "/home/proj/xe70/utils/html5/" <Directory "/home/proj/xe70/utils/html5/"> AllowOverride all Options None Order allow,deny Allow from all Header set Access-Control-Allow-Origin "\*" </Directory>
Enable the so and mod_proxy_http.so modules.
Enable mod_deflate.so which allows output from your server to be compressed before being sent to the client over the network.
Add the following configurations for Reverse proxy bypass to TomCat Server
ProxyPreseverHost on
ProxyPass /AppInterface http://127.0.0.1:8080/AppInterface/
ProxyPassReverse /AppInterface http://127.0.0.1:8080/AppInterface/
AddOutputFilterByType DEFLATE text/plain text/xml text/css text/javascript application/javascript application/x-javarscript application/json
Note: In the above configuration script, 8080 refers to the TomCat Server port number. If different port number is used for TomCat, then that port number must be specified instead of 8080.