Magento 2 : Multiple website setup in localhostCreate Multi Website/Stores in magento 2Magento 2, website redirecting to localhostClone Magento website to localhostHow the “magento setup:store-config:set --base-url” command exactly works?Multi website multi currency setupCan't login on localhost Windows 10Building multi stores with multi domains but get 500Magento Multi Store with multiple domainsVirtual host for magento2 under lampp service for UbuntuHow to give a host name to magento 2 projectmagento 2 installation on MAMP. none of the pages work

Dangerous workplace travelling

How to pass query parameters in URL in Salesforce Summer 19 Release?

Why is my arithmetic with a long long int behaving this way?

Which US defense organization would respond to an invasion like this?

What are the requirements for a river delta to form?

Why would a military not separate its forces into different branches?

Sci-fi/fantasy book - ships on steel runners skating across ice sheets

In "Avengers: Endgame", what does this name refer to?

What happens if I accidentally leave an app running and click "Install Now" in Software Updater?

Motion-trail-like lines

As black, how should one respond to 4. Qe2 by white in the Russian Game, Damiano Variation?

Is it normal for gliders not to have attitude indicators?

Why would one crossvalidate the random state number?

Why aren't nationalizations in Russia described as socialist?

Counting the Number of Real Roots of A Polynomial

Where are the "shires" in the UK?

Page count conversion from single to double-space for submissions

Is there a closed form, or cleaner way of writing this function?

How to remap repeating commands i.e. <number><command>?

Why did WWI include Japan?

Switch Function Not working Properly

Krull dimension of the ring of global sections

no sense/need/point

The origin of list data structure



Magento 2 : Multiple website setup in localhost


Create Multi Website/Stores in magento 2Magento 2, website redirecting to localhostClone Magento website to localhostHow the “magento setup:store-config:set --base-url” command exactly works?Multi website multi currency setupCan't login on localhost Windows 10Building multi stores with multi domains but get 500Magento Multi Store with multiple domainsVirtual host for magento2 under lampp service for UbuntuHow to give a host name to magento 2 projectmagento 2 installation on MAMP. none of the pages work






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I am trying to create multi websites in Magento 2 in local environment with XAMPP on Windows operating system 10.



I followed this tutorial : http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_apache.html.



Created multi websites in the admin, changed the base url of each website in the configuration (Stores->Configuration->Web) and specified the virtual hosts in the file C:xampp2apacheconfextrahttpd-vhosts.conf like below attached screenshot Screenshot of Apache Virtual Host configuration file



Then specified the base URLs in the host file like follows:



127.0.0.1 french.mysite.mg
127.0.0.1 german.mysite.mg


I restarted the Apache server but none of the created websites are loading. Can you please correct me if I am missing anything?










share|improve this question
























  • Have you found any solutions on how to setup multisite on xamp?

    – chirag dodia
    Jul 11 '17 at 10:42











  • Did you edit your host file properly?

    – gabehou
    Oct 25 '17 at 16:16











  • magento.stackexchange.com/questions/94855/… try this

    – Ravindrasinh Zala
    Dec 29 '17 at 7:02

















2















I am trying to create multi websites in Magento 2 in local environment with XAMPP on Windows operating system 10.



I followed this tutorial : http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_apache.html.



Created multi websites in the admin, changed the base url of each website in the configuration (Stores->Configuration->Web) and specified the virtual hosts in the file C:xampp2apacheconfextrahttpd-vhosts.conf like below attached screenshot Screenshot of Apache Virtual Host configuration file



Then specified the base URLs in the host file like follows:



127.0.0.1 french.mysite.mg
127.0.0.1 german.mysite.mg


I restarted the Apache server but none of the created websites are loading. Can you please correct me if I am missing anything?










share|improve this question
























  • Have you found any solutions on how to setup multisite on xamp?

    – chirag dodia
    Jul 11 '17 at 10:42











  • Did you edit your host file properly?

    – gabehou
    Oct 25 '17 at 16:16











  • magento.stackexchange.com/questions/94855/… try this

    – Ravindrasinh Zala
    Dec 29 '17 at 7:02













2












2








2


0






I am trying to create multi websites in Magento 2 in local environment with XAMPP on Windows operating system 10.



I followed this tutorial : http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_apache.html.



