0
Hi, I installed Affiliate Tracker on server with nginx and php fpm. After submitting new account I got 404 error ( the button "cancel" works fine). On Denwer with the same site and on a hosting with apache and nginx and another test site it works without errors. I think it is because of nginx rewrite rules (when I change 404 in the code on 405, it also changes on 405 after submitting). Here's part of the nginx code for joomla 2.5:
I tried different variants of rewrite, but they also don't work.
Please, tell me how to change this code or code of your component to escape the error.
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
location @php {
fastcgi_index index.php;
fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f info@mysite.ru";
fastcgi_pass unix:/var/www/php-fpm/myuser.sock;
fastcgi_split_path_info ^((?U).+\.ph(?\d*|tml))(/?.+)$;
try_files $uri =404;
include fastcgi_params;
}
I tried different variants of rewrite, but they also don't work.
Please, tell me how to change this code or code of your component to escape the error.
Responses (5)
-
Accepted Answer
0Oh, code is displayed in wrong way. I'll try to insert it again:
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
location @php {
fastcgi_index index.php;
fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f info@mysite.ru";
fastcgi_pass unix:/var/www/php-fpm/myuser.sock;
fastcgi_split_path_info ^((?U).+\.ph(?\d*|tml))(/?.+)$;
try_files $uri =404;
include fastcgi_params;
}-
Natalia_Kmore than a month agoThere no smile, it must be : and p.
-
-
Accepted Answer
-
Accepted Answer
0Yes, all other components (kunena forum, akeeba subscriptions, acy mailing, one click registration) work without errors. Your extension also worked fine on local server and on hosting with apache +nginx. Backend forms is ok on this server, but on frontend I see only first 2 pages. And no strings are inserted into database after submitting. I saw the same problem here: http://www.joomlathat.com/support/affiliate-tracker/after-submitting-the-registration-form-i-get-404-not-found . How did you resolve it? -
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »