apache - can't get virtualhost run on different port -
i'm trying setup on ubuntu, virtualhosts on different ports, can work. configuration in sites-available looks like
namevirtualhost 127.0.0.1:5050 listen 5050 <virtualhost 127.0.0.1:5050> servername localhost documentroot "/var/www/example" <directory /> options followsymlinks allowoverride none </directory> <directory /var/www/example/> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> </virtualhost> and added host file
127.0.0.1:5050 localhost
the hosts file maps names ip addresses. cannot used ports. may specify ports part of url (such http://localhost:5050/).
you can run virtual hosts on ports other 80, have explicitly reference port i've indicated.
Comments
Post a Comment