Skip to content
Grav 2.0 is officially stable. Read the announcement →
Installation & Hosting

Cgi.fix_pathinfo = 0 not the right setting anymore? Error: no input file specified

Started by rappluk 9 months ago · 0 replies · 253 views
9 months ago

Following this tutorial, I’ve gotten as far as displaying the testing info.php and index.html thru my nginx server. Only difference is, I’m using php 8.3 instead of 7.something as in the tutorial.

But something that confuses me is the insistance to set cgi.fix_pathinfo to zero. I can’t find much information about its relevance online, apart from old security notices.

The problem I have is the following: While my info.php renders correctly in browser, the same cannot be said for the index.html

Even the default nginx config from grav, doesn’t render my index.html in that case, instead showing no input file specified.

Again, researching that leads me in circles cause answers like this one recommend switching the fix_pathinfo to 1 again.

What is the current advise to deploy my grav site? Can I set it to 1 or do I need to apply some different fix?

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 3 weeks ago
8 364 3 weeks ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 223 7 months ago
Installation & Hosting · by N, 1 year ago
3 220 1 year ago
Installation & Hosting · by Youle, 1 year ago
1 157 1 year ago
Installation & Hosting · by Jonas Bertschinger, 1 year ago
3 243 1 year ago