Article ID: 112481, created on Oct 10, 2011, last review on Apr 25, 2014

  • Applies to:
  • Business Automation 5.1
  • Business Automation 5.0

Symptoms

Online store server returns error:Bad Gateway.

The proxy server received an invalid response from an upstream server.

Resolution

Regenerate PBA-E online store redirection rules using following example:# cd ~bm/scripts/
# SSMROOT=~bm ssm -D start ascript /usr/local/bm/scripts/get_rewrite_rules.asc STORE_ID  | sed -e "s/%URL_SUFFIX%//g" -e  "s/^\/\/\/\/.*//g" -e "s/##.*//g" > .htaccess
# cat .htaccess
RewriteEngine On
 
 
RewriteRule ^(.*\.(png|gif|jpg|css|js|ico))$ https://10.55.73.12/$1 [P]
RewriteRule ^(.*\/\d+)$ https://10.55.73.12/$1 [P,L]
 
RewriteRule ^$ /index.php [R,L]
 
RewriteRule ^index\.php.* https://10.55.73.12/index.php?StoreID=STORE_ID&subdir=&%{QUERY_STRING} [P,L]
RewriteRule ^http/index\.php.* https://10.55.73.12/http/index.php?StoreID=STORE_ID&subdir=&%{QUERY_STRING} [P,L]
RewriteRule ^http/getcss\.php.* https://10.55.73.12/http/getcss.php?StoreID=STORE_ID&subdir=&%{QUERY_STRING} [P,L]
RewriteRule ^()?http/blank\.html.* https://10.55.73.12/http/blank.html
RewriteRule ^http/(info|rateInfo|hit|sync_conf|terms|americanexpress|visa|getjs).php.* https://10.55.73.12/http/$1.php?StoreID=STORE_ID&subdir=&%{QUERY_STRING} [P,L]
Replace STORE_ID in the above example with the id of the online store which redirections rules are supposed to be regenerated.
Once this operation is performed upload resulting .htaccess file to the PBA-E online store host.

dc47a2d05ec4d64fb099e4dab79ce579 198398b282069eaf2d94a6af87dcb3ff d863a37023d0fbc15b909ef836e29214 92711db0799e8aefe8e51f12dace0496 caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF