nginx - Return html file depending on parameter -


I want the NGN URL to give different HTML based on parameters:

url I want to send /var/www/mysite/pages/page1.html

for browser file - /var/www/mysyte/pages/page2.html

and I want to see the user URL in my browser is it possible?

This should work for you (page1.html along with fallback requirement):

  server {root / var / www / mysite / pages; Place / blog {rewrite ^ (. *) $ / Page $ arg_page.html break; Try_files $ uri / page1.html; }}  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -