Nginx configuration for aMember

Here is Nginx configuration for aMember script

location ~* ^/amember/.*\.(js|ico|gif|jpg|png|css|swf|csv)$ {}
location ~* ^/amember/setup/index.php$ { try_files not-existing-file @php; }
location ~* ^/amember/js.php { try_files not-existing-file @php; }
location ~* ^/amember/index.php$ { try_files not-existing-file @php; }
location ~* ^/amember/public.php$ { try_files not-existing-file @php; }
location ~* ^/amember/public { rewrite ^.*$ /amember/public.php; }
location ~* ^/amember/setup { rewrite ^.*$ /amember/setup/index.php; }
location ~* ^/amember { rewrite ^.*$ /amember/index.php; }
location ~* /amember/data/public/* {}
location ~* /amember/data/.* {internal;}

location ~ \.php$ {
   try_files not-existing-file @php;
}

location @php {
  fastcgi_pass 127.0.0.1:9000;
  include fastcgi_params;
}

See Nginx

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *