[coldbox:19308] [Coldbox 3.7] hostek.com and CF10 and CGI.PATH_INFO

Explain your directory structure to us. I’m not sure the coldbox folder is really in your web root.

Brad:

It’s right under wwwroot

So:

wwwroot/

Application.cfc

Application_noinheritance.cfc

coldbox

config

favicon.ico

handlers

includes

index.cfm

interceptors

layouts

model

modules

plugins

The directories are listed in bold.

Andrew: http://forums.adobe.com/thread/1157829

That’s the issue.

Thanks!!

Mallory, that is not a bug. Can you describer further what your issue is.

Also when using the SSL whether shared or not on Hostek, the folder is not the normal webroot. Have you confirmed that this is how it is setup for you?

Also is the SSL site sharing the same application name as the secured, if they are in different folders?

Andrew:

So, if I have SES turned on (for now it’s turned off):

//SES
/*
{class=“coldbox.system.interceptors.SES”,
properties={}
},*/

I will get a URL of http://www.oakwoodsuiteshotel.com/General/rooms

It should be http://www.oakwoodsuiteshotel.com/index.cfm/General/Rooms

From what I looked at, the SES should be putting in CGI.Path_info in but since it’s blank, it’s not being put in.

I can turn that on for demo purposes, but will need to turn it off so that the site will be functional.

For SSL - They didn’t mention anything about a seperate folder.

I can view https://securec56.ezhostingserver.com/oakwoodsuiteshotel-com/robots.txt just fine and SSL is on but when I try to go https://securec56.ezhostingserver.com/oakwoodsuiteshotel-com/index.cfm, I get the error.

Please let me know if I explained this clearly.

Thanks for your help.

No…

Browse www.andyscott.id.au and tell me where I should have index.cfm in the URL?

What rewriting have you got installed? And have you modified the routes.cfm in anyway?

And you are right with the SSL, I was getting confused with the sub domains.

So, if you were using ColdBox and had a function for about-me in the general handler it would be:

http://www.andyscott.id.au/index.cfm/General/about-me

As far as I know, I don’t have any other re-writers installed and I have not modded routes.cfm in any way.

I’ll save the SSL issue to another day, maybe even get one of their support on the phone after I get this figured out.

Ok going to take a step back here for a minute.

Just doubled checked, if you open your FTP up and connect to your site, you will find a secure folder. I am assuming that this is where all secured content goes by default. I switched Shared SSL on for my website and need to check with Hostek as I get a page not found type of error. Even with a dummy index page.

This could mean that my .htaccess file is not working with SSL here.

The original error you are getting, is not because of SES or the fact that index.cfm is missing from the URL. My guess is still the same, it can’t load the component because the directory structure is not the same directory structure for some reason and this is the cause of the error you are having.

If you are getting a different error than what you originally posted, please do share. But you would not get that error, if it URL required index.cfm.

No… It would be

http://www.andyscott.id.au/about-me without the index.cfm at all.

My site is running ContentBox, so it is a great example of ColdBox and ContentBox runing on Hostek.

Helicon is a mod rewrite and is installed, do you have an .htaccess in your folders?

Andrew… Just catching up on the 3 posts.

SSL - FTP’ing in I only see wwwroot and logs There is no secure folder under wwwroot. I’m also using their windows install of CF10 not Linux.

After searching one of the development folders I had I saw that there is an .htaccess in there. So I didn’t think there was one but its in a sub folder.

If it is in a subfolder then it is ok, it is probably in the config folder, to secure it from being accessed.

I have just pinged Hostek, as when I switch Shared SSL on, I am getting a weird 403.14 error on my website. It looks like the context is being stripped in IIS. In otherwords

securexx.hostek.com/domainName/ is being stripped back too securexx.hostek.com/

Don’t think this is your issue, but will let you know more when I hear back from them on that.

Gotcha,

I think I’m going to play around and remove it just to test as well.

Thanks for your help on this. I will keep playing around to see if I can figure something else out. Also, are you using windows or Linux?

Thanks!

Windows

Sorry, I got behind and haven’t read all the E-mails, but what do you see if you add this code in your site:

<cfdump var="#expandPath("/")#">

Is the folder that shows up where you expect your webroot to be (also where the coldbox folder is)?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hey Brad,

Sorry I missed this.

This is the output:

D:\home[oakwoodsuiteshotel.com](http://oakwoodsuiteshotel.com)\wwwroot\

And yes this is the folder where coldbox is located.

What if you remove ColdBox from the picture and just place a simple test.cfc or something in the web root and attempt to create it with createObject()?

Also, have you tried adding an app mapping? I’m still confused out the coldbox path isn’t being resolved.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Brad,

That seems to work as I have cfformprotect working on the site. I does do a cfcreateobject but it goes in the cfformprotect directory.

Normal Coldbox stuff functions just fine until you need to build a link, then because of the missing CGI path stuff the link will be build wrong.

Sorry, I thought we were still trying to solve the original error you reported in this thread: “Could not find the ColdFusion component or interface coldbox.system.web.services.BaseService.

Can you clarify what the current issue is?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Just saw this message from earlier in the thread:

I will get a URL of http://www.oakwoodsuiteshotel.com/General/rooms
It should be http://www.oakwoodsuiteshotel.com/index.cfm/General/Rooms

That’s controlled by the BaseURL which is set by default in routes.cfm.

if( len(getSetting(‘AppMapping’) ) lte 1){

setBaseURL(“http://#cgi.HTTP_HOST#/index.cfm”);
}
else{
setBaseURL(“http://#cgi.HTTP_HOST#/#getSetting(‘AppMapping’)#/index.cfm”);
}

If you want the URLs to have the index.cfm in them, then use the lines above. Otherwise, remove the index.cfm part. I’m guessing your setup needs the index.cfm added back in.

That being said, Andrew seemed to indicate that Hostek already had a rewriting engine in place. Would you rather just get that working? It adds the index.cfm back into the URL at the web server level before it reaches CF.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Sorry I was writing a response to your first message when this came in.

Well, which ever would get the job done I’m more than happy to use it. I have just never used the rewrite engine mentioned.

If adjusting the routes.cfm is the simplest way then I’ll try that.