Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a web site on port 8500

Status
Not open for further replies.

stevegauci

IS-IT--Management
Dec 9, 2002
4
0
0
AU
We have recently installed ColdFusion MX Server on a Windows SBS 2000 server. We selected to install the ColdFusion built-in web server that runs on port 8500. The installation was successful and the ColdFusion Administrator page opens fine although when hosting a page on the server we are required to enter the web address with the :8500 port address, for example; Is this because we are required to integrate it with IIS somehow? If we leave out the :8500 we get an "Internal Server Error" in the web browser. Have we missed out a step during the installation phase? We currently have our company website running as the default web site in IIS on port 80.
 
The default port number for HTTP is 80. This means that if you don't specify the port number, your browser assumes that you want to use port 80. This is the correct behavior. Your web server can be configured to use any port number (although you should not configure it to use a port that is used by something else). In this case, the built-in web server was automatically configured to run on port 8500. When you want your browser to connect to port 8500, you MUST specify it in the URL like this: <protocol>//:<domainname>[:port][/path]. (Elements in angle brackets are required, elements in in square brackets are optional.)

Every URL in your application must specify the port number. The best way to do this is to create a variable in application.cfm that contains the first part of the URL:

<cfset URLprefix = &quot;
then use it in all the URLs in your application:

<form action=&quot;#URLprefix#/mytemplate.cfm&quot; method=&quot;post&quot;>

When you finally release your application to run on port 80, you only need to change the value of URLprefix in application.cfm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top