Jump to content

How to move Apache rewrites into Nginx


Tech Support
 Share

Recommended Posts

If you want to get rid of Apache and have your site working purely on Nginx, please consider these steps to migrate Apache-specific configurations into Nginx.

NOTE: we do not support this officially. Apache + mod_rewrite will still be required for KVS and all functionality we add or change in KVS is always tested in Apache environment. We cannot guarantee these steps are everything you need to migrate to pure Nginx. Also we cannot guarantee that any future features will work in pure Nginx environment or will not require changes in Nginx configuration to make them working correctly.

Nginx should set the following environmental variables which are typically set by Apache:

  • REMOTE_ADDR
  • SCRIPT_FILENAME
  • SCRIPT_NAME
  • REQUEST_METHOD
  • QUERY_STRING
  • REQUEST_URI
  • DOCUMENT_ROOT

These are typically set by default fastcgi configuration, but worth mentioning.

You can find nginx rewrites in _INSTALL/nginx_config.txt file in your installation archive.

 
Link to comment
Share on other sites

  • Tech Support changed the title to How to move Apache rewrites into Nginx
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...