How host dotCMS application? - web-hosting

I am developing an application in dotCMS. I created a new URL and in that URL added some html pages.But this is on the dotCMS. How to host this application like any other HTML based web site.Please help me to resolve this.

You can either name your host with the new URL you created or just edit your host and give the newly created URL as an alias for the host.

Related

configure my web developed in local to web host

I've done some small demo of a web site and I hope to send it to a web host, but the preblem is after updating my folders and type the address, it just cannot find my web page. On local I use linux + XAMPP + Laravel so the structure is
/htdocs/laravel/public
/app
/vendor
and I just type
http://localhost/laravel/public/mywebpage
to access my web. But to use a web host who provides a file position like:
/home/sitename/public_html
do i need to create/modify any configuration file??
You can try renaming your local public folder to public_html and reflect this change at the /bootstrap/paths.php file.
There you'll find 'public' => __DIR__.'/../public', change ../public to ../public_html in this case.
I have to do something similar when I upload a laravel app to OpenShift, for example.

Add site bindings to IIS 7.5 programmatically

I have a web application that requires multiple domains to point to the same site in IIS. I would like to be able to do this from a web interface but that would mean adding site bindings programmatically.
Im sure applications like Plesk access some sort of Windows API to do it, I just dont know how.
A related post is this one but it doesnt solve this specific problem.
I'm not sure if this is what you're after, but if you are using .NET you can use ServerManager class from the Microsoft.Web.Administration namespace you can add bindings like so:
using (ServerManager manager = ServerManager.OpenRemote("serverName"))
{
manager.Sites["mySiteName"].Bindings.Add("*:80:domain.com", "http");
manager.CommitChanges();
}
So in the example above the * means the IP to match to, 80 is the port, and domain.com is the host header. To add https bindings is a bit more involved and you need to load the certificate programatically.

How to override ajax base url?

I'm developing two projects under one solution API and Web application.
I'm using Visual Studio 2012 and ports for each project are different when debugging, e.g. localhost:32335 and localhost:21890, so now each time I need to use api I need to set localhost with that port.
I come up with solution to set default port to for example 1337, and in host file set example.com to localhost:1337, so now I just need to use example.com/api/someaction.
What I want to do is set base url in ajax so I don't have to retype example.com in my code, so basically I just need to type /api/someaction and ajax call will now to use example.com by default, not localhost:33181.
Start to work with your iis. create a different application with different domain name and edit your hosts file to use that address. don't use with the cassini. for each application , create an application in the iis. add a binding , and create the different domain names in the hosts file.
Use jquery ajaxSetup:
$.ajaxSetup({
url: 'ping.php'
});

How to setup suffix proxy server

Can anyone guide me for setting up suffix proxy server , so that user can access some specific sites cached in our campus server without doing any configuration in their browsers.
by suffix proxy i mean that if user wants to open http: //en.wikipedia.org/wiki/Proxy_server page then he should enter link:
http ://en.wikipedia.org.CAMPUSPROXY.NET/wiki/Proxy_server (where campusproxy.net is our proxy server) and this requested page can be retrived from our proxy server in place of wikipedia.org
It's a redirect really - your server needs to have a url check that will catch the prefix portion of the url and for this you obviously need unlimited prefix's available from the registered domain URI then it just reforms the uri of the prefix makes the request for the page and then presents it as content to the user - normally you'll also inject a banner at the top of the page also.
so it goes
User - http-get en.wikipedia.org.CAMPUSPROXY.NET/wiki/Proxy_server
your server takes this and creates "en.wikipedia.org/wiki/Proxy_server" via a script or what have you.
CAMPUSPROXY.NET http-get en.wikipedia.org/wiki/Proxy_server
inject the banner code into the webpage via a script or what have you.
probably also modify the html tags and headers to include your prefix proxy info
some knowledge of python - perl or whatever is all you need together with apache or similar server, their are of course scripts out there already but if you do that you'll learn nothing.

How do i change my DNS host name using WIX

How do i set my dns hostname for a iis asp.net website i am installing using WIX?
everything installs fine but i have to go to path
http://localhost/EDSTR2F7
I want to be able to change it so i can get to the site by going
http://EDSTR2F7.myhostname.local
how do i do that using WIX?
is it part of the
iis:WebSite,
iis:WebAddress,
iis:WebVirtualDir,
iis:WebApplication, or
iis:WebDirProperties tags?
I would suggest to create new sub website using iis:WebSite and make sure to assign to it the correct host name you want to map in using iis:WebAddress

Resources