Created multi websites in the admin, changed the base url of each website in the configuration (Stores->Configuration->Web) and specified the virtual hosts in the file C:xampp2apacheconfextrahttpd-vhosts.conf like below attached screenshot Screenshot of Apache Virtual Host configuration file



Then specified the base URLs in the host file like follows:



127.0.0.1 french.mysite.mg
127.0.0.1 german.mysite.mg


I restarted the Apache server but none of the created websites are loading. Can you please correct me if I am missing anything?










share|improve this question
















I am trying to create multi websites in Magento 2 in local environment with XAMPP on Windows operating system 10.



I followed this tutorial : http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_apache.html.



Created multi websites in the admin, changed the base url of each website in the configuration (Stores->Configuration->Web) and specified the virtual hosts in the file C:xampp2apacheconfextrahttpd-vhosts.conf like below attached screenshot Screenshot of Apache Virtual Host configuration file



Then specified the base URLs in the host file like follows:



127.0.0.1 french.mysite.mg
127.0.0.1 german.mysite.mg


I restarted the Apache server but none of the created websites are loading. Can you please correct me if I am missing anything?







magento2 localhost multi-website apache windows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 23 '18 at 19:21









ProcessEight

7121417




7121417










asked Jan 18 '17 at 7:25









venkivenki

257




257












  • Have you found any solutions on how to setup multisite on xamp?

    – chirag dodia
    Jul 11 '17 at 10:42











  • Did you edit your host file properly?

    – gabehou
    Oct 25 '17 at 16:16











  • magento.stackexchange.com/questions/94855/… try this

    – Ravindrasinh Zala
    Dec 29 '17 at 7:02

















  • Have you found any solutions on how to setup multisite on xamp?

    – chirag dodia
    Jul 11 '17 at 10:42











  • Did you edit your host file properly?

    – gabehou
    Oct 25 '17 at 16:16











  • magento.stackexchange.com/questions/94855/… try this

    – Ravindrasinh Zala
    Dec 29 '17 at 7:02
















Have you found any solutions on how to setup multisite on xamp?

– chirag dodia
Jul 11 '17 at 10:42





Have you found any solutions on how to setup multisite on xamp?

– chirag dodia
Jul 11 '17 at 10:42













Did you edit your host file properly?

– gabehou
Oct 25 '17 at 16:16





Did you edit your host file properly?

– gabehou
Oct 25 '17 at 16:16













magento.stackexchange.com/questions/94855/… try this

– Ravindrasinh Zala
Dec 29 '17 at 7:02





magento.stackexchange.com/questions/94855/… try this

– Ravindrasinh Zala
Dec 29 '17 at 7:02










2 Answers
2






active

oldest

votes


















0














The reason depends on result you receive trying open website on Store Front.



  1. Store Front opened with error (5xx, 404) - something with your apache configuration, maybe virtual hosts file is not being read. Check apache access and error logs, it can helps identify the problem.

  2. Store Front always redirect to base site (mysite.mg) - probably you forget to clean cache

I can't reproduce this case on latest develop branch.



It is important to know Magento version to be able check it as well.






