User Tools

Site Tools


how_to_run_litecart_on_nginx

How To Run LiteCart On Nginx

Nginx configuration example

server {
  server_name litecart.local;
  listen      80;

  root        "/var/www/litecart";
  index       index.php index.html index.htm;

  error_page 401 "Access Forbidden";
  error_page 403 /error_document?code=403;
  error_page 404 /error_document?code=404;
  error_page 410 /error_document?code=410;
  error_page 500 "Internal Server Error";

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~ \.php$ {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
  }

  location ~ /\.ht {
    deny  all;
  }
}
how_to_run_litecart_on_nginx.txt · Last modified: 2018/02/06 01:45 by admin