Kalman Kalman 71 1 1 silver badge 4 4 bronze badges. Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Referenced it from a working server, then ran a quick search for additional info.
Kamal, thank you for your answer. I keep downloading the index. Make sure you already installed it by typing php -v. If there is no version information about your PHP, then you should install it with:. Where would you like to share this to? Twitter Reddit Hacker News Facebook.
Share link Question share link. Sign Up. Yes, I'm sure. You previously marked this answer as accepted. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Nginx downloads file, not displaying the content Ask Question. Asked 4 years, 5 months ago. Active 4 years, 5 months ago. Viewed 19k times. Viewed 13k times.
I have a directory index configured and every time I click a file it gets downloaded. I want to tell nginx to show the content for text files instead of downloading them. I still want the download to work when I use wget on those text files. How can I do that? Improve this question. Look here. Add a comment. Active Oldest Votes. Thanks to Sergey Moiseev's comment the answer is quite simple.
0コメント