I am running Nginx and PHP on Windows 10. When I access 127.0.0.1 or 127.0.0.1/info.php, I get the Nginx welcome screen and PHP output, respectively, so it seems the system on which I am trying to run Grav-admin is working. This is just for a local testing environment, this is not being served publicly on the web. I am not using WAMP or any third party server administration, I just have PHP and NginX installed manually.
I was actually able to run Grav admin one time successfully. I created an account, logged in, and browsed some themes. I thought everything was set up perfectly. I did not make any changes or adjustments, I just clicked around to explore the interface.
However, that was Friday. I shut down the computer over the weekend, came back Monday, and now when I open 127.0.0.1/grav/index.php, I get a 403 Forbidden error. The rest of the system, the NginX and PHP, appear to be working as they did before. I don’t think I changed anything, but it would appear that most likely something about rebooting the system has affected Grav’s access rights or something.
How do I resolve this error so that I can once again open up the Grav admin interface?
I did edit it somewhat following advice of some different online tutorials, but I would not be able to separate out which changes came from which source, or which problem they were trying to solve.
My suggestion is to get things working with a simple configuration (like the one we include as webserver-config/nginx.conf in the Grav package. After it’s working with that then feel free to ‘slowly’ enhance it to your needs.
Please note, it was never my intention to implement new features. The nginx.conf file I have was the result of simply trying to get NginX to work in the first place.
I’m not sure where you mean when you say there is a usable conf file in webserver-config/nginx.conf. Where exactly do I find that?
Thank you for responding. I reviewed the supplied configuration files, and using that as a reference, I discovered that if I removed the line root html; from my Nginx conf file, then Grav seems to work.