Route53: how to create a subdomain blog that answers to both blog.my_site.com and www.blog.my_site.com - subdomain

Creating a simple CNAME in the same Hosted zone as the main domain is fine for blog.my_site.com, but it's unreachable by www.blog.my_site.com.
Here is what I did:
Created a separate Hosted Zone, overdid the NS and SOA values
with the ones from the main domain's Hosted Zone.
Set a CNAME for
www.blog.my_site.com
Created an empty s3 bucket that redirects blog.my_site.com to www.blog.my_site.com
So the main reason I am creating a separate Hosted zone is that I want it to be accessible by both:
www.blog.my_site.com
blog.my_site.com
It currently doesn't work.
I suspect it is because I am trying to create a new Hosted Zone with the same NS and SOA values as my main domain.

For or your use case, there is no reason to create a separate hosted zone. I would only keep the my_site.com hosted zone. Within that zone create your records, including your CNAME for www.blog.my_site.com. If it's still not working for you, it maybe helpful if you posted the domain in question.

Related

Subdomain of website for Github pages project

I have a Github project, github.com/jeti/matrix, and I set up a "Github pages" site for the project so that it is accessible here jeti.github.io/matrix/.
That is all configurable through Github.
Now, I would like to add a subdomain of my personal website so that the website is accessible via the subdomain matrix.jeti.io of my website jeti.io.
I am just really confused how to do that because the documentation don't seem to show how to redirect a project page to a subdomain. I have tried a few permutations of what I think should be the correct inputs, but because these DNS changes take so long to propagate, it is really hard to test.
Specifically, I would like to know what value to enter into Github as the Custom domain (it seems to me that this should simply be the subdomain matrix.jeti.io, but I am not sure, so I have left this blank):
Then I also need to create the subdomain. I bought the domain through OVH, and they provide a few options for adding a DNS entry:
My understanding is that I need to add 2 apex records. I did that already:
What is unclear to me is whether I also need to add a CNAME entry. This is what the form looks like when I try to add a CNAME entry:
So in recap:
I did not specify the Custom Domain on the Github site.
I created the 2 apex records shown above.
I did not create a CNAME entry.
Please tell me which of these steps needs to be changed and how to modify it.
After more trial and error, the answer seems to be
The Github custom domain should indeed be matrix.jeti.io
I did not need the apex records. In fact, Github emailed me discouraging it. So I deleted the apex records.
In OVH, I added a DNS CNAME entry like this:
The thing that was confusing me is that I thought that the CNAME entry needed to have a link to the original Github pages WITH the project name jeti.github.io/matrix. That was wrong. The target is simply jeti.github.io. (Note the period on the end).

Cross domain localStorage

I tried to implement cross domain local storage by copying the code from the below link,
http://www.nczonline.net/blog/2010/09/07/learning-from-xauth-cross-domain-localstorage/
But it is returning 'null'.
I did the following
From the page in A.com - stored the value for local storage
In the application running in localhost created server.htm as per the code provided in the link
created cross_domain_storage.js also as per the link
created index.html in localhost application and tried to access the key written at Step 1
But the value returned is 'null'
What is wrong with my code ?
I'm not familiar with that specific solution but I did write a library that implement cross domain local storage using a shared iframe.
you are welcome to check it out on github. It comes with angularjs support as well :)

Multitenancy and Subdomains in Orchard

Crosspost: https://orchard.codeplex.com/discussions/455071
I'm using Orchard 1.6.1.
Say my first site is called domain.com. I tried to create a new tenant and put the beta.domain.com as the Host with no URL prefix (seeing that it is Optional).
The url http://beta.domain.com is shown and when I try to Set Up, it doesn't show anything. I tried to remove the subdomain and enter a prefix which resulted in http://domain.com/beta. It worked, however, I would very much prefer a subdomain as shown/detailed here: http://docs.orchardproject.net/Documentation/Setting-up-a-multi-tenant-orchard-site
Do I have to set it up in my DNS server?
Any piece of advise or information would be highly appreciated. Thanks!
If you have an IIS server, you will need to have your beta.domain.com point at it and then add a binding to your website in iis of beta.domain.com for it to pick it up.
If you're using shared hosting and you don't have access to IIS. Then you should use Domain Aliases (in Plesk) rather than setting the DNS. It would make your Orchard CMS on your primary domain serve the tenant site.
Example: You want to add a tenant site on tenant.mysite.com then you should add a domain alias tenant.mysite.com to mysite.com domain. Don't forget to check the Web option if using Plesk.
In case of you have access to IIS, you need to add binding to your primary domain.

