permalinks with reverse proxy

Hi
My public domain is http://www.example.com, this is a reverse proxy apache.
my website sits on 172.10.10.1/wordpress(for ex).
I want to enable the permalinks but i get 404 with everything i tried.
My questions:
1. should the reverse proxy pass be 172.10.10.1/wordpress or 172.10.10.1
2. what should i write as the site url and wp adress in wp settings?
3. what should be written in the .htaccess file for the rewrite?

Thanks alot
Asaf