xenforo server optimization

Three hours before I write this post I was searching for a solution and when I realized that I can't make it work, I asked for help. If my message bothered, you could ignore it.

Anyway, thanks for the info.
You should of said that in the beginning. It sounded like you want to get it fixed without any study.
Look into include directive, there is your problem. Make sure you place the include localhost.redirect inside server just below the images, not http.
 
It was inside server. I move it below the images, nothing changed.

Whatever directive I add inside localhost.redirect file it says "whatever" directive is not allowed here in /etc/nginx/localhost.redirect

After 10 hours I've tried:

location /...
}

or

server {
location /...
}

or a thousand other combinations but none worked.

I think I'm gonna keep redirects in the main conf.
 
Last edited:
If I understand what you are saying is that you put server directive inside location directive? You can't do that.
 
Code:
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-available/localhost.redirect
There was the problem. I left a symlink inside /etc/nginx/sites-available folder.

Thank you.
 
Top Bottom