TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sachin Singh
7
55.8k
81.8k
Remove unnecessary server information
Aug 8 2020 1:08 AM
I am using below configuration to achieve the same and is working perfectly on local machine but not working after deployment.
<httpProtocol>
<customHeaders>
<remove name=
"X-Powered-By"
/>
</customHeaders>
</httpProtocol>
<rewrite>
<!--<rules>
<rule name=
"ensurewww"
stopProcessing=
"true"
>
<match url=
".*"
/>
<conditions>
<add input=
"{CACHE_URL}"
pattern=
"^(.+)://(?!www)(.*)"
/>
</conditions>
<action type=
"Redirect"
url=
"{C:1}://www.{C:2}"
redirectType=
"Permanent"
/>
</rule>
</rules>-->
<outboundRules rewriteBeforeCache=
"true"
>
<rule name=
"Remove Server header"
>
<match serverVariable=
"RESPONSE_Server"
pattern=
".+"
/>
<action type=
"Rewrite"
value=
""
/>
</rule>
</outboundRules>
</rewrite>
Reply
Answers (
2
)
SQL custom return value based on condition
How to check memory leak for my MVC application.