-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phalcon + nginx + php_fpm #22
Comments
Hi @netandreus, your document root should include the public directory too. set $root_path '/home/andrey/sandbox/$host/public' And rewrite ^/(.*)$ /index.php?_url=$1; regards, |
It works. Thanks a lot! |
It should be noted using rewrite is not the recommended way to handle front controllers for nginx. Instead, use this: try_files $uri $uri/ /index.php?_url=$uri&$args; Using this will only rewrite urls to files that don't exist. Urls to assets like images and css will go through unmolested. |
I'm using such way: |
Fixed spelling of Utils::addSlashes() which fixes error on line 578 of Library/ClassMethod.php
formy Webserver ( nginx) this doesnt resolve anything. I still get also the Error page Please enable rewrite module on your web server to continue any special params for create-project for nginx instead of apache2? |
@jerejones , You're the greatest coder in over the world! Thx a lot. |
I can't fix given that I'm using Vagrant server {
listen 80;
server_name localhost.dev;
root /var/www/html/public;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
} |
Hello, how can i setup phalcon test app in nginx environment?
I receive this error message:
Mod-Rewrite is not configured!
Seems that your mod-rewrite module is missing or not configured. Enable it to get this application working properly.
Phalcon installed at /home/andrey/sandbox/phalcon.dev
nginx config:
The text was updated successfully, but these errors were encountered: