Jump to content

Friendly URL is working BUT only on 127.0.0.1


Recommended Posts

I have a clean LAMP install (Linux Mint 17.2) on my local network.

After that I ran "brconfig --appurl" to run my prestashop from root: http://127.0.0.1 instead of http://127.0.0.1/prestashop.

$ sudo /opt/bitnami/apps/prestashop/bnconfig --appurl / 

After that I manually changed the settings in the backoffice at SEO & URL's:

Shopdomain: 83.32.x.x:8080

SSL Domain: 83:82.x.x:8443

Base URI: /

 

When I do this the site is accessible from the internet as well as from my local network.

 

Then I switched on Friendly URL's in the backoffice at SEO & URL's:

 

After that the site is still accessible BUT no images from articles AND no detailpages anymore.

 

When I change Shopdomain and SSL Domain back to 127.0.0.1 the Friendly URL's and detailpages work.

But only from my webserver due to the browser resolving to localhost (127.0.0.1).

 

At least I need it to work from the internet (obviously) but is would be nice if it worked from the webservermachine and other local network machines.

 

After that (and after testing period) it should by working from the same webserver but by calling a domain name.

 

 

Please help and thank you for that

Link to comment
Share on other sites

Wow, found the fix myself !

sudo /opt/bitnami/apps/prestashop/bnconfig --machine_hostname NEW_DOMAIN

I ran the above command --machine_hostname 83.82.x.x

 

and the website is showing from the webserver as well as from other local network machines.

And also from external machines over the internet.

 

See here for more details: https://wiki.bitnami.com/@api/deki/pages/495/pdf

Edited by BertGr (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...