1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenForo on varnish+nginx+php-fpm (slash issue)

Discussion in 'Troubleshooting and Problems' started by CyberAP, Mar 20, 2013.

  1. CyberAP

    CyberAP Well-Known Member

    I have an issue with using XenForo on a server with Varnish installed. The problem is that removing the last slash causes a wrong redirect to http://domain.name:8080/request
    For example if I type http://mysite.com/community I am redirected to http://mysite.com:8080/community/
    I googled that issue and pasted this into my config:

    server_name_in_redirect off;
    port_in_redirect off;
    rewrite ^([^.]*[^/])$ $1/ permanent;

    That fixed the issue temporarily. I can acces /community with no slash (it's added automatically) and all other pages except /members. I don't know why but members page doesn't work without slash. Why does this happen and is it possible to fix? Thanks.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This is a server behavior. It is something to do with your server configuration.

    The members/ link within XenForo always has a / after the route, so that specific case shouldn't even exist.

    I have no experience with Varnish. If your host provides server support, or you have some one who manages your server then I suggest contacting them about this. Or post in the server forum:

    http://xenforo.com/community/forums/server-configuration-and-hosting.48/
     

Share This Page