106 reputation
5
bio website daviewales.tk/blog
location Australia
age 22
visits member for 2 years
seen Aug 8 at 12:41

I use a MacBook Pro, enjoy hacking in python, and am currently learning C. I also enjoy maths and physics.


May
22
comment Apache vs Nginx
@pauska. The link is broken.
May
22
awarded  Supporter
Apr
30
awarded  Scholar
Apr
30
accepted Nginx server not automatically serving index.html files in subfolders
Apr
30
comment Nginx server not automatically serving index.html files in subfolders
@Dennis Kaarsemaker, if you want to make your own answer, I'll accept it instead, and delete this one.
Apr
30
answered Nginx server not automatically serving index.html files in subfolders
Apr
30
revised Nginx server not automatically serving index.html files in subfolders
Removed answer from question.
Apr
29
comment Nginx server not automatically serving index.html files in subfolders
I wanted to give @Dennis Kaarsemaker a chance to create an answer, because it was his comment that lead me to this solution, so I put the answer in the question as a temporary measure until he creates an answer.
Apr
29
revised Nginx server not automatically serving index.html files in subfolders
Added a solution.
Apr
29
comment Nginx server not automatically serving index.html files in subfolders
It doesn't automatically serve an index.html file if you request its enclosing folder. I discovered I had a section in my config that automatically redirected you to the main page if you didn't type the exact url. After I removed that, it worked as expected.
Apr
28
comment Nginx server not automatically serving index.html files in subfolders
That line made Nginx check if the exact file existed, and if not, redirected to the main page. I suspect the same functionality could be better implemented using try_files.
Apr
28
comment Nginx server not automatically serving index.html files in subfolders
I'm not quite sure what the etiquette is here. Should I create an answer stating that the removal of the rewrite fixed it, or should I let you create an answer stating the same thing so I can accept it?
Apr
28
comment Nginx server not automatically serving index.html files in subfolders
That worked. The offending lines were if (!-f $request_filename) { rewrite ^ /index.html last;}
Apr
28
awarded  Editor
Apr
28
comment Nginx server not automatically serving index.html files in subfolders
That didn't fix it. (I already had that line in the server section, but adding it to the location section had no effect.) Here is a link to my config file.
Apr
28
revised Nginx server not automatically serving index.html files in subfolders
Added a link to my configuration file.
Apr
28
comment Nginx server not automatically serving index.html files in subfolders
I will keep that in mind.
Apr
28
awarded  Student
Apr
28
asked Nginx server not automatically serving index.html files in subfolders
Dec
3
awarded  Autobiographer