Last post Dec 05, 2016 05:22 PM by PatriceSc
Dec 05, 2016 12:08 PM|madjester|LINK
I'm not sure if this is the right forum to ask my question but I'm going to ask it anyway. Suppose I have an app that allows users to create their web pages, how do I dynamically create account folders on the web server so users can publish their websites?
Is this something that can be done using C# alone or do I need to know Powershell as well? Please point me to a tutorial if you know of any that will help, thanks in advance.
Dec 05, 2016 01:43 PM|PatriceSc|LINK
Not 100% sure clear. They add webpages to an existing site or they'll just publish their own separate sites ? What is an "account folder"? Generally speaking C# and PowerShell are both based on dotnet so it's unlikely you'll be forced to use PowerShell.
I believe https://support.microsoft.com/en-us/kb/910441 might help to achieve what you want.
The point is really to fully understand what you need to put in place. For now it looks like you want some users to be able to provide additional content to an existing app ? Not sure which kind of content they are allowed to publish.
Dec 05, 2016 02:38 PM|madjester|LINK
Hi, what I mean by account folder is something like what Wix dot com and Weebly are using. Basically sites like Wix and Weebly allow registered users to login and create web pages using their web designer.
Once users are done designing their pages, they can publish their pages to a web server. I would imagine that when a user clicks on the Publish button, if he/she doesn't already have a folder for his/her web pages on the web serve, it will be created dynamically.
Basically I would like to know how to dynamically create web folders and all the necessary files needed to host web sites using C# code or scripts, on my own web server.
Dec 05, 2016 05:22 PM|PatriceSc|LINK
Ok so it seems you really want to provide web hosting services for users (internal or even external users ?) Try perhaps https://www.iis.net/learn/web-hosting
It seems you have C# and PowerShell samples at https://www.iis.net/learn/web-hosting/configuring-components/powershell-scripts but putting in place a hosting architecture
is likely quite complex.