How can I access a wordpress website running on localhost from safari on a mac install running in virtual box?
Situation:
For developing a wordpress website I am running a windows machine with an Apache webserver. For testing the website in Safari I am running virtual box with mac installed.
Now I need to access http://localhost on my windows machine from the emulator to test the wordpress website. I can do that by accessing http://10.0.2.2 from the safari browser. This works fine for any normal website, but a wordpress website will redirect to the registered 'siteurl', which is 'http://localhost'. So accessing http://10.0.2.2 from the safari browser will redirect to http://localhost and of course there is nothing there for safari within the mac emulator.
I tried changing the ip address of the Apache server to 10.0.2.2, by changing httpd.conf and change Listen 80
to Listen 10.0.2.2:80
. This works fine for any other ip address, but with this particular ip address Apache does not start up.
Any ideas?
Aucun commentaire:
Enregistrer un commentaire