Apache2 reverse proxy for Wildfly 10 web applications

Introduction

An Apache2 reverse proxy can be used if administrators do not want to connect certain backend servers directly to the internet. First of all let me introduce you to the topic on a very basic level.

There are several reasons to use a Apache2 reverse proxy:

  • Configure SSL certificates only on the public webserver
  • Only need to allow firewall access for one server to the public

Hence this is a nice setup, I recently spent hours to find the right configuration. I wanted to use Apache2 as reverse proxy for a standalone Wildfly 10 web application. The goal was to use a subdomain for one specific Java EE application on Wildfly.

In my installation Wildfly is listening on 127.0.0.1:8090.

How to configure the Apache2 reverse proxy

The example shown below shows how to map the subdomain public.example.de on the Wildfly Webapp to the path http://localhost:8090/MyApp/:

ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8090/MyApp/
ProxyPassReverse / http://public.example.de:80/MyApp/
ProxyPassReverseCookieDomain 127.0.0.1 public.example.de
ProxyPassReverseCookiePath /MyApp /

Most noteworthy in the example above is the port 80 in the ProxyPassReverse rule. I found out that redirects sent from wildfly specifically address port 80. If this port is not used, redirects sent from the server are not processed correctly.

This was not mentioned in all articles I could find addressing this topic, regardless what backend server was used in the setup.

I hope this will help others as well.

Kind regards

Oliver

Xerox XM3-19W driver download using Windows 7/8 will cause problems

If you try to find drivers for the display Xerox XM3-19W for Windows 7 or Windows 8 using google (I searched “xerox xm3-19w driver”) you mostly will find adware and spyware from different sources. None of the sites I found had something useful to offer. Xerox does not provide any drivers as well.

I have another solution for you that will work if you use a Nvidia graphic card. I think system tools of other graphic card providers can help as well, but I tested it only with the nvidia system control center.

You can use the display with current Windows versions following the steps below. Unfortunatley the software uses german language and I could find no option to set english as default. I think you will nevertheless find the options in your own language.

1. Open the nvidia system control center using the taskbar symbol:

open_nvidia_control_center

2. Select the task “Change resolution” in the task list on the left. The display Xerox XM3-19W will be shown as “analog display device”. None of the resolutions fits to the standard resolution of the display. You have to create your own settings. To do that click on the button “Modify” below the resolutions list.

nvidia_system_settings

3. The new dialog makes it possible to create a “user definded resoultion”. Create one by clicking on the button.

nvidia_modify_resolution

4. I tried different settings. The only that worked is shown below. The resolution is set to 1440×900 and the timing option “CVT – reduced blanking” has to be used. Test the settings using the button “Test”.

xm3_19w_settings

The display now should work as expected if you select this user defined resolution for the display. As you can see a Xerox XM3-19W driver download is not necessary.

Kind regards

Oliver

Invert two finger scrolling using Windows

Picture of a MacBook Pro. Invert two finger scrolling let Windows work like Mac OS X.

If you use Windows and Mac OS X on laptops you will know the feeling… When having worked some time on your Mac and then use the Windows machine it can drive you mad that the touchpad in Windows works differently than on your Mac.

The Windows philosophy is that the two finger gesture moves the scroll bars, so if you move your finger down the page scrolls down, too. On a Mac (or on touch devices) you move your fingers to move the content of the page, not the scrollbars. This is kind of intuitive, if you are used to it.

I cannot say which way is “better”, but I would like to use only one way on every computer. Because I spend more time using my Mac’s touchpad I decided to change my Bootcamp Windows behavior and invert two finger scrolling.

If you are interested too, you can find the best tip that I found here: http://www.howtogeek.com/57542/how-to-get-the-worst-os-x-lion-feature-in-windows-reverse-scrolling/

The title of this post is brilliant, and what they suggest to invert two finger scrolling works just fine!

Kind Regards,

Oliver