Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Admin interface doesn't work on IIS


Reply

2 Posts   1376 Views

Avatar
vince

17 September 2008 at 1:55am (Last edited: 17 September 2008 2:03am), Community Member, 4 Posts

I installed Silverstripe on an IIS (not because I want to, but it's a requirement..).

I followed the manuals and the forum thread found on http://doc.silverstripe.com/doku.php?id=iis-installation and after some modifications found in the forum thread it works, except the admin interface returns different errors, either "page not found (404)" or "unable to process request", depending on whether i log in first using /Security/login.

The regular website is visible, with all links and images etc. working.

This is my current .htaccess:
<open bracket> = [, <close bracket>= ]

[ISAPI_Rewrite]
RewriteEngine On
RewriteCond %{REQUEST_URI} !(.gif)|(.jpg)|(.JPG)|(.png)|(.css)|(.js)|(.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /sapphire/main.php?url=$1 <open bracket>I,L,QSA<close bracket>

And ideas? Anyone experienced problems with the admin backend on IIS, too?

I'd really like to get this working..

Avatar
vince

17 September 2008 at 8:02pm (Last edited: 18 September 2008 10:52am), Community Member, 4 Posts

I just realized, that the rewriting as such seems to be correct, but that server side redirects are not being rewritten by isapi/rewrite.

E.g. the server correctly rewrites domain.com/Security/login to domain.com/sapphire/main.php?url=/Security/login.

If I open domain.com/admin, Silverstripe redirects to domain.com/Security/login. But after that, the server doesn't rewrite the URL and returns a 404 error, as there is no directory /Security on the server.

The same thing happens with /home, which redirects to / and returns a 'directory listing denied' as it's not being rewritten. Again, opening domain.com directly works.

Is there any way to configure (change) this behaviour in IIS? Is this a misconfiguration of IIS? Anyone seen this before?