Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localhost is accessible instead of wordpress-docker.test #7

Open
aadi-khan opened this issue Sep 15, 2021 · 1 comment
Open

localhost is accessible instead of wordpress-docker.test #7

aadi-khan opened this issue Sep 15, 2021 · 1 comment

Comments

@aadi-khan
Copy link

aadi-khan commented Sep 15, 2021

Hi there,

I've followed along with these settings but I am not able to access the installation on 'wordPress-docker.test' but I can access the localhost to install.

I am using Ubuntu 20 LTS on my windows 10 over WSL 2.

Localhost does not use the SSL either.

@gralka
Copy link

gralka commented Nov 28, 2021

Hi @aadi-khan!

Have you included a new entry in the /etc/hosts file on your WSL instance to point to 127.0.0.1 to wordpress-docker.test? If you haven't done so, your browser won't know where wordpress-docker.test is, and any other attempts to find it through DNS will fail because the domain doesn't exist—it's a test domain.

In this case, we want it to understand that it is the same location as localhost. You'll want to add a line in the block towards the top of the file. The first few lines should look something like this (although, in your case, perhaps it won't look exactly the same):

127.0.0.1    localhost
127.0.0.1    wordpress-docker.test

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants