I am a web developer. I want to test how my website work on mobile and on pc. I am using xampp and codeigniter.
I created a virtual server like: rssfeed.local. It works properly on my pc. But I want that when I type above url in safari of my Ipod, It will also work.
So i change the ip of my pc to a static ip. Ex: 192.168.1.100 the ipod will understand and go to that website on my pc. But when i type rssfeed.local, the ipod does not understand.
Can you show me how to configure the apache for that purpose?
You have 4 options here:
You would need to have a server, where you connect to with your iphone and your website and configure the DNS.
You need a router where you could configure DNS settings in, connect the internal ip address to a DNS.
Edit the hosts file on your iphone, and for that you would need to jailbreak it.
Use some software as a proxy tool, where the tool can translate the url to the internal ip address.
you can try change your HOSTS file, its location in the c:\\windows\\system32\\drivers\\etc add an item like "rssfeed.local 192.168.1.100" in the document below. well,work done.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.