Installation InstallerDocumentation MSTomcatWebServer - getrailo/railo GitHub Wiki

Documentation Home

Table of Contents

Utilizing Tomcat's Built-In Web Server

In some situations, it may be advantageous to remove Windows IIS and simply use Tomcat's built-in web server as the web server. This can eliminate bottle-necks for dynamic content and removes the need for double-configurations in each application.

Updating the server.xml File

On Windows, running Tomcat on port 80 (the standard web server port), is as simple as modifying the tomcat server.xml file. By default, the file is located at:

c:\railo\tomcat\conf\server.xml

You can also access the server.xml file directly from the Start Menu:

tomcat config

Once you've found the file, update this section:

<Connector port="8888" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

to this:

<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" />

tomcat host config notepad

Restart Tomcat

You can restart Tomcat a number of ways, but the most familiar way is probably through the services applet:

Stop Railo/Tomcat Service

Check the Port

Next check to make sure Tomcat is listening on port 80. You can check with a browser and just open "localhost", but if you want to be absolutely sure, you can open a powershell and run the following command:

netstat -abn -p tcp

and you should see that it's tomcat that's listening to TCP port 80:

tomcat port 80 powershell

Documentation Home

⚠️ **GitHub.com Fallback** ⚠️