[play-framework] Runing PLay's Stand Alone server using IIS 7 as its Front End HTTP Server

669 views
Skip to first unread message

Bill

unread,
Apr 18, 2010, 11:21:41 AM4/18/10
to play-framework
Hello Play! Team,

I have read PLay's documentation, chapter 'Put your application in
production' which descibed how to use front end HTTP Server like
lighttpd & Apache. My server is installed with Windows 2008 & IIS 7 as
its web server. Have you ever tested to setup IIS as play's front end
HTTP Server before ? is it possible to do in this case ? Many thanks
in advance.

Cheers.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Ivan Meredith

unread,
Apr 18, 2010, 3:18:43 PM4/18/10
to play-fr...@googlegroups.com
Not that i've used it, but a quick google came up with this...
http://www.iis.net/download/ApplicationRequestRouting

Billy

unread,
Apr 18, 2010, 7:02:35 PM4/18/10
to play-fr...@googlegroups.com
Ivan, this is worth to be tried out. I'm going to grab it and test it. I have used IIS 7's HTTP Redirection feature so any incoming request to port 80 ( managed by IIS) would be redirected to running stand alone play's HTTP Server. But it ended up in same result. Play's stand alone HTTP server still refused the inbound requests. I'm going to contact my VPS's Hosting techie support. If they responded by blaming Play!, guess i got no option left except go back to ASP NET MVC & IIS 7. So sad, i'm started to love using Play! than PHP CI or ASP NET MVC :-(.

Cheers.

Ivan Meredith

unread,
Apr 18, 2010, 9:50:50 PM4/18/10
to play-fr...@googlegroups.com
You could get a linux VPS, there would be no problem there. Or run
apache instead of IIS.on the windows one.

Bill

unread,
Apr 19, 2010, 12:23:02 AM4/19/10
to play-framework
Ivan, thank you for your concern. the reason my i purchase Windows
server VPS is because i have a plan to do deployment tests on web
applications which are developed using ASP NET MVC, Java web , or even
PHP. I've already bought it :-S. Suppose i'm going to choose Linux
VPS, i wouldn't be able to deploy ASP NET MVC, WCF, WPF in there.
beside purchasing another seperated VPS right now would burden my
total cost for VPS. So unfortunate for me, i'm getting like Play but
got this deployment trouble in windows server ..:-(

Cheers.

On Apr 19, 9:50 am, Ivan Meredith <i...@ivan.net.nz> wrote:
> You could get a linux VPS, there would be no problem there. Or run
> apache instead of IIS.on the windows one.
>
>
>
> On Mon, Apr 19, 2010 at 11:02 AM, Billy <saintc0...@gmail.com> wrote:
> > Ivan, this is worth to be tried out. I'm going to grab it and test it. I
> > have used IIS 7's HTTP Redirection feature so any incoming request to port
> > 80 ( managed by IIS) would be redirected to running stand alone play's HTTP
> > Server. But it ended up in same result. Play's stand alone HTTP server still
> > refused the inbound requests. I'm going to contact my VPS's Hosting techie
> > support. If they responded by blaming Play!, guess i got no option left
> > except go back to ASP NET MVC & IIS 7. So sad, i'm started to love using
> > Play! than PHP CI or ASP NET MVC :-(.
>
> > Cheers.
>
> > On Mon, Apr 19, 2010 at 3:18 AM, Ivan Meredith <i...@ivan.net.nz> wrote:
>
> >> Not that i've used it, but a quick google came up with this...
> >>http://www.iis.net/download/ApplicationRequestRouting
>
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.

Nicolas Dessaigne

unread,
Apr 19, 2010, 9:05:23 AM4/19/10
to play-fr...@googlegroups.com
Hi Bill,

I've done it recently with IIS using URL Rewriting. I've something like the following in the web.config (you can edit it in the admin GUI):

    <system.webServer>
        <rewrite>
            <rules>
                <rule name="reverse proxy for search" enabled="false" stopProcessing="true">
                    <match url="^(search.*)" />
                    <action type="Rewrite" url="http://{C:0}:9000/{R:0}" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern=".+" />
                    </conditions>
                </rule>
            </rules>
        </rewrite>
    </system.webServer>

All requests to http://mydomain/search are rewrited to use play on port 9000.

A good source of information for this task: http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/

Hope it helps,
Nicolas

Billy

unread,
Apr 19, 2010, 9:14:21 AM4/19/10
to play-fr...@googlegroups.com
Hello Nicolas,

Thank you for still keep helping me out. I'm going to try this thing out.

Cheers.
Reply all
Reply to author
Forward
0 new messages