Jump to:

4935 Posts in 16066 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Virtual host problems - rewrite error?

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

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

Page: 1
Go to End
Author Topic: 3098 Views
  • Romeo
    Avatar
    Community Member
    67 Posts

    Virtual host problems - rewrite error? Link to this post

    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?

  • Romeo
    Avatar
    Community Member
    67 Posts

    Re: Virtual host problems - rewrite error? Link to this post

    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.

  • Romeo
    Avatar
    Community Member
    67 Posts

    Re: Virtual host problems - rewrite error? Link to this post

    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?

  • Romeo
    Avatar
    Community Member
    67 Posts

    Re: Virtual host problems - rewrite error? Link to this post

    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.

    3098 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.