Configure port for merge in Google Compute engine

I installed Confluence on an instance of the Engine Compute Engine. The following is the configuration file for the server.

<Server port="8000" shutdown="SHUTDOWN" debug="0"> <Service name="Tomcat-Standalone"> <Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="200" minSpareThreads="10" enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" /> <Engine name="Standalone" defaultHost="localhost" debug="0"> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"> <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"> <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-$ <Manager pathname="" /> </Context> </Host> </Engine> 

But I can not access web gui when I type

 http://<IP_address>:<port_number> 

I also tried redirecting using iptable.

 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090 
+2
source share
1 answer
  • Go to the Google Cloud Console
  • Click on your project.
  • Go to Compute -> Compute Engine -> Networks
  • Create a new firewall rule with the source IP range from anywhere (0.0.0.0/0) for the "Confluence" target tags and your desired port and protocol.

enter image description here

  • Go to Compute -> Compute Engine -> VM Instances
  • select your instance and add the tag "Confluence"
+5
source

Source: https://habr.com/ru/post/1214361/


All Articles