Project

General

Profile

Bug #4462

Redirection not working when accessing from another host

Added by Pau Garcia i Quiles about 7 years ago. Updated about 7 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
09/08/2015
Due date:
% Done:

0%

Estimated time:

Description

I received this as Debian bug #798332 but I'd say the problem lives in Wt itself, not in the packaging.

If you build the attached Wt application, it works fine if you access it from the same host where it runs.

But if you run the application in, say, a VM, and access it from another computer, what you'll see in your browser is a blank page. When you tell the browser to "View Source", you'll see the page is not empty: it's just the redirection failed. If you disable JavaScript, you'll get the Basic HTML version.

Steps to reproduce a working situation:

1. Build the attached application

  1. Start it on your local host
  2. Start a browser on your local host
  3. Access http://localhost:8080
  4. It works fine ("Hello" message displayed)

Steps to reproduce a faulty situation:

1. Build the attached application in a VM with IP address of, say, 192.168.1.100

  1. Start the application in the VM with no parameters (i. e. it will listen on 0.0.0.0:8080)
  2. Start a browser on your local host
  3. Access http://192.168.1.100:8080
  4. Blank page (if JavaScript enabled)

Files

CMakeLists.txt (122 Bytes) CMakeLists.txt Pau Garcia i Quiles, 09/08/2015 02:14 PM
main.cpp (962 Bytes) main.cpp Pau Garcia i Quiles, 09/08/2015 02:14 PM

Also available in: Atom PDF