This week's book giveaway is in the NodeJS forum. We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line! See this thread for details.
I have a little application which listens on 127.0.0.1:8080.
This application works like a charm - it is a REST service with a very simple html form. The html form sends an ajax request to the rest service.
When i debug this application, it works as expected.
When i put this application to my server, it does not work.
This is the output of the spring application when i click the submit button of my html form.
the html piece is this:
Anyone an idea what goes wrong here? Do i have to somehow configure the embedded tomcat in my spring application to allow POST requests?
If required i can also upload the piece of configuration of my apache server (the reverse proxy part), but i guess it has nothing to do with the problem i encounter... i guess
I am trying to replicate your app, could you share the whole code, please?
I prefer to focus on the impossible, because about the possible we already know too much.
posted 3 days ago
This problem has been solved. I use now a complete subdomain for this part and it seems to work.
Currently struggling on another problem, the matrixregistration.config file is not found in the classpath.
If you still want to take a look at - feedback is very appreciated!
Considering that it works when you debug, there must be something wrong on the server. It says specially that POST is not supported so it's probably not a problem with your app but some configuration in your server.
I guess this is the common way to configure that: 1 app -> 1 subdomain.
This application is running on localhost:8080, the apache running on that production server runs on :80 and :443, firewall blocks everything else.
When a request comes in at matrix.myhost.de, all requests are redirected to localhost:8080 to that application.
I thought (and thats probably the mistake), that i somehow can get that working without creating an extra subdomain. So if myhost.de/register is accessed, i can somehow make the index.html work that all requests corresponding to this one event (registration) are forwarded. But seems like thats impossible. Or i am not advanced enough. So i created a new subdomain, matrix.myhost.de - all requests to this complete domain are now forwarded to the application, thats how it works now.