• 0

ASP on Apache2


Question

I know by default Apache itself does not support running ASP files, but I need a web server that is fast and will correctly run ASP files. The majority of my website that I am movig to a new server is done in ASP and right now I do not have the time to rewrite the entire site into PHP. On top of that I don't really know much PHP. I do plan on learning it soon though.

Anyway back to my question. I have been told by two or three people that you can run both Apache2 and Microsoft IIS 5.0 on the same system and it would allow the system to run ASP files. I don't understand how that would work unless IIS becomes the main webserver, and thats not what I want. I definitely like the speed of Apache2.

So can someone please help me out with this. I'm very perplexed at the moment.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

you can run IIS and Apache2 on the same server, but they would have to listen on 2 different ports (port 80 for apache and maybe 8080 for iis). I haven't head of an ASP emulator for Apache2. Did you do a search on google?

Link to comment
Share on other sites

  • 0

here's what I've found:

"My IIS server is on the same machine as the Apache server, but it doesn't have to be. Localhost could be an IP address or a domain name just as easily.

It doesn't just work with local access. What it means is that when a request comes in for a url that ends with .asp then the Apache software passes the request on to whatever machine you designate, gets the result and passes it back to the user, but this all happens on the Apache server so it's completely hidden to the user. In my case the reference is to localhost because that's the reference from the Apache server's perspective.

You could, just as easily, use it with any other website."

Any help?

Link to comment
Share on other sites

  • 0

That would help immensly but I need to know how to have it pass the information on. Any ideas or links would be extremely helpful. Because actually the way I have things setup is I have two boxes. One runs Apache2 for the speed and the other run IIS for the ASP. These two boxes are in two different locations with two different address but I can make them look like they are together. I just need to know how to get Apache to pass the information over to the other box.

Where did that statement come from? Anywhere that explains how to do it?

Thanks in advance!

Link to comment
Share on other sites

  • 0

Seems to me like you could use the mod_rewrite module in apache. It gets kinda

complicated. There is also virtual hosting, where you would basically set up your

apache2 webserver to be a proxy for your IIS server.

Information on mod_rewrite here.

Information on virtual hosts here.

Hope that helps.

Link to comment
Share on other sites

  • 0

Stick to IIS is the best solution. If you want to use ASP on Apache, then you will have to write ASP in Perl rather than VS, JSP and etc. There have project that is working to get ASP.NET works with Apache called mod_mono.. I don't really know that much about mod_mono, so you can search and find about it. I doubt, it's mature enough yet thought.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.