1. Install the three environments respectively and set different ports
PHP: 80
JSP: 8080
ASP: 1, 8081
2. Set/apache2/CONF/httpd. conf.
Remove the comments before the following three rows:
Loadmodule proxy_module modules/mod_proxy.so
Loadmodule proxy_connect_module modules/mod_proxy_connect.so
Loadmodule proxy_http_module modules/mod_proxy_http.so
Add the following lines:
Proxypass/jsp HTTP: // 127.0.0.1: 8080
# Proxypassreverse/jsp HTTP: // 127.0.0.1: 8080
Proxypass/asp http: // 127.0.0.1: 8081
# Proxypassreverse http: // 127.0.0.1: 8081
In this way, you can useHttp: // 127.0.0.1/
To access phphttp: // 127.0.0.1/asp
Or http: // 127.0.0.1: 8081
To access ASP, http: // 127.0.0.1/jsp
Or http: // 127.0.0.1: 8080
To access JSP.
Note: 127.0.0.1 is the IP address of the server you configured, which can be replaced according to your situation.