Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

RewriteURL with Vanilla 2.5

Hello,

I used Nginx as front listen on 8080 and push back to Apache to 8181

How I will set the nginx config and apache .htaccess to use RewriteURL on Vanilla forum

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    I found that very handy site for nginx recently: https://nginxconfig.io/#!?https

    A working nginx location statement for nginx is:

        location / {
            try_files $uri $uri/ @vanilla;
        }
    
        location @vanilla {
            rewrite ^/(.+)$ /index.php?p=$1 last;
        }
    

    But I have absolutely no clue if you can use it like that when you are using nginx as a proxy (which is what I guess you do)

Sign In or Register to comment.