• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

Nginx Configuration About

eren

Chevereto Member
Dear Rodolfo,

Yukleresim.co is the nginx configuration for my website. Seamlessly / For proper URLs,

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

which I need to add to the line.






#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

server {
listen 178.33.75.174:80;

server_name yukleresim.com;
server_name www.yukleresim.com;
server_name ipv4.yukleresim.com;

client_max_body_size 128m;

root "/var/www/vhosts/yukleresim.com/httpdocs";
access_log "/var/www/vhosts/system/yukleresim.com/logs/proxy_access_log";
error_log "/var/www/vhosts/system/yukleresim.com/logs/proxy_error_log";

if ($host ~* ^yukleresim.com$) {
rewrite ^(.*)$ http://www.yukleresim.com$1 permanent;
}

location / {
proxy_pass http://178.33.75.174:7080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}

location /internal-nginx-static-location/ {
alias /var/www/vhosts/yukleresim.com/httpdocs/;
add_header X-Powered-By PleskLin;
internal;
}

location ~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon) {
proxy_pass http://178.33.75.174:7080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}

location ~ ^/~(.+?)(/.*?\.php)(/.*)?$ {
alias /var/www/vhosts/yukleresim.com/web_users/$1/$2;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass "unix:///var/www/vhosts/system/yukleresim.com/php-fpm.sock";
include /etc/nginx/fastcgi.conf;
}

location ~ ^/~(.+?)(/.*)?$ {
proxy_pass http://178.33.75.174:7080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}

location ~ \.php(/.*)?$ {
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass "unix:///var/www/vhosts/system/yukleresim.com/php-fpm.sock";
include /etc/nginx/fastcgi.conf;
}

location ~ /$ {
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
}

}
 
Replace this:

Code:
location ~ /$ {
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
}

With this:
Code:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
 
Replace this:

Code:
location ~ /$ {
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
}

With this:
Code:
location / {
try_files $uri $uri/ /index.php?$query_string;
}

a unique human being, you're great, thank you very much
 
Back
Top