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.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

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

Virtual host problems - rewrite error?


Reply

4 Posts   3131 Views

Avatar
Romeo

29 August 2009 at 2:43am Community Member, 67 Posts

I'm having a real problem getting my test web application to work as a virtual host with Apache2 / Ubuntu. I get an internal server error with this written to the error log

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Fri Aug 28 15:40:35 2009] [debug] core.c(3063): [client 127.0.0.1] r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /fsbi/sapphire/main.php
[Fri Aug 28 15:40:35 2009] [debug] core.c(3069): [client 127.0.0.1] redirected from r->uri = /

I'm not familiar enough with Apache to work out quite what's gone wrong (I'm used to nginx). Can someone point out where I might look for the answer?

Avatar
Romeo

29 August 2009 at 2:54am Community Member, 67 Posts

I found that by changing the RewriteBase from /fsbi to / in my .htaccess file, the virtual host then worked correctly. However, I can't now access the site via 'http://localhost/fsbi/' (i.e., the pre virtual host method). It's not a big deal, I'm just wondering whether both can be done at the same time.

Avatar
Romeo

29 August 2009 at 3:14am Community Member, 67 Posts

Ah, I now discover that when I access the webapp via the virtual host method, I don't get the SilverStripeNavigator (can't get into the CMS). What have I done wrong?

Avatar
Romeo

3 September 2009 at 2:50am Community Member, 67 Posts

The answer, for anyone else who runs into this problem, is to append /admin/ to the end of the URL (e.g., http://www.whatever.com/admin/) and then if you get redirected to a blank login page (which happened to me), append ?flush=1 to the login URL and resubmit.