I have rails running with the rails goldberg content management system
which is doing some user authentication etc. I also have OSCommerce
running. My public_html is a symbolic link to my rails app directory.
OSCommerce is installed in /public_html/osc and this works fine.
However the admin pages for OSCommerce are located at
/public_html/osc/admin and are restricted using .htaccess and BasicAuth.
My problem is that when I try to access the admin for osc, the authorize
is getting picked up by rails and rails shows a 404 not found. If I
stop rails then the osc admin authentication works. I fairly sure that
rails is grabbing the 403 authorize and therefore breaking osc for me.
How can I stop rails from grabbing the 403 authorize for this
I have experimented with restricting the directory in the .htaccess file
in my rails app directory, but whilst this allows me to get access to
the /osc pages it doesn’t work for the /osc/admin pages as it is the 403
authorize request that gets grabbed, not the request for the initial
So far the only way I have managed to get around this is to stop the
Basic Auth in the .htaccess file in /osc/admin and replace it with an ip
allow to allow a specific ip address access only and hence not requiring
Basic Auth, but this is not ideal as I am not on a static IP and need to
keep SSH’ing in and changing the IP Address in the .htaccess file.
Any help would be greatly appreciated.