Front Controller pattern on PHP on IIS

77 views
Skip to first unread message

Matthias Bauer

unread,
Jul 11, 2008, 1:12:22 PM7/11/08
to habar...@googlegroups.com
This is what my contact at Microsoft tells me:

> the easiest way is to do it with a custom error message for a 404 (file not found) error
> ->i.e. in the case that a user types in an URL for which there is no file on the web server - the server sends back e.g. the start page rather than the error message
> (Alternatively the http redirection feature (IIS7) might help)
>
> If you need it a bit more granular (based on rules) you may try out the
> URL rewrite module for IIS7
> http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6
> (there are also other modules on this website - if you this very one does not do the trick)

Can anyone with IIS try if that works for Habari and report to the ML?

Thanks,

-Matt

Chris Meller

unread,
Jul 16, 2008, 5:21:53 PM7/16/08
to habar...@googlegroups.com
I installed IIS7 on my Vista box to test and basically followed the steps in a screencast I found for installing Wordpress on IIS [1].

I fixed a small bug that was improperly generating HTTPS URLs on IIS, but it looks like the custom 404 page isn't getting any $_POST data that was sent to the original page, so even the first ajax_check_mysql_credentials fails because the installer can't tell it's the AJAX request it's looking for.

While googling around for answers on IIS in general, I actually found a WP codex page [2] by ringmaster outlining several approaches to using WP permalinks on IIS6. One of the links [3] involved using a custom ASP script to do an HttpRequest to fetch the actual page. That doesn't seem like a viable solution to me, but perhaps a custom ASP script could also be used to fetch the original POST values and re-populate them somehow - I have no idea.

So basically, no, it does not work under IIS. Personally, I'm ok with that...

[1] http://edge.technet.com/Media/Installing-PHP-Applications-on-IIS7/
[2] http://codex.wordpress.org/User:ringmaster/IIS
[3] http://www.keyboardface.com/iis-permalinks/

Matthias Bauer

unread,
Jul 17, 2008, 4:20:28 AM7/17/08
to habar...@googlegroups.com
Chris Meller wrote:

> I installed IIS7 on my Vista box to test and basically followed the
> steps in a screencast I found for installing Wordpress on IIS [1].
>
> I fixed a small bug that was improperly generating HTTPS URLs on IIS,
> but it looks like the custom 404 page isn't getting any $_POST data that
> was sent to the original page, so even the first
> ajax_check_mysql_credentials fails because the installer can't tell it's
> the AJAX request it's looking for.
>
> While googling around for answers on IIS in general, I actually found a
> WP codex page [2] by ringmaster outlining several approaches to using WP
> permalinks on IIS6. One of the links [3] involved using a custom ASP
> script to do an HttpRequest to fetch the actual page. That doesn't seem
> like a viable solution to me, but perhaps a custom ASP script could also
> be used to fetch the original POST values and re-populate them somehow -
> I have no idea.
>
> So basically, no, it does not work under IIS. Personally, I'm ok with
> that...


Thanks for the feedback. Did you try the other method using the
mod-rewrite-alike module for IIS?

Where can I get IIS7 for WinXP to try for myself? :D

-Matt

Reply all
Reply to author
Forward
0 new messages