cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to direct localhost to mystorefront in hybris?

Former Member
0 Likes
841

Now when i go to https://localhost:9002/

it opens hac (hybris admin console).

when i go

https://powertools.local:9002/nystorefront/powertools/en/USD/cart

i can reach my storefront.

I want to reach mystore when i go to localhost:9002.

What should i do?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

simply add the following to your local.properties:

 hac.webroot=/hac
 nystorefront.webroot=

This will allow you to reach your storefront by e.g. https://powertools.local:9002/nystorefront/powertools/en/USD

If you want to directly access your powertools CMS Site, you have to add an additional Url Pattern to your CMS Site, e.g.

  (?i)^https?://[\w-\.:]+/.*

Hope that helps,

Regards,

Norbert

Former Member
0 Likes

I added this

$siteUid=mysite

CMS Site INSERT_UPDATE CMSSite ;

uid[unique=true] ; urlPatterns
;
; $siteUid ; (?i)^https?://[^/]+(/[^?])?\?(.\&)?(site=$siteUid)(|\&.)$,(?i)^https?://$siteUid.[^/]+(|/.|\?.)$,(?i)^https?://[^/].$ ;

imported from backoffice. but still i cant reach

Former Member
0 Likes

your regex simply doesn't work.

start simple e.g. with

 $siteUid=mysite
 INSERT_UPDATE CMSSite ; uid[unique=true] ; urlPatterns ; 
 ; $siteUid ; (?i)^https?://[^/]+(/[^?])?\?(.\&)?(site=$siteUid)(|\&.)$,(?i)^https?://$siteUid.[^/]+(|/.|\?.)$,(?i)^https?://localhost:9002.*$ ;


hope that helps, regards, Norbert

Former Member
0 Likes

now it says

.storefront.filters.cms.CMSSiteFilter@7f1ab6b5'!; nested exception is java.lang.IllegalStateException: Site is not active. Active flag behaviour must be implement for this project.] with root cause java.lang.IllegalStateException: Site is not active. Active flag behaviour must be implement for this project.

Former Member
0 Likes

ok so your site seems not to be active. i would suggest you activate it, then.

Regards, Norbert

Answers (0)