Jump to content
Sign in to follow this  
id369k

Nginx configuration Issue

Recommended Posts

Posted (edited)
16 minutes ago, Forum Admin said:

Correct, there is no install folder as eCommerce Suite uses URL rewrites to process URLs.  Just upload all files, then go to the /install folder to run the installation.

https://www.jrox.com/watch-video/aLz_4eZwm6w

 

mydomain.com/install/ = gives an 404 error.
The rules in the file ".htaccess" do not work in nginx.

Edited by id369k

Share this post


Link to post
Share on other sites
Posted (edited)

I'm tried on Apache and it works. How can I run installer in nginx?

Edited by id369k

Share this post


Link to post
Share on other sites
2 minutes ago, Forum Admin said:

try mydomain.com/index.php/install/

It works and is tested in Apache.

Yes, in Apache it works.
/index.php/install/ in nginx does not work
We need a way how to transfer these URL rewrites rules to nginx config.

Share this post


Link to post
Share on other sites

Try:

 

# nginx configuration by winginx.com

index index.php index.html;

location / {
  rewrite ^/system.* /index.php?/$1 break;
  if (!-e $request_filename){
    rewrite ^(.+)$ /index.php?/$1 break;
  }
}

 

Share this post


Link to post
Share on other sites
21 minutes ago, Forum Admin said:

Try:

 


# nginx configuration by winginx.com

index index.php index.html;

location / {
  rewrite ^/system.* /index.php?/$1 break;
  if (!-e $request_filename){
    rewrite ^(.+)$ /index.php?/$1 break;
  }
}

 

Thanks for the solution, but unfortunately it does not work.
When I try mydomain.com/install, the browser offers to save file every time with random name, like: 2BknpT_8, pndec37h, etc. (4 989 bytes, this is index.php)

Share this post


Link to post
Share on other sites

Even on request, you could not provide a working configuration for your installer. You are losing potential customers. Nginх is more professional than Apache.

Config for nginx:
location / {
try_files $uri $uri/ /index.php;
}

It works.

Share this post


Link to post
Share on other sites
48 minutes ago, id369k said:

Even on request, you could not provide a working configuration for your installer. You are losing potential customers. Nginх is more professional than Apache.

Config for nginx:
location / {
try_files $uri $uri/ /index.php;
}

It works.

thanks for the feedback.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...