local web server error with page jsp

0

I have set up a public web server in my house (I opened port 80 of my router and directed it to my computer) simply to test projects until then everything is normal, the problem is that I am using apache and it does not support JSP pages, what I'm doing in JSP I've been testing with GlassFish but this does not help me to test it in a network outside of mine.

What should I do? change the port of GlassFish through port 80, which is what I have open on my router?

By the way, I use Debian in case there is an alternative

    
asked by Juan Ar 27.05.2018 в 22:39
source

2 answers

0

To change Glassfish to run on port 80 you need to do the following:

  • Connect to the administration interface (by default in the port     4848)
  • In the menu on the left go to "Configurations"
  • After selecting the appropriate configuration, eg. "server-config"
  • Then go to "Network Config"
  • Then go to "Network Listeners"
  • Select the corresponding "listener", probably "http-listener"
  • Change the "Port" value to 80
  • Record and restart the Glassfish server
  • This should allow you to access the server on port 80, without having to make changes to your application.

        
    answered by 25.08.2018 в 05:54
    0

    All routers have the option of redirecting an external port to an internal port, which does not have to be the same. That is, you can configure the external port of your public IP in 80, so that when someone goes to that IP and port, go to your private IP (your computer's) to the port where GlasFish is running, which is usually the 8080. Another thing is that you have a fixed IP, or a dynamic DNS.

    Example: Your public IP is 1.1.1.1, because you redirect port 80, to your private IP, 192.168.1.1 but to port 8080.

    How to do it depends on the router, but it's usually quite easy.

        
    answered by 27.08.2018 в 21:22