Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

"Hello World"??

New Here ,
May 17, 2006 May 17, 2006
Hi,

A very basic question. How can a user develop cfm pages that can be accessed from the outside world. Why is it that the sample applications are only accessible from localhost? Also, a sample cfm page works perfectly well when I put it in the 'administrator' directory, but not in any other directory. In fact, it seems the only thing accessible from remote host is administrative pages.

Any clarifications would be greatly appreciated.

Thanks,
Paul
TOPICS
Getting started
540
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 17, 2006 May 17, 2006
You probably have the Developer version of ColdFusion.
This version allows you to build websites on your PC and generally
play around and experiment with the language.
But if you want to your work to be accessible to the "outside world"
you need to upload your site to a webhost set up for hosting ColdFusion
sites (eg CrystalTech)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 17, 2006 May 17, 2006
Couple of questions. Did you install ColdFusion with the built-in webserver or set it up to use another webserver like IIS or Apache?

What directory are you putting the files in that you can't access? What type of message do you get?

The developer version allows access from localhost and 2 outside IP's. If you need more than that you will need to find run a full version of CF or use a hosting provider.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 17, 2006 May 17, 2006
Hi,

I have Coldfusion MX7 set-up with Apache.

I am trying to access the sample applications like gettingstarted, tutorial etc:-. None of these can be accessed from a remote host. I can access all of them from localhost. The only cfm pages accessible from remote hosts are the admin pages (i.e. the pages in the 'administrator' directory). I also wrote a simple cfm file to read CGI env. variables and read from a database. If accessing from localhost, this file returns correct output from any directory. If from accessing from remote hosts, it can be accessed only if placed within the 'administrator' directory.

When accessing from remote hosts, the error msg I get is the following:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Oops. Sorry for the error.

One of several things could be happening:

* You're trying to execute a ColdFusion page with a URL other than the localhost or 127.0.0.1, or

* You haven't installed ColdFusion example applications or documentation.

If you tried to execute a ColdFusion page, you just need to:

* Execute example applications and ColdFusion utilities locally, using the localhost URL or 127.0.0.1, or,

* If the pages you want to execute are not present, rerun the ColdFusion installer to install the example applications or documentation. Code examples that you can run from the CFML Language Reference are installed along with the example applications.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please help.

Thanks,
Paul
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 17, 2006 May 17, 2006
With Apache you have to create a Virtual Host for the folder you want to serve file from.

You need to open up your httpd.conf file, which can be found in C:\Program Files\Apache Group\Apache2\conf or something similar:-

Then add the following and restart apache:-

<VirtualHost *:[portNumber]>
DocumentRoot c:\path\to\your\websites

<Directory />
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Then you can access from http://127.0.0.1:[portNumber you will also have to add another Listen for the port you have selected search for Listen in httpd.conf and add Listen [portNumber].

Just in case you wondered [portNumber] has to be a number and a free port on your machine.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2006 May 19, 2006
LATEST
Hi,

I forgot to mention that I am running Coldfusion on Apache on REDHAT AS 4 Update 2. The previous reply to this post may have misunderstood my problem - which I will try to summarize here:

1. All cfm files in the CFIDE/administrator folder are accessible from both localhost and remote hosts.
2. Other cfm files like examples and tutorials (which are not in the administrator folder) are not accessible from remote hosts. Infact, the only stuff accessible from remote browser are the cfm pages in CFIDE/administrator
3. An example cfm file written by me (simple DB operations) can be accessed from a remote machine if placed in CFIDE/administrator. On the other hand, if it is placed in ANY other folder in CFIDE it cannot be accessed.

(Note: CFIDE folder is found under the web root folder apache/htdocs)

I hope someone would help me clarify these issues.

Thanks,
Paul
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources