problem with htaccess and cgi files on cgi-bin directory

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Moderators: dwhittle, Ian

problem with htaccess and cgi files on cgi-bin directory

Postby plinio » Mon Oct 11, 2010 5:39 am

Hello,

I've deployed an application (sf 1.4) on a shared hosting, but i have to connect it to a electronic payment module, which runs on some cgi scripts (located on cgi-bin directory). The sysadmin already configured the server so i can execute this files, in fact, in order for webpay (that's the name of the electronic payment mod) to work, i also need a static ip and some extra permissions, so all that has already been configured.

My problem is with the .htaccess file. I've tried several ways to make some rule that won't allow the front controller to process the cgi scripts, i've tried things like
Code: Select all
RewriteRule cgi$ - [L]

or even tried skip the <ifModule> part with [S=1], but nothing seems to avoid that ANY url which starts with cgi-bin won't get processed by index.php, so i constantly get a 404 error because sf is trying to access a cgi-bin module, which of course doesn't exist.

I've already removed the generic rules on the routing.yml, btw.


Any help would be really appreciated :)
plinio
Junior Member
 
Posts: 1
Joined: Mon Oct 11, 2010 5:19 am

Return to Installation and setup

Who is online

Users browsing this forum: No registered users and 1 guest