Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# kamchatka 4/17/2009 8:00 PM
Hi all,

I'm using Cuyahoga 1.6.0, installation & database creation have been all
ok; after looking a little to sample website, I've started creating my own,
on my local dev machine, but I cannot succed to see it, as
PageEngine::OnInit always ends up with
NodeNullException: No node found with the following parameters...
the physical virtual dir where cuyahoga is installed is:
http://localhost/ch
and same url has the sample website, instead to my website I've given
the url http://localhost/ch/mysite

If I give to browser this 2nd url, request does not arrive to cuyahoga
and IIS directly returns 404. If I try using a node friendly url that I
configured http://localhost/ch/mysite/mysite.aspx
I obtain above exception...

Debugging the code, I see that for the sample website f.e.
http://localhost/ch/page2.aspx urlrewriter makes it
/ch/Default.aspx?ShortDescription=page2& and it works, while
http://localhost/ch/mysite/mysite.aspx becomes
/ch/Default.aspx?ShortDescription=mysite/mysite& which is a node
not existent.... I guess I should not define my website url as a child
of another existing one, but if I define as http://localhost/mysite
IIS does not even send the request to cuyahoga.

How can I solve this problem, and what are best practices with
sites urls in cuyahoga (one physical, and all cuyahoga's sites "virtual"
urls)?

Thanks and sorry for the long post
K.
# martijnb 4/18/2009 10:16 AM
kamchatka
I guess I should not define my website url as a child
of another existing one, but if I define as http://localhost/mysite
IIS does not even send the request to cuyahoga.

If you use http://localhost/mysite, you need to have this set as the site url of your site in cuyahoga. Note that you can however reach the admin, even when this setting isn't there (http://localhost/mysite/admin).

As a general rule, Cuyahoga sites should reside at the root of either a website or a virtual directory.
# kamchatka 4/18/2009 2:30 PM
Sorry, but it is still not clear to me...

In case I have more that one website managed by cuyahoga,
say http://domain/SiteA and http://domain/SiteB, as first step
I create them in site admin page, putting at least one base node
each.

Suppose I had installed cuyahoga as http://domain/ch (that
references to C:\WebSites\Cuyahoga\Web, Cuyahoga\Web
coming from cuyahoga sources) how SiteA and SiteB can be
reached by Cuyahoga itself? The request is not sent to
Cuyahoga website. Have I to configure IIS in some way or
create additional websites? What is the standard way to do
this?

Also, if I want that final website url has only the domain, like:
http://www.website.org how can I do this?

Thanks
K.
# kamchatka 4/20/2009 12:16 PM
Ehr, sorry, anyone can help me to better understand cuyahoga with multiple websites, and if and how to configure also iis?
:s

Many thanks...
K.
# Constructor 4/20/2009 6:06 PM (edited 4/20/2009 6:44 PM)
Try this for example. You install Cuyahoga locally and it is at this address:

http://localhost/cuyahoga/

In your IIS the 'cuyahoga' folder has an application called (probably) 'cuyahoga'. It usually is the same.

So the default site is:
http://localhost/cuyahoga/Default.aspx

and the admin is:
http://localhost/cuyahoga/admin/

Now, when you log into the admin (http://localhost/cuyahoga/admin/) you can add a new site. You give the site a name and then you give the site a url:

http://localhost/testsite1/

Now go to your local IIS and create a new virtual directory along side your cuyahoga website. I do NOT mean actually create a directory folder in the wwwroot, I mean create a virtual directory alias in IIS. You can find the option for this by 'right click' on 'Default Web Site' in IIS on Windows XP Pro (not sure about your version).

So when creating a virtual directory give it the name 'testsite1' and click next, then browse to the Cuyahoga installation directory 'C:\Inetpub\wwwroot\cuyahoga\' (for example).

This will then send all requests for 'http://localhost/testsite1/' to your cuyahoga installation. Cuyahoga will then look at the URL and see that the test site is the site that should be used for that URL.

The same works for subdomains like 'http://mysubdomain.mydomain.com' or completely different urls that are 'pointing' to the IP Address of the server hosting your Cuyahoga installation.
# kamchatka 4/20/2009 9:20 PM
Ok, now I've understood...
Even if I works as web developer since some years, I'm not so
familiar with web servers admin, even some basics, because I
always took care of the developing part only....

Many thanks...
K.
# Constructor 4/20/2009 10:36 PM
It is OK. I learn new things each day.