Reputation: 673
may I ask question about the Apache Virtual Host config?
I use XAMPP, my develop app is Wordpress.
I have configured my host file (C:\Windows\System32\drivers\etc...) like
127.0.0.1 tommydo.dev
127.0.0.1 172.25.129.113/tommydo.dev <== *172.25.129.113 is my local PC's IP address*
and C:\xampp\apache\conf\extra**httpd-vhosts.conf** like:
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/tommydo.dev"
ServerName tommydo.dev
</VirtualHost>
It was successful when I access from my PC (LAN). With URL: http://tommydo.dev
But when I access from another computer using http://172.25.129.113/tommydo.dev is was broken. Of course ! Because of my Wordpress config is "tommydo.dev" only.
My question is: Is it possible to configure or access from another PC to my WP in localhost in my own PC?
Upvotes: 1
Views: 53
Reputation: 3562
Get Apache to listen to 172.25.129.113
on port 80
. Use the following to listen to Port 80 on all interfaces
Listen 80
On the other computer try going to http://172.25.129.113
You could end up with 404 errors with the path http://tommydo.dev. This could be solved by
172.25.129.113 tommydo.dev
Also
127.0.0.1 172.25.129.113/tommydo.dev
is invalid because the second part is not a hostname
Upvotes: 1