Step 1: Create websites, stores, and store views in the Magento Admin

  1. Log in to the Magento Admin as a user authorized to create websites, stores, and store views.
  2. Click Stores > Settings > All Stores.
  3. On the Stores page, click Create Website.
    • Name field: Enter a name to identify the website.
    • Code field: Enter a unique code; for example, if you have a French store or German store, you can enter french, german
    • Sort Order field: Enter an optional numerical sort order.
  4. Click Save Web Site.

Step 2: Create Apache virtual hosts

  1. As a user with root privileges, open the virtual host configuration file in a text editor.
  2. For example, open /etc/httpd/conf/httpd.conf
  3. Locate the section starting with <VirtualHost *:80>.
  4. Create the following virtual hosts after any existing virtual hosts:
  5. Save your changes to httpd.conf and exit the text editor.
  6. Restart Apache:
    • CentOS: service httpd restart
    • Ubuntu: service apache2 restart

Step 3: Verify your site

  1. Open your operating system’s hosts file.
  2. Add the static route in the format:
  3. <ip address> french.mylocalsite.com
    <ip address> german.mylocalsite.com
  4. Go to one of the following URLs in your browser:
  5. http://mylocalsite.com/admin
    http://french.mylocalsite.com/frenchstoreview
    http://german.mylocalsite.com/germanstoreview

 

How to Override REST Authentication

Leave a Reply

Your email address will not be published. Required fields are marked *