Re: [users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-09 Thread Sergei Franco
Hi, I believe I figrued this out (finally I hope :)). The real solution to this problem is not putting rewrite rule for proxy to php-fpm in but to do the following: RewriteCond %{REQUEST_URI} -U RewriteRule (.*\.php)$ fcgi://IP:PORT/$1 [P,L] Outside of the tags and inside of the tags. I t

Re: [users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-09 Thread Sergei Franco
Hi, It appears that the problem is not solved. Here is a scenario where it fails: having .htaccess with RewriteEngine On (or any RewriteRule) will "disable" RewriteRules defined inside of the in the site conf. How to replicate: Have a basic with any simple rewrite rule, I used 'RewriteRule .

Re: [users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-09 Thread Edgar Pettijohn
I'm glad you found it. On 07/08/2014 11:17 PM, Sergei Franco wrote: > Hi Edgar, > > I found that I was wrong about .htaccess not working inside of > tag: > > RewriteMap and standard rewrite lookup of the user dirs goes here > > > Standard directory conf goes here > >

Re: [users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-08 Thread Sergei Franco
Hi Edgar, I found that I was wrong about .htaccess not working inside of tag: RewriteMap and standard rewrite lookup of the user dirs goes here Standard directory conf goes here RewriteRule ^(.*\.php)$ fcgi://IP_OF_THE_FPM:FPM_PORT/$1 [P,L] Basically the sec

Re: [users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-08 Thread Sergei Franco
Hi, Here is (redacted) portion of virtual section I use (I replaced real IP address with [IP]): RewriteMap vhost dbm=db:/[somepath]/vhost.db RewriteMap port-fpm dbm=db:/[somepath]/fpmports.db RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ RewriteRule ^.*$ - [E=WEBSITE:%1] RewriteCond ${vhost:%{

Re: [users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-08 Thread Edgar Pettijohn
On 07/08/2014 06:00 PM, Sergei Franco wrote: > Hi, > > I am using apache 2.4.7 with mod_proxy_fcgi for purpose of passing > through php to php-fpm (this will be used for shared hosting > environment). > The htaccess works fine for non php files, but once it hit rewrite > rule that proxies through

[users@httpd] mod_proxy_fcgi not honouring .htaccess, work around needed.

2014-07-08 Thread Sergei Franco
Hi, I am using apache 2.4.7 with mod_proxy_fcgi for purpose of passing through php to php-fpm (this will be used for shared hosting environment). The htaccess works fine for non php files, but once it hit rewrite rule that proxies through the php requests, the htaccess is ignored. I know why it i