Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 23, 2013 12:24 pm 
Offline
Senior Member

Joined: Fri Nov 02, 2012 4:20 pm
Posts: 60
I have Apache 2.4 set up with PHP-FPM on a server. To pass from Apache to PHP-FPM I use the following:
Code:
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/hosting_files/site.com/admin_secure/$1


"admin_secure" is the DocumentRoot in the vhost.

In that directory, I have a .htaccess file that contains the following:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>


The site works, right up until I try to access something that should be in the "webroot" directory. For example, if I go to "vendors/kcfinder/browse.php" which is inside the "webroot" directory, I get a "File not found" error. If I go to "webroot/vendors/kcfinder/browse.php", it works.

I've turned on rewrite and proxy logging, and it looks like the rewrite never takes place. It just sends whatever I type in the URL (if it's a PHP file).

Is there a way to write my ProxyPassMatch statement to take in rewrites like that?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group