Kevin
Kevin

Reputation: 928

Vagrant and wordpress not working

Recently I have started using vagrant for Wordpress development.

The installation process and everything else went well. But when i try to access the page I get to see this: enter image description here

It also loads really slow. Any ideas?

Upvotes: 0

Views: 102

Answers (1)

jsfan
jsfan

Reputation: 1373

To be able to resolve salesacademie.dev, you will need to add the name to your hosts file. The line you need should look something like

salesacademie.dev  127.0.0.1

With that change, you should be able to download the assets (and the site) using that name assuming that vagrant's port forward is for port 80 (the standard http port).

Alternatively, you can reconfigure your Wordpress to not use the name salesacademie.dev but 127.0.0.1 instead. Then, you don;t need to edit your hosts file. However, you will not be able to run several websites concurrently on your vagrant server then.

Upvotes: 1

Related Questions