prestashop move to new server drops back to localhost

When I try to move my site prestashop site to new server and when I trying to enter it, it drops me to localhost. What else needs to be done? I did these steps:
Upload all files to new hosting via FTP
Import the database using the phpMyAdmin utility
On database we need to open ps_configuration table and edit the following lines: PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL and we replace the current domain www.olddomain.com, with the new one www.newdomain.com
For last we have to edit the settings.inc.php file inside the config folder and change the values for database name _DB_NAME_, user _DB_USER_ and password: _DB_PASSWD_
That’s it, you only need to check .htaccess file permissions (777) and all should work correctly!
But it does not work correctly :|
You also need to change the ps_shop url, the value of the domain by www.yournewdomain.com
and change too the domain ssl by your new domaine www.yournewdomain.com.
If you put your site in a subdomain then write the physical uri too
www.yournewdomain.com/name-of-your-suddomain-prestashop.
It will work perfectly!
Login to your PrestaShop admin panel on domain you are moving from (olddomain.com)
Navigate to Preferences -> Maintenance and put your shop in maintenance mode to avoid loosing new customers or orders while moving the data.
Navigate to Preferences -> SEO & URLs and scroll down to Set shop URL section.
There please change Shop domain and SSL domain to your new domain (newdomain.com).
Update Base URI if it is different on your new domain.
Download all PrestaShop files and folders to your computer.
Login to your phpMyAdmin and create a backup/dump of the database you are using for your PrestaShop.
Create database on your new domain (newdomain.com) and import database backup/dump from your (olddomain.com)
Edit /config/settings.inc.php file which you have downloaded to your computer.
There you should update the settings for the new database server (with your own settings instead of the examples here):
define('_DB_SERVER_', 'your.sqlhost.name.com');
define('_DB_NAME_', 'database_name');
define('_DB_USER_', 'database_user');
define('_DB_PASSWD_', 'database_pswd');
Upload all the PrestaShop files and folders to your new domain (newdomain.com) via FTP.
Remove all the files except index.php in /cache/smarty/compile and /cache/smarty/cache folders on your new domain (newdomain.com)
Login to your PrestaShop admin panel on new domain (newdomain.com) and check if it is working properly.
In your PrestaShop admin panel navigate to Preferences -> Maintenance and put your site online.
Check that all the links are functioning, that all your products, images, modules and themes are still there, and try to create a new account and place an order to make sure your shop is working as expected.
I had the same issue a few days ago and just spent 2 minutes trying to remember...
Anyway, if you're using 1.5, you also need to change the url in the shop_url table. Hope this helps!

Wordpress - ftp'd site/exported database to localhost, localhost images still point to .com, why?

I FTP'd over the entire wordpress site and exported the Database and got it running on my localhost throught WAMP, but for some reason the links and folder are still pointing towards it's .com, and a 404 error comes up as well.
I suspect it has something to do with .htaccess but I'm not sure.. Can someone steer me in the right direction?
Did you update WordPress Address (URL) and Site Address (URL) under General > Settings?
They might still point to old domain.
Transferring the site over FTP to your local machine is the same as "moving" it to a new domain. Wordpress provides specific instructions for such a move which you can find #
http://codex.wordpress.org/Moving_WordPress
When Your Domain Name or URLs Change
When your domain name or URLs change - i.e. from http://example.com/blog to http://example.com, or http://example.com to http://newexample.com - there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.
If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options:
Only perform a search and replace on the wp_posts table.
Use the Search and Replace for WordPress Databases Script to safely change all instances. ( If you are a developer, use this option. It is a one step process as opposed to the 15-step procedure below )