Coding

Magento: configure website by specific domain

1) declare map

map $http_host $magesite {

        domain1.com website_code1;

         domain2.com website_code2;

}

2) MAGE_RUN_TYPE and MAGE_RUN_CODE

  location ~ \.php$ {

  #       fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        #
        #       # With php5-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php5-fpm:
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
 
                fastcgi_buffer_size 128k;
                fastcgi_buffers 256 16k;
                fastcgi_busy_buffers_size 256k;
                fastcgi_temp_file_write_size 256k;
                fastcgi_read_timeout 240;
 
                fastcgi_param MAGE_RUN_TYPE website;
                fastcgi_param MAGE_RUN_CODE $magesite;
        }

1 Bình luận

  1. buy_cialis nói:

    Low price for buy cialis Black at /order-cialis-black-online-en.

Trở về
  • HTML5 Canvas
  • HTML5 Canvas

     The <canvas> element is used to draw graphics, on the fly, on a web page. Draw a red rectangle, a gradient rectangle,...