Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4070850
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:40:55+00:00 2026-05-20T16:40:55+00:00

I have to port my web application from apache to IIS 7 and got

  • 0

I have to port my web application from apache to IIS 7 and got into trouble with the proper configuration.

In the apache configuration, I configured some mod rewrite stuff (in order to communicate with an apache active mq) like this:

#Reverse-Proxy to ActiveMQ AJAX-Interface
ProxyPass        /foo/bar/amq http://localhost:8161/foo/amq/
ProxyPassReverse /foo/bar/amq http://localhost:8161/foo/amq/
ProxyPassReverseCookiePath /foo /

I’ve tried to configure the IIS 7 by using ApplicationRequestRouting.
The rewrite rule in the request for replacing the /foo/bar to the localhost adress does already work, but I’ve some problems to define a rule for setting up the correct cookie path in the response.

I’ve already found an article about manipulating responses here.
For me, it looks like with II7 I can only manipulate the HTTP body of the response.

How can I manipulate the response header in a way to edit the cookie path?

The cookie path in the response header looks like this:

Set-Cookie: JSESSIONID=1lu7hn253csbh11jax27k2i072;Path=/foo

The Path should be edited to “Path=/”.

Thank for your time and your help
Rolf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:40:56+00:00Added an answer on May 20, 2026 at 4:40 pm

    This should do it

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <outboundRules>
                    <remove name="Update Cookie Path" />
                    <rule name="Update Cookie Path">
                        <match serverVariable="RESPONSE_Set_Cookie" pattern="^(.*; path=/)foo$" />
                        <conditions />
                        <action type="Rewrite" value="{R:1}" />
                    </rule>
                </outboundRules>
            </rewrite>
        </system.webServer>
    </configuration>
    

    Check the more detailed reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to port some crypto code to visual c++ from java which (visual
Looking to port an ASMX web service application to run on Mono under Apache.
I have to port the build of a DLL from building in Visual Studio
I have to detect port aggregation configuration on Linux. Supposing that the ifcfg-* files
I have an application(Developed using Adobe AIR) in which i have opened a port
I've built a Django web application and some Django-Piston services. Using a web interface
I have created a web application using Jersey and Dynamic Web Project of Eclipse.
I have a web server application (based on python). Flash applications which are located
I have an existing large(ish) PHP web app (using Apache and MySQL) which now
I have setup google checkout for my java web application and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.