de-vraag
  • 質問
  • タグ
  • ユーザー
通知:
報酬:
登録
登録すると、質問に対する返答やコメントが通知されます。
ログイン
すでにアカウントをお持ちの方は、ログインして新しい通知を確認してください。
追加された質問、回答、コメントには報酬があります。
さらに
ソース
編集
Dan Herd
Dan Herd
質問

SagepayがNginxのCartthrob通知URLに連絡しようとすると404

https://xxx.xxx.xxx/themes/third_party/ cartthrob/lib/extload.php

うまくいく

https://xxx.xxx.xxx/themes/ third_party/cartthrob/lib/extload.php/sage_s

404を返します。

私のnginxサーバーの設定は次のとおりです:

server {
  listen 443 default_server ssl;
  ssl_certificate /etc/nginx/ssl/xxx_xxx_xxx.pem;
  ssl_certificate_key /etc/nginx/ssl/xxx_xxx_xxx.key;
  server_name xxx.xxx.xxx;
  root /sites/xxx_xxx_xxx/public_html;

  access_log /var/log/nginx/xxx_xxx_xxx-access.log;
  error_log  /var/log/nginx/xxx_xxx_xxx-error.log info;

  location/{
    index index.php;
    try_files $uri $uri/ @ee;
  }

  location @ee {
    rewrite ^(.*) /index.php?$1 last;
  }

  location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php5;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}
3 2014-02-10T17:08:30+00:00 2
ExpressionEngine
nginx
cartthrob
sagepay
Nikos Steiakakis
11日 2月 2014 в 4:28
2014-02-11T16:28:45+00:00
さらに
ソース
編集
#56794070

次の設定を試してください:

server {
  listen 443 default_server ssl;
  ssl_certificate /etc/nginx/ssl/xxx_xxx_xxx.pem;
  ssl_certificate_key /etc/nginx/ssl/xxx_xxx_xxx.key;
  server_name xxx.xxx.xxx;
  root /sites/xxx_xxx_xxx/public_html;

  access_log /var/log/nginx/xxx_xxx_xxx-access.log;
  error_log  /var/log/nginx/xxx_xxx_xxx-error.log info;

  location /themes/third_party/cartthrob/lib/extload.php { 
    rewrite ^(.*) /themes/third_party/cartthrob/lib/extload.php?$1 last; 
  }

  location/{
    index index.php;
    try_files $uri $uri/ @ee;
  }

  location @ee {
    rewrite ^(.*) /index.php?$1 last;
  }

  location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php5;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}
3
0
MotoWilliams
10日 2月 2014 в 8:33
2014-02-10T20:33:05+00:00
さらに
ソース
編集
#56794069

Ensure your firewalls allow outbound Port 443 (HTTPS only) & inbound ports 443 (& optionally 80 HTTP) access in order to communicate with our servers (on Test/Live).

私たちの(Sage Pays)Notificationポストを受け取っていない場合、DNSの問題をチェックしないでください。

2つのNotificationURLの主な違いは何ですか?

Sage Paysの通知ポストを確認するとき、Status、StatusDetail、およびRedirectURLを送信するとき、Sage Pay Serverは "Status ="が応答の最初の文字であると予想しているので、ヘッダーコード、コメントまたはHTMLを削除するために応答バッファをクリアしてください。

1
0
質問の追加
カテゴリ
すべて
技術情報
文化・レクリエーション
生活・芸術
科学
プロフェッショナル
事業内容
ユーザー
すべて
新しい
人気
1
Денис Анненский
登録済み 1日前
2
365
登録済み 5日前
3
True Image
登録済み 6日前
4
archana agarwal
登録済み 1週間前
5
Maxim Zhilyaev
登録済み 1週間前
© de-vraag :年
ソース
expressionengine.stackexchange.com
ライセンス cc by-sa 3.0 帰属