I am getting back to EE again, but this time, the server I have to work with is using NGINX which I am not familiar with. What do I need to do to enable friendly urls and other essential setup since there is no htaccess file to use with this. Treat me as a newbie for the most part if possible and I apologize if this has been discussed. Just looking for info with the latest version here.
Also, when i did the EE_WIZARD, it tells me that I am failing for “URL Segment Support”, what can I do for this?
Thank you for replying. Not much in there. I tried putting what you have and it gave me a 500 error, not sure what it was
server {
listen 80;
server_name blog.com www.blog.com;
root /home/nginx/domains/blog/public/;
index index.php;
access_log /home/nginx/domains/blog/log/access.log combined buffer=256k flush=60m;
error_log /home/nginx/domains/blog/log/error.log;
include /usr/local/nginx/conf/503include-main.conf;
include /usr/local/nginx/conf/staticfiles.conf;
include /usr/local/nginx/conf/php.conf;
include /usr/local/nginx/conf/drop.conf;
#include /usr/local/nginx/conf/errorpage.conf;
include /usr/local/nginx/conf/vts_server.conf;
location / {
index index.html index.php;
try_files $uri $uri/ @ee;
}
location @ee {
rewrite ^(.*) /index.php$1 last;
}
}
Lot of includes you have 😉
Seems there are to many internal rewrites. I would start with a simple all-in-one config, and split it up later. Cut out what you not really need. Also, the order of the rules may be important, if i remember right.
Look here https://www.nginx.com/resources/wiki/start/topics/recipes/expressionengine/ for a starting point.
And in the EE config try setting this: $config[‘uri_protocol’] = ‘AUTO’; but this may differ from OS to OS.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.