When I run Cuyahoga on IIS, nothing goes wrong.
But when it runs on Apache and I click on a menu item, IE sais "The webpage cannot be found".
Any suggestions?
Greetings
jcuyaWhen I run Cuyahoga on IIS, nothing goes wrong.
But when it runs on Apache and I click on a menu item, IE sais "The webpage cannot be found".
That's a very vague description, but I suspect that the url rewriting is not working properly with Apache. Btw, is this on Windows, or with Mono on non-Windows?
Here an example:
I have 2 pages, default.aspx and home.aspx. When I run Cuyahoga on IIS and click on "Home", I see
http://localhost/Cuyahoga/home.aspx as url and everything works.
But when I run Cuyahoga on apache and click on home, I see the same url but no page...
My OS is Windows XP with IIS 5.0 and Apache 2.0.59
Yes, looks like a Url rewriting failure.
http://localhost/Cuyahoga/home.aspx should be rewritten to
http://localhost/Cuyahoga/default.aspx?ShortDescription=home.
Unfortunately I don't have a Windows Apache setup and I can't reproduce this on Linux Apache with Mono. Anybody else has an idea what might be the problem?
I found a solution:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule /Cuyahoga/([a-z]+).aspx /Cuyahoga/Default.aspx?ShortDescription=$1
</IfModule>
That's a nice workaround. Still no idea what goes wrong though.
You should also check the other rewrite rules in the web.config and mimic these in the apache config file.
When I delete the rewrite rule in the httpd.conf file, the Apache error log says:
[Mon Oct 30 09:37:28 2006] [error] [client 127.0.0.1] mod_aspdotnet: File not found or unable to stat: C:/AppServ/www/Cuyahoga/home.aspx, referer: http://localhost/Cuyahoga/Default.aspx
I think it's a kind of bug in the mod_aspdotnet module.