Im developing a web application whereby a customer can signup and create their own website instantly.
Their website will be in the format - customername.mydomain.com
This will be addressed by setting a wildcard DNS so that any subdomains get directed to the website IP address (or rather a "website" application that will drive all these customer sites.
Ive developed the core site where the customer will register which will be www.mydomain.com
Now i need to create a separate "website" project that will drive the customer's sites by checking the subdomain to populate content, styling etc...
Within Visual Studio would the "customer website files" need to be a project within my main site or could it be separate?
Im not sure how i would redirect the customer sub-domains to the "customer website files" project? Im guessing a normal sub-domain wildcard direction to the main IP address would target my main site at www.mydomain.com which isnt what i want.
How would i best structure this and get it working as i want?
This is usually refer to a branding website in which the codebase is the same, but based on the url the website has different theme, logo etc. You need to separate the project/code files from branding specific content (css, javascript, images). The content
files will usually get to be large (based on the number of users), so when you do a deployment of the code, you do not want to copy content again. The content should only be copy/updated as changes are done to the branded site. This will happen very often
as customer will keep adding banners etc.
Do not include the branding content files in Visual Studio. Rather define a folder structure on the web server where you want to host customer specific files. The only content Visual Studio project should have is the default images,css, javascript.
mark-1961
Member
30 Points
190 Posts
Web project structure query
Jun 29, 2012 01:25 PM|LINK
Hi,
Im developing a web application whereby a customer can signup and create their own website instantly.
Their website will be in the format - customername.mydomain.com
This will be addressed by setting a wildcard DNS so that any subdomains get directed to the website IP address (or rather a "website" application that will drive all these customer sites.
Ive developed the core site where the customer will register which will be www.mydomain.com
Now i need to create a separate "website" project that will drive the customer's sites by checking the subdomain to populate content, styling etc...
Within Visual Studio would the "customer website files" need to be a project within my main site or could it be separate?
Im not sure how i would redirect the customer sub-domains to the "customer website files" project? Im guessing a normal sub-domain wildcard direction to the main IP address would target my main site at www.mydomain.com which isnt what i want.
How would i best structure this and get it working as i want?
ozkary
Contributor
2034 Points
303 Posts
Re: Web project structure query
Jun 29, 2012 03:24 PM|LINK
Hi,
This is usually refer to a branding website in which the codebase is the same, but based on the url the website has different theme, logo etc. You need to separate the project/code files from branding specific content (css, javascript, images). The content files will usually get to be large (based on the number of users), so when you do a deployment of the code, you do not want to copy content again. The content should only be copy/updated as changes are done to the branded site. This will happen very often as customer will keep adding banners etc.
Do not include the branding content files in Visual Studio. Rather define a folder structure on the web server where you want to host customer specific files. The only content Visual Studio project should have is the default images,css, javascript.
hope it helps.
og-bit.com