Multi-Store on localhost

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,
I'm trying to use multi-store on a localhost store.
I already added to new hostnames do the HOSTS file in windows with the following lines:

#Test IP's for nop
127.0.0.1       testhost1
127.0.0.1       testhost2

The problem is that when I try to access the store using one of the hostnames for example "testhost1:15536" I get a "Bad Request - Invalid Hostname|HTTP Error 400. The request hostname is invalid" error.

Is there anything more to configure in order to have a multi-store on localhost?

BTW, I also configured the nop admin page as said so here https://www.nopcommerce.com/boards/t/21356/multi-store-roadmap-lets-discuss-update-done.aspx?p=3#89679
7 years ago
hosts file will only help if you use the local IIS. In your case, however, it seems to use IIS Express, included with the Visual Studio.
in order to solve the problem you need to set up a local IIS and configure the web application.
look here, here and here
7 years ago
GAC27 wrote:
Hi,
I'm trying to use multi-store on a localhost store.
I already added to new hostnames do the HOSTS file in windows with the following lines:

#Test IP's for nop
127.0.0.1       testhost1
127.0.0.1       testhost2

The problem is that when I try to access the store using one of the hostnames for example "testhost1:15536" I get a "Bad Request - Invalid Hostname|HTTP Error 400. The request hostname is invalid" error.

Is there anything more to configure in order to have a multi-store on localhost?

BTW, I also configured the nop admin page as said so here https://www.nopcommerce.com/boards/t/21356/multi-store-roadmap-lets-discuss-update-done.aspx?p=3#89679


Hi GAC27.

Have you done it yet?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.