If you need to integrate PayPal into your website. PayPal has some good sample code for you.
On a few of my servers I use Apache with Apache Tomcat. and ProxyPass to forward requests from apache over to Tomcat for my Coldfusion pages. The part I have been struggling with for so long was how to do password protected directories in apache. Either by adding the config to the VirtualHost directive or by .htaccess. It seemed no matter what I did, requests were getting proxied and there was nothing I could do about it. Tonight I finally found my answer: The ProxyPass ! combo: ProxyPass /dealers/ ! Here is the whole apache configuration I use for connecting Apache to Tomcat and URL Rewriting: I found this mentioned on a Sitepoint Post