share|improve this answer






























    0














    Okay, i was stuck in your situation just like you, and after few time looking on Google, i've found the answer, only need to clear cache in your project, that's all.


    For some one who looking to create virtual host in magento 2, i will put it here:
    In C:xamppapacheconfextrahttpd-vhosts.conf put this:



    <VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/magento"
    ServerName fudu.magento.net
    </VirtualHost>


    In C:WindowsSystem32driversetchosts put this:



    127.0.0.1 fudu.magento.net


    With fudu.magento.net is your virtual domain, and DocumentRoot "C:/xampp/htdocs/magento" is your project folder.






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f155227%2fmagento-2-multiple-website-setup-in-localhost%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      The reason depends on result you receive trying open website on Store Front.



      1. Store Front opened with error (5xx, 404) - something with your apache configuration, maybe virtual hosts file is not being read. Check apache access and error logs, it can helps identify the problem.

      2. Store Front always redirect to base site (mysite.mg) - probably you forget to clean cache

      I can't reproduce this case on latest develop branch.



      It is important to know Magento version to be able check it as well.






      share|improve this answer



























        0














        The reason depends on result you receive trying open website on Store Front.



        1. Store Front opened with error (5xx, 404) - something with your apache configuration, maybe virtual hosts file is not being read. Check apache access and error logs, it can helps identify the problem.

        2. Store Front always redirect to base site (mysite.mg) - probably you forget to clean cache

        I can't reproduce this case on latest develop branch.



        It is important to know Magento version to be able check it as well.






        share|improve this answer

























          0












          0








          0







          The reason depends on result you receive trying open website on Store Front.



          1. Store Front opened with error (5xx, 404) - something with your apache configuration, maybe virtual hosts file is not being read. Check apache access and error logs, it can helps identify the problem.

          2. Store Front always redirect to base site (mysite.mg) - probably you forget to clean cache

          I can't reproduce this case on latest develop branch.



          It is important to know Magento version to be able check it as well.






          share|improve this answer













          The reason depends on result you receive trying open website on Store Front.



          1. Store Front opened with error (5xx, 404) - something with your apache configuration, maybe virtual hosts file is not being read. Check apache access and error logs, it can helps identify the problem.

          2. Store Front always redirect to base site (mysite.mg) - probably you forget to clean cache

          I can't reproduce this case on latest develop branch.



          It is important to know Magento version to be able check it as well.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 18 '17 at 11:48









          yaronishyaronish

          67223




          67223























              0














              Okay, i was stuck in your situation just like you, and after few time looking on Google, i've found the answer, only need to clear cache in your project, that's all.


              For some one who looking to create virtual host in magento 2, i will put it here:
              In C:xamppapacheconfextrahttpd-vhosts.conf put this:



              <VirtualHost *:80>
              DocumentRoot "C:/xampp/htdocs/magento"
              ServerName fudu.magento.net
              </VirtualHost>


              In C:WindowsSystem32driversetchosts put this:



              127.0.0.1 fudu.magento.net


              With fudu.magento.net is your virtual domain, and DocumentRoot "C:/xampp/htdocs/magento" is your project folder.






              share|improve this answer



























                0














                Okay, i was stuck in your situation just like you, and after few time looking on Google, i've found the answer, only need to clear cache in your project, that's all.


                For some one who looking to create virtual host in magento 2, i will put it here:
                In C:xamppapacheconfextrahttpd-vhosts.conf put this:



                <VirtualHost *:80>
                DocumentRoot "C:/xampp/htdocs/magento"
                ServerName fudu.magento.net
                </VirtualHost>


                In C:WindowsSystem32driversetchosts put this:



                127.0.0.1 fudu.magento.net


                With fudu.magento.net is your virtual domain, and DocumentRoot "C:/xampp/htdocs/magento" is your project folder.






                share|improve this answer

























                  0












                  0








                  0







                  Okay, i was stuck in your situation just like you, and after few time looking on Google, i've found the answer, only need to clear cache in your project, that's all.


                  For some one who looking to create virtual host in magento 2, i will put it here:
                  In C:xamppapacheconfextrahttpd-vhosts.conf put this:



                  <VirtualHost *:80>
                  DocumentRoot "C:/xampp/htdocs/magento"
                  ServerName fudu.magento.net
                  </VirtualHost>


                  In C:WindowsSystem32driversetchosts put this:



                  127.0.0.1 fudu.magento.net


                  With fudu.magento.net is your virtual domain, and DocumentRoot "C:/xampp/htdocs/magento" is your project folder.






                  share|improve this answer













                  Okay, i was stuck in your situation just like you, and after few time looking on Google, i've found the answer, only need to clear cache in your project, that's all.


                  For some one who looking to create virtual host in magento 2, i will put it here:
                  In C:xamppapacheconfextrahttpd-vhosts.conf put this:



                  <VirtualHost *:80>
                  DocumentRoot "C:/xampp/htdocs/magento"
                  ServerName fudu.magento.net
                  </VirtualHost>


                  In C:WindowsSystem32driversetchosts put this:



                  127.0.0.1 fudu.magento.net


                  With fudu.magento.net is your virtual domain, and DocumentRoot "C:/xampp/htdocs/magento" is your project folder.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 22 '18 at 1:54









                  fudufudu

                  46014




                  46014



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f155227%2fmagento-2-multiple-website-setup-in-localhost%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                      Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?