php - Working with pretty urls on apache and fastcgi after hhvm installation -



php - Working with pretty urls on apache and fastcgi after hhvm installation -

i needed slim php work pretty urls using .htaccess, no problem.

rewriteengine on rewritecond %{request_filename} !-f rewriterule ^ index.php [qsa,l]

now ran using hhvm, fastcgi using virtual host config.

<virtualhost *:80> servername project.dev serveralias www.project.dev documentroot /var/www/project proxypassmatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/$1 <directory "/var/www/project"> allowoverride order allow,deny allow </directory> </virtualhost>

of course, won't read .htaccess file, thought of adding .htaccess config in virtual host config, no, won't work.

like so:

<virtualhost *:80> servername project.dev serveralias www.project.dev documentroot /var/www/project proxypassmatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/$1 <directory "/var/www/project"> allowoverride order allow,deny allow </directory> rewriteengine on rewritecond %{request_filename} !-f rewriterule ^ index.php [qsa,l] </virtualhost>

this isn't hhvm issue, more trying rewriting @ same time proxying.

doing quick google search yields another answer might help.

php apache .htaccess fastcgi hhvm

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -