bsmither Posted February 24, 2020 Share Posted February 24, 2020 I am playing around with Nginx and need to know what the try_files equivalent to Apache's rewrite rule for CubeCart would be. Link to comment Share on other sites More sharing options...
bsmither Posted February 26, 2020 Author Share Posted February 26, 2020 Well, after spending two days trying to uncover why Nginx isn't rewriting the URLs, I have come to understand that Nginx (at least, the variation I installed) does not have the rewrite module included. From dozens (dozens!) of articles on how to write rewrite directives, one would think one of them would have noted the need to have this module. One would think that Nginx would complain that it doesn't understand a directive it doesn't know how to execute. In general, I hate Linux! Link to comment Share on other sites More sharing options...
bsmither Posted March 4, 2020 Author Share Posted March 4, 2020 Well, I got it working. I had to uninstall the version that got installed from the 'official' package repository, install the latest version from the Nginx site, and come to understand that, supposedly, the rewrite module is already part of the program. Yet, rewriting still wasn't happening. The process of rewriting URLs in Nginx is a bit different than how Apache (presumably) does it. Correcting the syntax then got things working. Now, I must have messed up some other thing as regards overall system operation. It seems I removed myself (User 0 and the only user) from all the groups, including the sudo group membership. I was given to believe that was impossible. I hate Linux. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.