I take that back…
localhost/websites/my_site/index.htm
localhost/websites/my_site/index.cfm
both generate 500.23 internal server errorsFrom: lucee@googlegroups.com [mailto:lucee@googlegroups.com] On Behalf Of Igal @ Lucee.org
Sent: Saturday, June 20, 2015 7:15 PM
To: lucee@googlegroups.com
Subject: Re: [Lucee] Virtual Dir in Railo/Lucee and IIS7
what happens when you go to localhost/websites/my_site/index.cfm ? does it work then or do you get the same issue?
Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 6/20/2015 5:08 PM, @pat_forbes wrote:
Thank you.
Re-iterating
Folder is “c:\inetpub\wwwroot\websites\my_site”
IIs7 Alias is “my_site”
localhost/my_site/index.htm WORKS
localhost/my_site/index.cfm FAILS
Any htm, txt, etc in my_site works,
any cfm fails
There has to be a setting somewhere that I am missing.
From: lucee@googlegroups.com [mailto:lucee@googlegroups.com] On Behalf Of Jon Clausen
Sent: Saturday, June 20, 2015 7:01 PM
To: lucee@googlegroups.com
Subject: Re: [Lucee] Virtual Dir in Railo/Lucee and IIS7
Oh, crud. You’re right Igal. Disregard, Pat, since you’re on Windows. I know there’s an alternate setting for this as a workaround for Windows, but I’m away from a computer at the moment. Let me check in a bit and get back to you, Pat.
[Note: Typo assistance courtesy of iPhone]
On Jun 20, 2015, at 7:42 PM, Igal @ Lucee.org <@Igal> wrote:
@Jon, this is from the Tomcat 7 docs:
https://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes
“NOTE: This flag MUST NOT be set to true on the Windows platform (or any other OS which does not have a case sensitive filesystem), as it will disable case sensitivity checks, allowing JSP source code disclosure, among other security problems.”
Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 6/20/2015 4:38 PM, Jon Clausen wrote:
No problem. Inside the Context tag:
https://tomcat.apache.org/tomcat-5.5-doc/config/context.html
[Note: Typo assistance courtesy of iPhone]
On Jun 20, 2015, at 7:35 PM, <@pat_forbes> <@pat_forbes> wrote:
I’m not seeing where this goes in context.xml
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
I’m really sorry for being able to get this.
-pat-
From: lucee@googlegroups.com [mailto:lucee@googlegroups.com] On Behalf Of Jon Clausen
Sent: Saturday, June 20, 2015 6:29 PM
To: lucee@googlegroups.com
Subject: Re: [Lucee] Virtual Dir in Railo/Lucee and IIS7
I think you need the “allowLinking” attribute in your Tomcat context config:
allowLinking=“true”
HTH,
Jon
[Note: Typo assistance courtesy of iPhone]
On Jun 20, 2015, at 7:19 PM, pat forbes <@pat_forbes> wrote:
btw: if i create a dummy.htm, a dummy.txt, and a dummy.cfm (all three the exact same with one line
you are in dummy
If I use
http://localhost/my_site/dummy.htm → it works
If I use
http://localhost/my_site/dummy.txt → it works
If I use
http://localhost/my_site/dummy.cfm → it fails with:
Message Page /my_site/dummy.cfm (c:\inetpub\wwwroot\my_site\dummy.cfm) not found.
On Saturday, June 20, 2015 at 6:14:49 PM UTC-5, pat forbes wrote:
Thank you for your reply.
Yep… I did type a lot. I wanted to make sure I explained it. Probably too wordy
I added the context path to the existing entry in server.xml like this:
<Host name="localhost" appBase="webapps">
<Context path="" docBase="C:\inetpub\wwwroot\" />
<Context path="/my_site" docBase="C:/inetpub/wwwroot/websites/my_site" />
</Host>
and then restarted Tomcat
but I get the exact same error:
It still shows
Railo 4.2.1.008 Error (missinginclude)
Message Page /my_site/index.cfm (c:\inetpub\wwwroot\my_site\index.cfm) not found.
It stll thinks my_site is a sub folder of c:\inetpub\wwwroot"
when its actually c:\inetpub\wwwroot\websites
-pat-
On Saturday, June 20, 2015 at 5:14:26 PM UTC-5, Igal wrote:
you managed to type quite a bit with bleeding fingers and swollen eyes, so TBH I didn’t read it all in detail, but…
looks to me like what you’re missing is a Context/path entry in Tomcat/conf/server.xml, so for the Host element of that site, you want to add something like:
<Context path="/my_site" docBase="C:/inetpub/wwwroot/websites/my_site" />
and restart Tomcat for the changes to take effect.
Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 6/20/2015 3:06 PM, pat forbes wrote:
I am really sorry, but I’ve about goggled myself to death, my eyes are swollen, and my fingers are bleeding.
I have tried this with Lucee and now Railo 4.2.1.008 (windows 2008 and IIS7)
To add a “virtual directory” in IIS7, all that’s needed is to:
- Right click the “Default Web site”,
- Select the “Add Virtual Directory”,
- Put the name in the Alias field (ie, “my_site”)
- Add the Physical Path (C:\inetpub\wwwroot\websites\my_site)
and bada bing, it’s done… ready to be used.
I can go to http://localhost/my_site/index.htm and it displays fine
But if I put a cfm file in that folder and go to http://localhost/my_site/index.cfm, using .cfm instead of .htm) I get an error:
Railo 4.2.1.008 Error (missinginclude)
Message Page /my_site/index.cfm (c:\inetpub\wwwroot\my_site\index.cfm) not found.
That is is NOT where the file is… it should have been:
C:\inetpub\wwwroot\websites\my_site\index.cfm
It should have said: c:\inetpub\wwwroot\my_site\index.cfm
It appears that Railo/Lucee is not using the same virtual dir that was setup in IIS7.
Railo/Lucee thinks the vittual dir is c:\inetpub\wwwroot\my_site
and IIS7 thinks it is C:\inetpub\wwwroot\websites\my_site (where it actually is)
If I put ANY htm file in C:\inetpub\wwwroot\websites\my_site, it will display with localhost/my_site/filename.htm
But if I put ANY cfm file in C:\inetpub\wwwroot\websites\my_site, and try to use localhost/my_site/filename.cfm I’ll get the error.
btw: If I move the folder to C:\inetpub\wwwroot\my_site and set the Physical Path (C:\inetpub\wwwroot\my_site) everything works.
I just don’t understand why a cfm file will not display if it’s in a sub directory (ie c:\inetpub\wwwroot\websites)
It’s like IIS7 handles the alias ok, but Railo/Lucee needs another setting so that it maps to the correct folder.
What am missing?
btw: I’ve been coding CFML since it was version .9 (yep, point 9)
-pat-
–
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/cbc06aca-7ad9-44bb-8d2e-428e682fdd2b%40googlegroups.com https://groups.google.com/d/msgid/lucee/cbc06aca-7ad9-44bb-8d2e-428e682fdd2b%40googlegroups.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/0e90d4f0-b01c-47af-841e-4ee6e4243d92%40googlegroups.com https://groups.google.com/d/msgid/lucee/0e90d4f0-b01c-47af-841e-4ee6e4243d92%40googlegroups.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to a topic in the Google Groups “Lucee” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/0bQpWRQLiFY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/08875A21-B43E-4D32-9F2B-C7CD9E01D3A8%40silowebworks.com https://groups.google.com/d/msgid/lucee/08875A21-B43E-4D32-9F2B-C7CD9E01D3A8%40silowebworks.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/002f01d0abb1%24ca972ad0%245fc58070%24%40westhold.com https://groups.google.com/d/msgid/lucee/002f01d0abb1%24ca972ad0%245fc58070%24%40westhold.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/3D1D845D-0F7F-4D69-8BBF-80269E59C7BF%40silowebworks.com https://groups.google.com/d/msgid/lucee/3D1D845D-0F7F-4D69-8BBF-80269E59C7BF%40silowebworks.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/5585FA4C.6090406%40lucee.org https://groups.google.com/d/msgid/lucee/5585FA4C.6090406%40lucee.org?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to a topic in the Google Groups “Lucee” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/0bQpWRQLiFY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/EED41C88-3824-4CF2-AD91-1D0EBA183CEB%40silowebworks.com https://groups.google.com/d/msgid/lucee/EED41C88-3824-4CF2-AD91-1D0EBA183CEB%40silowebworks.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/004801d0abb6%2468e8cff0%243aba6fd0%24%40westhold.com https://groups.google.com/d/msgid/lucee/004801d0abb6%2468e8cff0%243aba6fd0%24%40westhold.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to a topic in the Google Groups “Lucee” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/0bQpWRQLiFY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/5586020D.6070907%40lucee.org https://groups.google.com/d/msgid/lucee/5586020D.6070907%40lucee.org?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.