简体   繁体   中英

Virtual Host for wamp server running in port 85

We have dedicated windows server where IIS running in :80 and Wamp running in :85. I successfully created a Virtual Host for wamp server which is running in :85.

NameVirtualHost *:85

<VirtualHost *:85>
ServerName www.my.tv
ServerAlias my.tv
DocumentRoot C:/wamp/www/alpha
ErrorLog "C:/wamp/www/alpha/logs/error.log"
CustomLog "C:/wamp/www/alpha/logs/access.log" common
</VirtualHost>

yes the above code is working & site is running only when i hit www.my.tv:85 but not in www.my.tv

can someone advice on the above where i could configure to make the site run at www.my.tv

If you configure Apache to serve your site on port 85 then the browser (which will default to port 80) won't find it unless you give it the port number it needs.

If you need to see the site on port 80 then you need to configure it on that port. Since you have another server running on that port it's not an option.

One possibility is that you create a virtual site on your IIS server for www.my.tv , but have it redirect to the site on port 85. You can do this in the properties box, on the Home Directory tab.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM