This is not a question, but rather a helper for anyone else out there that may prefer to develop on NGINX in their localhost;
My AC version is 1.2.9, laptop running Mintlinux 18.1 with Nginx 1.10 and PHP-FPM 7 and Mariadb.
Note , because it is in localhost, and I need speed, there is no SSL configuration. Ask if you need help with that.
Also, I have nginx running as me , so it is capable of writing log files to where it easiest for me to get them!
So, my /etc/nginx/sites-available/default has this added to it:
server {
listen 80;
server_name mydomain.com;
access_log /home/onyx/logs/abantecart.log;
error_log /home/onyx/logs/abantecart_error.log ;
# root is AbanteCart's public_html directory
root /home/onyx/htdocs/abantecart;
index index.php index.html index.htm;
# Prevent directory listing
autoindex off;
# rules applied in root of our config
location / {
# include AbanteCart rules
try_files $uri $uri/ $uri.php @abantecart_rules;
# php settings (may differ on your server)
location ~ \.php$ {
#fastcgi_pass unix:/var/run/php5-fpm.sock;
#change this to suit your setup for fastcgi!!
fastcgi_pass 127.0.0.1:9001;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
include fastcgi_params;
}
}
# rewrites our query strings properly for AbanteCart
location @abantecart_rules {
rewrite ^(.*)\?*$ /index.php?_route_=$1 last;
}
# No direct access allowed for .tpl files
location ~ \.tpl {
deny all;
}
}
Then in /etc/hosts you will need
127.0.0.1 mydomain.com
Don't forget you need to edit these as Superuser, and then restart the nginx server with
sudo service nginx restart
Questions and comments welcome