Place two site on one server
-
Hi friends, Good morning. I have a bit problem here.My client requirement is that he wants to place two different sites on one server. Second site should be in one folder with bin folder and web config file also. I know I have to make that folder as virtual directory but if I move bin folder in that folder then does site work or not? What I have to do for this?
please don't forget to vote on the post that helped you.
-
Hi friends, Good morning. I have a bit problem here.My client requirement is that he wants to place two different sites on one server. Second site should be in one folder with bin folder and web config file also. I know I have to make that folder as virtual directory but if I move bin folder in that folder then does site work or not? What I have to do for this?
please don't forget to vote on the post that helped you.
If you have an IIS or any other webserver running, then you can place as many sites as you want to.. Try placing this second site as well (create a virtual directory also) and it will work like a Charm..
Best Regards, Sam Xavier www.componentone.com
-
If you have an IIS or any other webserver running, then you can place as many sites as you want to.. Try placing this second site as well (create a virtual directory also) and it will work like a Charm..
Best Regards, Sam Xavier www.componentone.com
Thanks for your response. I have one site on root and second site in "second" folder.I have placed Bin,App_Data and web config file of second site in second folder.I have made it virtual directory also.Now when I access this,it gives me an error that "Server Application Unavailable".
please don't forget to vote on the post that helped you.
-
If you have an IIS or any other webserver running, then you can place as many sites as you want to.. Try placing this second site as well (create a virtual directory also) and it will work like a Charm..
Best Regards, Sam Xavier www.componentone.com
I have another question. for single site,If I deploy site(with bin,app_data and web config file) in folder and I make it virtual directory then it will work? Nothing on root folder,All folders and files are in one folder. I have tried it but it gives enterprice library namespace error because bin folder also in folder.
please don't forget to vote on the post that helped you.
-
I have another question. for single site,If I deploy site(with bin,app_data and web config file) in folder and I make it virtual directory then it will work? Nothing on root folder,All folders and files are in one folder. I have tried it but it gives enterprice library namespace error because bin folder also in folder.
please don't forget to vote on the post that helped you.
In IIS you can put multiple Virtual Directory. Don't copy all folder sepatrately. Just Publish the WebSite from VS the use the folder as Virtual Directory.
cheers, Abhijit
-
Thanks for your response. I have one site on root and second site in "second" folder.I have placed Bin,App_Data and web config file of second site in second folder.I have made it virtual directory also.Now when I access this,it gives me an error that "Server Application Unavailable".
please don't forget to vote on the post that helped you.
Always use Publish Folder to Deploy in IIS .
Imran Khan Pathan wrote:
it gives me an error that "Server Application Unavailable".
Just delete the Virtual Directory, Reset IIS and again Create the VDir Hope will resolve your problem.
cheers, Abhijit