Sunday, 15 September 2013

java ee - Magento RESTAPI restconnect working in localhost host but not working server -



java ee - Magento RESTAPI restconnect working in localhost host but not working server -

i using magento 1.7.0.2 restapi on windows without problems.

on linux installed, several urls or rewrite rules seem not work.

for illustration http://example.com/magento/restconnect gives me “404.”

this indicates, “rewriterule ^api/rest api.php?type=rest [qsa,l]” not work.

when utilize “rewriterule ^api api.php?type=rest [qsa,l]”, works, won’t help later in rest communication.

another indication is: http://example.com/magento/admin/oauth_authorize?oauth_token=… leads “whoops, our bad...” - no response or bad url somehow.

has hint? somehow related rest functionality.

server nginx? have 404,i resolved, nginx conf configuration : server { hear 80; server_name mg.nieger.com; index index.html index.htm index.php; root /alidata/www/nieger; location ~ .*\.(php|php5)?$ { #fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } location /api { rewrite ^/api/rest /api.php?type=rest last; rewrite ^/api/v2_soap /api.php?type=v2_soap last; rewrite ^/api/soap /api.php?type=soap last; } # include /alidata/server/nginx/conf/rewrite/magento.conf; log_format nieger '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /alidata/log/nginx/access/default.log nieger; } added the: **location /api { rewrite ^/api/rest /api.php?type=rest last; rewrite ^/api/v2_soap /api.php?type=v2_soap last; rewrite ^/api/soap /api.php?type=soap last; }**

magento java-ee

No comments:

Post a Comment