Nginx Execute file with no extension

silverboyir

New member
Joined
Jun 21, 2016
Messages
3
Hi
i have some files in my server that contain html code , but this files dosent have any extension , when i calling them from browser , browser starting to download them but i want them to be executed by nginx like .html files
i cant rename them and add extension to them
so how i can config nginx for this purpose ?
p.s : i installed nginx as proxy and httpd for handling requests to php
 
Hello,

NGINX is only proxy here... you need to work on Apache's side. You can use either mod_rewrite in Apache or Multiviews for it. Kindly use Google to find more detailed instructions.
 
Back
Top