Posted by MBR on December 14, 2011 at 2:33am
Start:
2011-12-15 18:45 - 21:00 America/New_York Organizers:
Event type:
User group meeting
The Drupal Self-Help Group will meet again on Thursday, December 15, 2011. (NOTE CHANGED ROOM)
This week we'll be meeting in the Community Room in the basement of Robbins Library.
We'll share our questions and help one another figure out our problems.
-
Location: (NOTE CHANGED ROOM)
Robbins Library (Click here for a map)
700 Mass. Av., Arlington
In the Community Room, downstairs in the library's basement. - Dates: Alternate Thursdays
- Time: 6:45 PM to 9:00 PM
-
Public Transit:
Take the Red Line to Harvard Square Station.
Transfer to the 77 bus to Arlington Center (Mass. Ave. and Pleasant St.).
Robbins Library is on Mass. Ave. 1/2 block past Pleasant St. -
Driving Directions:
Take Route 2 to Route 60/Pleasant St. (exit 59).
Turn onto Pleasant St. toward Arlington.
Go one mile to Mass. Ave.
Turn left onto Mass. Ave.
Go half a block. Library is on the left. -
Parking options:
Comments
Mobile Dev Environment
I'm just posting this so that I can ask questions at the meeting (but if anyone know anything about the topic, I appreciate that too!)
Basically, I'm having difficulty setting up my develop environment for Drupal mobile website. I have configured D6 with multi-sites with desktop version (mysite) and mobile version (m.mysite), and they are working fine as multisites configuration.
Mobile Tools module properly redirects access from mobile devices to m.mysite. So, as long as I can access to the D6 using http://mysite or http://m.mysite, I can properly see desktop/mobile theme respectively. On my PC, the hosts file is configured so that both mysite and m.mysite to point 192.168.1.100, which is the D6 server. Everything is fine so far.
When I try to access from Android and iPhone, I can't modify the hosts file (unless I root/jailbreak the device, which I won't). If I access using http://192.168.1.100, the Mobile Tools redirect the connection to http://m.mysite, but the phone doesn't know the IP address of m.mysite and get stuck.
So, instead of the hosts file, I need somehow resolve m.mysite to 192.168.1.100. The following is the list of issues doing so.
These are too specific to my dev environment, but I guess there are many developers who have the same difficulty.
NobuT
DNS configuration for devel environment
My Verizon-supplied router actually has a little DNS server of its own. I simply add an entry into the list of addresses that it maintains, and then any device that uses my router (and is configured to get DNS from the gateway, which is the default for most devices using DHCP) is directed as desired.
My router is an ActionTec MI424WR, but I think most Linksys routers will do this as well. And if not, you could always use dd-WRT.
That's I want, but...
Thank you. That's exactly what I want! I wish I had FiOS. Your router is ideal to solve my solution, but I have Comcast... My D-Link router doesn't support dd-WRT.
So, I think my question comes down to "Is there any router that have a little DNS server (or can add an entry on top of ones from the real DNS server), with reasonable price and gigabit?" I'll try Amazon but if anyone knows, please let me know.
NobuT
It sounds like what you want
It sounds like what you want is for requests for http://mysite to go to one site and request for http://m.mysite and http://192.168.1.100 to go to the other.
If you are using apache virtual domains to do the selection, then just put m.mysite as the "default" site in apache, and mysite as a virtual domain. m.mysite will NOT match mysite and fall over to the default.
If you are using drupal multi-site to do this, then put the mobile site in the "default" site directory, create a mysite directory, and then symlink a m.mysite site directory to the default.
Drupal part is fine
Thank you, Richard. The Drupal portion is working fine (apache configuration, etc.) Simply, the mobile devices can't access the server using domain name (mysite or m.mysite). So, this is an IT question rather than Drupal question, I realized...
NobuT
dnsmasq as DNS server
I've researched more, and found that dnsmasq may be the solution. So far, I only see tar ball, but if there's any Mac OS X installer, it would be nice.
My plan is
1. Disabled the router's DHCP functionality. The router's DHCP server doesn't allow to customize DNS server.
2. I happen to have a Mac Mini using as a file server. I'll install dnsmasq to it.
3. Make dnsmasq to work as a DHCP server first. That way, DHCP server specifies the DNS server (which happens to be the same Mac Mini).
4. Configure dnsmasq to resolve my own host names (mysite and m.mysite).
The mobile device should not need any changes in configuration, because, if I do it right, it gets the same IP from the new DHCP server, plus pointing the DNS server to dnsmasq, and dnsmasq resolves both internal host names and outer servers (through ISP's DNS server).
The only thing is that, I don't have any experience in installing X-Code, port or homebrew, not to say dnsmasq. But I'll try.
NobuT