cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2.4 on localhost with parallel web applications

Magento 2.2.4 on localhost with parallel web applications

Hello!

I've installed Magento CE 2.2.4 on my machine for testing proposes under /var/www/html/magento folder. When I try to access other web applications on parallel folders it redirects to http://localhost/ with magento 404 error page. How can I solve it?

2 REPLIES 2

Re: Magento 2.2.4 on localhost with parallel web applications

Hi @TPrigas

 

You need to access other application by passing their directories name after the localhost.

 

lets say one of your application is in var/www/html/test directory then in the url you also need to pass like : http://localhost/test

 

so - after that you will not get 404 page on the same.

 

or else let me know where you have puted your other application ? like you are running magento 2 by passing magento in the url - same way pass for other application as well

 

Hope it helps 

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2.2.4 on localhost with parallel web applications

Hello @Manthan Dave,

 

It happens exactly when a try to access the other application (by http://localhost/shop_2). It returns 404 error in magento at http://localhost/

 

I'm able to access the other application by http://127.0.0.1/shop_2 but not with http://localhost/shop_2. I believe there must be some redirect misconfiguration in magento about base_url. Tried to change it in shops > configuration > general > web by setting base_url to http://localhost/magento but it shows the same error (404)