lucianovalenca
10/10/2019 - 9:06 PM

conf

Nginx custom settings

Replace the following parts:

From:

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

To:

###### Begin Custom Settings ######
# Phalcon PHP
location / {
    try_files $uri $uri/ /index.php?_url=$uri&$args;
}

# Subdirectories
location /blog/ {
    index index.php;
    try_files $uri $uri/ /blog/index.php?$args;
}
location /cms/ {
    index index.php;
    try_files $uri $uri/ /cms/index.php?$args;
}

# Performance settings
location ~*  \.(jpg|jpeg|png|gif|ico|css|js|eot|svg|ttf|woff|woff2)$ {
    expires 365d;
}
###### End Custom Settings ######