<div dir="ltr">Hi Stefan,<div><br></div><div>You suggested to jump the ship from delphi to c#.</div><div>If you really want to do that, I think that you need to consider following issue.</div><div><br></div><div>To use <a href="http://asp.net">asp.net</a> mvc involves a cost which requires a windows server and iis. Windows server cost license fee.</div><div><br></div><div>If you do it in linux, you can save the license fee of windows to buy some really nice stuff. :-)</div><div><br></div><div>It is very slow to use <a href="http://asp.net">asp.net</a> mvc using amazon aws free server. It is very fast to do ubuntu linux on amazon aws ec2 free server to do web hosting. </div><div><br></div><div>Regards</div><div>Leigh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 July 2016 at 18:49, Stefan Mueller <span dir="ltr"><<a href="mailto:muellers@orcl-toolbox.com" target="_blank">muellers@orcl-toolbox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="color:#1f497d">Couple of thoughts:<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p><u></u><span style="font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="color:#1f497d">Don’t use Delphi for that, use ASP.Net MVC ... if you do web then using a proper web development tool makes things a lot easier. Delphi IntraWeb is probably ok if you need to cobble together a simple page and only know Delphi .. but other than that it’s a dead-end. The ASP.Net community is thriving with new exciting development and support available there. I am very fond of ASP.Net MVC, it does a lot of things right and is easy to learn coming from Delphi.<u></u><u></u></span></p><p><u></u><span style="font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="color:#1f497d">ASP.Net MVC routing & controllers architecture lets you seamlessly merge custom client pages with your “common” pages. You also get a lot of security already out of the box with that framework and handled for you (mentioning Cross-site scripting & Cross-site request forgery here) as well as client side forms validations. <u></u><u></u></span></p><p><u></u><span style="font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="color:#1f497d">DNS supports wildcard matching for a non-existing domain .. you can create a DNS record like “*.<a href="http://mydomain.co.nz" target="_blank">mydomain.co.nz</a>” to point all to the same endpoint<u></u><u></u></span></p><p><u></u><span style="font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="color:#1f497d">On that endpoint you then can check the name of the domain requested and use that one to point to the right locations for your css/images (could even check if any for those customized files exists and if not serve your default files). <u></u><u></u></span></p><p><u></u><span style="font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="color:#1f497d">Cookies are a client side thing, what you really need is a server side solution to know what content to serve. Cookies can’t handle things such as website users that link to a common page first without having visited the client page first … and obviously website users wanting to watch 2 different of your clients websites also wouldn’t work because a cookie can only point to one client at a time … and then there are users (including google/bing/yahoo-bots that index your pages) that have cookies disabled.<u></u><u></u></span></p><p><span style="color:#1f497d"><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Kind regards,<br><br></span><span style="font-size:10.0pt;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Stefan Müller</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">,<br>R&D Manager</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><br><br></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:white;background:red">ORCL</span></b><span style="font-size:10.0pt;color:#1f497d"> </span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Toolbox Ltd.</span></b><span style="font-size:10.0pt;color:#1f497d"> <br></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Auckland, New Zealand</span><span style="font-size:10.0pt;color:#1f497d"> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:Webdings;color:#777777"><br>P</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#777777"> Please consider the environment before printing this email<br><br>This message is intended for the adresse named above and may contain privileged or confidential information.<br>If you are not the intended recipient of this message you must not use, copy, distribute or disclose it to anyone.<u></u><u></u></span></p></div><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:delphi-bounces@listserver.123.net.nz" target="_blank">delphi-bounces@listserver.123.net.nz</a> [mailto:<a href="mailto:delphi-bounces@listserver.123.net.nz" target="_blank">delphi-bounces@listserver.123.net.nz</a>] <b>On Behalf Of </b>John C<br><b>Sent:</b> Sunday, 31 July 2016 1:42 p.m.<br><b>To:</b> 'NZ Borland Developers Group - Delphi List'<br><b>Subject:</b> [DUG] Multi client website<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">Hi all<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">I have a website what will be available to the public but specific for more than one clients. The frame work of the website will be the same for each client but their images and CSS file will be different (making it look differently).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">The plan is to have a sub-domain for each client from where it will jump to the "common" pages on the main domain. The index file on each sub.domain identifies the client and therefore define the directory path to use for the images and the CSS file.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">I was thinking of doing this with cookies for the paths to be used in the main program, but I'm not sure it would be a good plan and if that will work properly (setting a cookie from within a sub.domain to be used in the main domain).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">Any ideas or suggestions of how to do this?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">Thanks a lot in advance<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif"">John C<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-NZ" style="font-family:"Arial","sans-serif""><u></u> <u></u></span></p></div></div></div></div><br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" rel="noreferrer" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<br></blockquote></div><br></div>