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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -