Not sure if this is the correct forum to post but here is my question: I use to work both in PHP and ASP and am not able to run ASP pages on Apache webserver. Can I install and run Apache + IIS on the same server/machine? If so what configuration and setting do I need? Thanks in advance - Zeb
Assuming that you want all servers to work on the standard port 80, you need a multihomed machine (i.e. multiple IP addresses) and if you are using IIS6, you need to configure it to listen only on some of these addresses. J.D.
The easiest (not exactly the least expensive) option is to install Chilisoft's ASP on the apache box. Then you can have both. Or you can go to a windows machine with IIS and install php (free).
I have IIS listening on port 80 (default install) and Apache listening on 8080 (single config file change)
If you want to use 8080 in production, you need to set up a virtual website on the server that listens on the port 80 and redirect requests from the standard port to the port 8080 for this website.
Change Listen in httpd.conf found in the conf directory # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 8080 Code (markup):
Thanks for all the replies. Appreciated EDIT: I think this line should also be changed to Port 8080: # Port: The port to which the standalone server listens. # Port 80 Code (markup): to # Port: The port to which the standalone server listens. # Port 8080 Code (markup):
This is a good example, but what if a company blocks requests for users on 8080? Would the user be able to view the site that is actually on 8080?