It works

I’ve installed Ubuntu Server 10.4.1 LTS 32 bit on VBox.  I couldn’t get it to work before since it doesn’t allow me to use bridge networking since I don’t have LAN setup with me.  There’s no other choice as of the moment but to use NAT (Network Address Translation) so that services in the guest OS will be accessed by the host OS.

Now, there’s this handy little thing in the latest VBox 4 release called Port Forwarding.  I’ve configured it to forward port 8080 from host, to the guest at 80.  Accessed it, and the response was: It Works! (Apache HTTPD usual response)

Cheers!

Advertisements

Specifying Tomcat ports in IntelliJ IDEA to use multiple tomcat servers

Source from: http://www.altuure.com/2008/11/12/tomcat-port-configuration/

Edit the server.xml:

<Server port="${tomcat.init.port}1" shutdown="SHUTDOWN">

<Service name="Catalina">
<Connector port="${tomcat.init.port}2" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="${tomcat.init.port}3"/>
<Connector port="${tomcat.init.port}3" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"/>
<Connector port="${tomcat.init.port}4" protocol="AJP/1.3" redirectPort="${tomcat.init.port}3"/>

</Service>
</Server>

Run it like this:

CATALINA_OPTS=-Dtomcat.init.port=908
 ./startup.sh

so you will have

SHUTDOWN:9081
 HTTP:9082
 HTTPS:9083
 AJP:9084