View Single Post
Old 19-02-2005, 20:17   #4
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 46
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: How to run ASP.NET in PHP on Apache, for free

Quote:
Originally Posted by Paul M
Interesting - but wouldn't you normally run the systems the other way round - apache on port 80 and the local IIS on some other port ? Also, if the aspx (or asp) file has includes itself or calls other files, does it all still work ?
Yes, and yes.
I'm running Apache on 8080 and IIS on 80 on my setup, they can be whatever you want though.
I came up with this idea today because I wanted to run some ASP.NET within a PHP page and then I thought of this solution.
AFAIK, a page cannot be parsed twice (once by ASP.NET and once by PHP) on the same webserver.

In practice it means that you can have some system on your network which displays a report web page in C#, VB or Perl and then include this on your public webserver which is running PHP.

You could even reverse this and have ASP.NET running on IIS as a public server and then do server-side includes to include a PHP page running on Apache behind the firewall.
There's hardly any point to that though because PHP can run on IIS anyway.

With some fancy kind of Apache rewrite rules and stuff, you could make the server request any page with an .aspx extension from IIS directly.
Richard M is offline   Reply With Quote