Jump to content
  • 0

Nginx And Blesta


smicroz

Question

Hi,

 

I install blesta in nginx webserver, I add 

# Ported from Blesta's .htaccess
# There are more than one way to accomplish this.
# You can use try_files rather than using IF ... rewrite; 
location / {
  error_page     404 = @blesta; #IF file doesn't exist
  log_not_found  off;
# For access to install file  
if ($request_uri ~ "^(.*)/install.php$"){
    rewrite install.php /%1/install/ redirect;
  }
}
 
#Core rewrite
location @blesta {
  rewrite ^(.*)$ /index.php last; 
}

This works, but for some reason when navigate for blesta, the url include index.php, example

 

h ttp://blesta.midomain.com/index.php/client/login

 

instead of 

 

h ttp://blesta.midomain.com/client/login

 

Any suggestion?

 

Rgds

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...