Skip to content

Preferred Folder Structure and Config

Raja Kapur edited this page Feb 15, 2014 · 1 revision

Ideally users of this project would make separate VirtualHosts to a Magento instance, a separate VirtualHost to the /api/public folder, and a separate VirtualHost to the /store/ folder. And update the config.json with the new host/paths.

Example of Preferred Setup

(VirtualHost) magento.example.com

  • doc_root -> /var/www/magento

(VirtualHost) api.example.com

  • doc_root -> /var/www/moa/api/public

(VirtualHost) www.example.com

  • doc_root -> /var/www/moa/store

(Config) config.json

{
    "socket": {
        "port": "8888",
        "host": "www.example.com"
    },
    "magento": {
        "path": "/var/www/magento",
        "host": "http://magento.example.com",
        "store": "0"
    },
    "api": {
        "host": "http://api.example.com",
        "provider": "magento"
    }
}