I set up four folders under D:/0oes:
Then, I want to bind the different ports of the server with them.
Collegeoes corresponds to 80 port schooloes corresponds to 90 port collegeres corresponds to 8080 port schoolres corresponding 9090 port
bind non-80 ports first
Open httped.conf
Added at the end of the httped.conf:
Listen 90<virtualhost *:90> ServerAdmin [email protected] DocumentRoot D:\0oes\schooloes ServerName *:90 <directory "D:\0oes\schooloes" > Options all allowoverride the Order allow, Deny allow from all </directory></virtualhost>listen 8080<virtualhost *:8080> ServerAdmin [email protected] documentroot D:\0oes\collegeres ServerName *:8080 <directory "D:\ 0oes\collegeres "> Options all allowoverride all Order allow,deny allow from all </ Directory></virtualhost>listen 9090<virtualhost *:9090> ServerAdmin [email protected] DocumentRoot D:\0oes\schooloes ServerName *:9090 <directory "D:\0oes\schooloes" > Options All allowoverride All Order Allow,deny allow from all </Directory></VirtualHost>
then modify the binding path for port 80
Modify the DocumentRoot C:\wamp\www to D:\0oes\collegeoes
Will <directory "C:\wamp\www "> Modified to<directory "D:\0oes\collegeoes ">
now, you can access different websites with the colon port number behind localhost or 127.0.0.1.
Apache binds different ports of the server to different sites