Does nginx offer a way to add the hostname (and port) in an HTML file (without using other solutions, such as PHP)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
May be SSI is what you are looking for?
All variables, which available in core module also available in ssi module.
Usage example:
I had put this string inside test.html and invoke this page through
http://localhost/test.htmlAs a result I get following string: