XF 1.5 For friendly URLs on Nginx

PhoGro

Member
Just want to make sure I have this right - when you say that all the xf paths must be related to my install. if I have my install at root/community/

Do I change /xf/ with /community/ everywhere it occurs?

Code:
location /xf/ {
    try_files $uri $uri/ /xf/index.php?$uri&$args;
    index index.php index.html;
}

location /xf/internal_data/ {
    internal;
}
location /xf/library/ {
       internal;
}

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include         fastcgi_params;
}
 

rainmotorsports

Well-known member
Correct. If you actually have it in the folder community and the hosts root is not also community (as in you probably have a different site or software at the root) then you need to specify like in the example except xf will be community.
 

PhoGro

Member
Correct. If you actually have it in the folder community and the hosts root is not also community (as in you probably have a different site or software at the root) then you need to specify like in the example except xf will be community.

Right I have a wordpress install at my root and xenforo at root/community/
 
Top