.aspx pages to be served by IIS through Apache

Discussion in 'Apache' started by Basdub, Aug 8, 2007.

  1. #1
    I have a huge C# web application that i was running fine on IIS. Now i've installed Apache on windows xp (WAMP).

    I heard i could use mod_rewrite on apache to serve .aspx page from IIS.

    IIS and Apache are on same machine using different port.
    I'm not familiar with RewriteRule and RegEx.

    What i think i need is a RegEx that i can put under my VirtualHost section that would say:

    Anything with "this domain" with file extension .aspx redirect to "this domain:8081" with all posted info and querystring.

    Is that possible and if so, would somebody give me a howto and regex to do it?

    Thanks
     
    Basdub, Aug 8, 2007 IP
  2. nick-a

    nick-a Active Member

    Messages:
    446
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I think mod_proxy is what you need.
     
    nick-a, Aug 8, 2007 IP
  3. Basdub

    Basdub Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, i'll take a look at it.
     
    Basdub, Aug 9, 2007 IP
  4. MrRadic

    MrRadic Active Member

    Messages:
    426
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    85
    #4
    Why would you want to use Apache to serve pages when you have access to IIS? IIS offers a lot more power, performance, and much better support for that stuff...
     
    MrRadic, Aug 9, 2007 IP
  5. Basdub

    Basdub Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm not sure about that one!

    Anyway, i now also have a huge app in php that i run on apache and MySQL (opensource world).

    I just don't want some of my user to go xxx.mydomain.com:xxxx just for that application.

    I know about different port don't want it.
    I know about the two IPs but don't understand who is then going to make the decision to pick an IP over the other. My firewall can't!
     
    Basdub, Aug 9, 2007 IP
  6. Basdub

    Basdub Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Found it! I'll post-it here as i spent so much time finding it:
    The answer for me was at

    "http://onsmalltalk.com/programming/smalltalk/running-seaside-apache-and-iis-on-windowsxp/"]http://onsmalltalk.com/programming/smalltalk/running-seaside-apache-and-iis-on-windowsxp/

    simple and very useful.

    Hope this help someone else
     
    Basdub, Aug 9, 2007 IP