Closed punchmonster closed 4 years ago
for now I'm working around this by using
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
also tried copying the app.lua
file like the person here did but that also did not work.
The port wouldn't have anything to do with that error. The error is saying it's not able to load your app.lua file after searching for it via the package path. Perhaps your changes to the port also changed the working directory, or the permissions the process has for reading files.
Going to close this since we don't really have any other info to work form.
Keep in mind 80 is a protected port by default, so generally you will need to configure your nginx process to have main process as root (or a user that has permissions) but have workers switch to another user.
But, the error you shared is from something else.
When I run my app on port 8080 for development, everything works fine. When I run it on port 80 however I get this error? Makes it impossible to use for a production site.