Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# jcuya 10/20/2006 3:49 AM
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
# martijnb 10/21/2006 7:50 AM
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?
# jcuya 10/23/2006 4:58 AM
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
# martijnb 10/23/2006 5:16 PM
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?
# jcuya 10/27/2006 4:05 AM (edited 10/27/2006 4:12 AM)
I found a solution:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule /Cuyahoga/([a-z]+).aspx /Cuyahoga/Default.aspx?ShortDescription=$1
</IfModule>

# martijnb 10/27/2006 5:22 PM
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.
# jcuya 10/30/2006 2:45 AM
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.