Should I use Additional domain or Alias in OS-X Server - osx-server

I am setting up a Web server on a Mac Mini.
Let's assume that the website is at: www.mydomain.com
I also wish the user to be able to access the website from: mydomain.com
Should I be using an additional domain, or perhaps a domain alias? (from the set up screen in server)

Assuming that www.mydomain.com and mydomain.com should actually be the same web site, an alias would be the appropriate approach.
Alternatively, I prefer to setup mydomain.com as a separate website that is configured to be a redirect to www.mydomain.com. By doing so, the website can be reached both ways, but references (from users or search engines) will consistently be made to www.mydomain.com.

Related

How to redirect .com to .net domain, but keep .com in url?

i have two websites, one is .com the other one is .net on different hosting accounts and platforms, and domains registered on different registrars. I need to set up the environment from next year, the .com domain to point to the .net website, but the url to remain site.com
.net is joomla website (php/mysql on apache) with .htaccess file i can easily configure (if i need to) but i've read somewhere that i can just park the domain on this account and redirect the domain to this servers dns. Is this true? Anyway please let me know how can i achieve this.
thanks!
check your .com hosting administration interface, some providers have a option that allow you to "masked" redirection of your URL. Unfortunately, masked redirection can be recognized by browsers such as untrustworthy.
Better solution is moving your .com domain to same hosting accout / provider that .net. Then you can set .com domain as a .net domain alias and you can use only 1 hosting service.

Subdomains not opening when prefixed with www for site hosted in Azure

I have created a mvc multi tenant site and hosted in Azure. So if my website is:
mysite.com I dynamically create 1.mysite.com, 2.mysite.com depending upon user's sign up information. I have created these
A records:
www.mysite.com 1.2.3.4( Assume this is Azure's IP)
mysite.com 1.2.3.4
*.mysite.com 1.2.3.4
My subdomain websites work well when I open them as 1.mysite.com. But if I try to open www.1.mysite.com it shows me the Azure 404 page not found error.
How can I solve this?
Some systems automatically add the www. A records when a domain or subdomain is entered, it may be that it has/does not on Azure.
There may be a way to make it do this automatically that someone more knowledgabel on Azure may post below but a short term fix would be to manually add the A record.

How to publish and host a MVC4 application in your domain?

I have a webdomain www.MyDomain.com and a MVC4 web application MyMVCWebApp.
First I publish the application to a local destination.
For instance: C:\TempLocation
And then I host it to my domain with a FTP-tool (FileZilla??)
The files will be hosted but I can't find the webpage.
Which url do I have to write?
http://www.MyDomain.com/MyMVCWebApp/Home/Index.chtml or something?!
Do I have change the settings in my web.config?
What do I have to do?
You can't host an application on a domain.
An application is hosted on a web server. A domain name is only a way to translate an easy to remember address like "www.google.com" to the web server ip address which looks like 173.194.66.104
It is possible to purchase a domain without a web server.
So before going further:
Check if you actually bought a domain only, or a domain with a server
Your domain should redirect to your server ip address, you can see if he is correctly configured by opening a command prompt and doing
C:\> ping www.yourdomain.com
If this is not the case you will need to update the A record of your domain, and wait for the update to be replicated on DNS server worldwird.
If you have a managed server, you should check your hosting provider website. They usually provide in depth documentation, and they all have a different way to do things. Most of the time indeed you will be able to upload your files using a FTP software such as Filezilla.
However, in order to host a MVC 4 application you need a server with
the IIS web server, which means that you need a Windows server. So if
you have a Linux server, you should contact your hosting provider
support and tell them you made a mistake during your order. (It is
possible to host a MVC 4 application on Linux, but I don't think it
is often provided on managed servers)
If you have a dedicated server you are on your own.
The URL you will have to write to access your application will depends on what you have configured in the RegisterRoutes method of the RouteConfigs.cs file.
I recommend you to watch the last video on this page to have a better overview of the possibilities.

iis bindings on shared server

I have a scenario where I have many domains (could be hundreds) pointing to my one web application for example
site1.com
site2.com
site3.com
.... etc
All point to my single web app, this app will be in a shared hosting environment.
The only way I can think of configuring these bindings in IIS is to send my shared hosting company an email every time I need a new binding. Is there a better way? for example some how sending all host headers to my site? How do I do that?
You probably need your own IP address to do this. Then you could just not specify a Host name in your binding:
You will need to specify your IP in the binding though.
This means that as long as your DNS points all sites to your IP, then your site should respond.

How to setup wordpress site and rails multiaccount site

I have TLD (www.example.com) and want to deploy rails 3 app (ex. app.example.com) what will have multiple accounts, each account with one subdomiain (test.example.com, support.example.com, ...).
I created tld with subdomain, changed DNS records, and everything is working. But, since there will be CNAME redirection from some other sites to specific subdomains and my default site is TLD (www.example.com) all CNAME redirects are going to main site instead of analogus subdomain!
Is there better way to integrate Rails and Wordpress? How to solve that? I'm searching for solution last two days.
Similar question: https://stackoverflow.com/questions/10405859/how-to-config-apache-passenger-for-wordpress-and-rails
If your ruby is in passenger mode, and your apache servicing all http queries you should be able to use the apache virtual server setup to redirect the queries for your rails apps accordingly, while leaving your Wordpress on the default web server.
I haven't done it with rails, but for Diaspora, (which is a ruby app) I have that running side by side with a Wordpress network with numerous subdomains off the TLD. The key might be that your TLD should be example.com, not www.example.com. (setup whichever you prefer to have wordoress on to redirect to the other)
Post some more details on your apache (or other web server environment) setup to achieve some better assistance if this doesn't help.
Yours for the cause of open source!

Resources