Tuesday, July 17, 2007

Apache2 proxy on vservers

I have recently changed my internal structure from chroot to vserver, and therefore i was able to split my development system from my live system.

But unfortunately that also meant that there is only one vserver who gets the port 80 requests. I thought a long time about that and decided there must be a possibility to use apache2 as a proxy, but also to use wildcards. (I did not want to have multiple files on different systems).

For that i have installed apache2 on both machines. On the live one i have one configuration file for all proxy requests:

<virtualhost>
ServerName www.sub.example.com
ServerAlias *.sub.example.com

CustomLog sub.example.com-access.log combined
ErrorLog sub.example.com-error.log

ProxyRequests On

<proxy>
Order deny,allow
Allow from live-ip
</proxy>

ProxyPass / http://develop-ip/
ProxyPassReverse / http://develop-ip/
ProxyPreserveHost On
</virtualhost>
That way all Requests are send to the development vserver and i don't have any more headaches about it.

See also:
http://www.debian-administration.org/articles/358
http://kpumuk.info/ruby-on-rails/upgrading-apache-to-version-2-2-in-debian/

Monday, July 09, 2007

iTunes has detected an iPod in recovery mode

I have an iPod of the 5th Generation for about a year now and use it whenever i can. At work i use iTunes to control the iPod, but i am not using it for sharing my music otherwise.

Now i had this problem that iTunes showed an Error "..iPod in recovery mode.." ... what the hack? Since i sync my iPod with my home iTunes i had to recover it there (although it did not have any Problems).. now i tried it again at work: same Problem..

After a quick search i found this: http://docs.info.apple.com/article.html?artnum=304503

It suggest that the Drive Letter the iPod wants to use is used already... and that was the whole Problem all the time.

Now i ask: Why the hell could it not say it at the first sign? I mean it did never occur to me that this could be a Problem.

The Drive Letter support with USB and Network was always a Problem with XP (which had to be configured by hand) but at least there could be some information at iTunes.