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

Specify URL rather than auto-populated the Wordpress address and Site address #5

Open
natea opened this issue Oct 7, 2013 · 4 comments

Comments

@natea
Copy link

natea commented Oct 7, 2013

It would be nice if the site URL could be specified during creation, rather than auto-populated. You can see that it's included the port 49166, but I want it to answer on port 80. Until I removed the :49166 in the Wordpress admin, it was forwarding the requests from port 80 to port 49166, and this is what was showing up in the URL bar in my browser.

wordpress-site-with-port

@jbfink
Copy link
Owner

jbfink commented Oct 21, 2013

Hey @natea, somehow I totally missed you posting this. Yeah, I have wrestled with the (imho) totally dumb requirement Wordpress has to hardcode a URL/port and I'm still not exactly sure how to do it. Something in the script to wait for input and ask for a URL maybe? What do you think?

@lautreamont3
Copy link

Not an expert but I think that WP stores in database what you send to him (if it has a port number he stores port number) so if you in command line specify port (-p 80:80) then container get new IP adress (0.0.0.0). Just add to your /etc/hosts something like:
0.0.0.0 my_wp_site.dev
and you can reach WP with http://my_wp_site.dev and that goes to database.

@jbfink
Copy link
Owner

jbfink commented Nov 13, 2013

Wouldn't adding 0.0.0.0 in /etc/hosts cause problems? It's the broadcast address, so I'd think there'd be a danger of having everything redirect to my_wp_site.dev?

@lautreamont3
Copy link

I was just pointing simple way for addressing problem. Give container fixed address and give fixed address simbolic name.
Since 6.5 its posible to set port -p 127.0.0.1:80:80 so you could add 127.0.0.1 my_wp_site.dev to /etc/hosts or just use localhost.

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

3 participants