httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khodadadeh <>
Subject [users@httpd] Apache 2.4 with PHP-FPM
Date Mon, 29 Aug 2016 12:18:51 GMT
I have installed PHP-FPM 5.6  and Apache 2.4 with mod_proxy and 
I have two web sites on my server. One Magento and the other one that is 
written using Laravel framework.

Magento has URLs like:
index.php exists in document root.

Laravel has URLs like:
help.php does NOT exist in document root. It will be rewritten to 
index.php (using mod_rewrite).

Currently I have this directive to connect to my PHP installation:

ProxyPassMatch "^/(.*.php(/.*)?)$" 

This works fine for Magento but when I browse Laravel URL(a non-existing 
URL with .php in it), it shows me "File not found" message.

If I switch to mod_rewrite  instead of mod_proxy_fcgi, I'll have laravel 
URl working but not Magento:

RewriteCond %{REQUEST_URI} "^/(.*.php(/.*)?)$"
RewriteRule ^(.*)$ 

Is there any solution that I can use that ensures rewrite rules will be 
working and PATH_INFO is set?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message