wiki:GoogleDrive

Google Drive

Google Drive has two bugs:

  1. It ignores the proxy port number, so it always contacts the proxy on port 80 no matter what.
  2. It ignores the settings for "Bypass proxy settings for these Hosts & Domains".

So the usual workaround for buggy apps to add hosts to the "Bypass" list doesn't work for Google Drive. Thus, there is no official/recommended way to get Google Drive to work when using GlimmerBlocker.

You should pester Google about those bugs so they will get fixed, e.g. in its forums.

 

The non-recommended hack

There is one workaround, but I cannot recommend this for most users as it entails modifying important system files and using command line as root using Terminal.app

First, create a file named /etc/apache2/other/googledrive.conf with the following content:

ProxyRequests On
<Proxy *>
	Deny from all
	Allow from 127.0.0
</Proxy>

Note: I've had trouble with apache not starting if I add a "Order Deny, Allow" line. My test showed that it uses this order by default, so I've left it out.

You can only create the file as root, so copy the above into the clipboard and run the commands:

pbpaste | sudo sh -c 'cat > /etc/apache2/other/googledrive.conf'

Verify the content of the file using:

cat /etc/apache2/other/googledrive.conf

It's very important that this command shows that the file has the above content.

Now start apache. There is no longer a option for this in the sharing control panel, so you need to run the command:

sudo apachectl restart

This will not keep apache running after a restart of the Mac, so you need to issue this command after each restart.

Removing the hack

When Google has fixed the bugs, you should remove the above. Use the following commands:

sudo rm /etc/apache2/other/googledrive.conf
sudo apachectl stop
Last modified 21 months ago Last modified on 08/07/12 12:56:45