blogger.com subdomains [closed] - subdomain

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
When one registers for a blog in blogger.com, a sub-domain gets created i.e. your_blog_name.blogger.com
My question is - Is there no limit to the number of sub-domains you can create with a single domain name?
I am just curious as to how blogger (or any other blog hosting platform) does this?

This can be done by a catch-all A record rule in your DNS server configuration. For example, in bind, you would use something like this:
*.example.com. IN A 127.0.0.1
This would make anything.example.com resolve to 127.0.0.1. Then, using an appopriate VHost on your http server, you can redirect all requests to a particular server-side script (for example PHP), which can then detect the hostname that was used, and respond with the content required.

There are restrictions on the characters that can be used (actually, two separate sets of restrictions due to the way IDNs work). There are practical limitations in terms of length. Beyond that no. Indeed, it's not much different for the entity in charge of .blogger.com to create a subdomain of that than for the entity in charge of .com to do so, and there were 80,000,000 of those at the start of last year .

Related

Should each website have a different MySQL user for a single database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
If I have multiple websites that access the same MySQL database - should each website use a different MySQL user, or is it ok to use the same user for all of the website?
The database and websites are on the same server.
Are there any pros or cons for each configuration?
I think it depends if you're the only one that's accessing the database, and what kind of website it is. If you're making websites for clients with WordPress for example, or any other CMS where the database credentials are saved in an accessible file (like wp-config), you definitely want to have different databases.
In case you're the only one accessing the database and the websites are all your own, I guess you could use the same user. I think I'd use different ones, even if it's just for clarity, but there is something to say for having just one account regarding security. Having just one account with a strong password means there are less accounts that could get hacked.

How to create a file that persists on the server with HTML5 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How can I create a file (let's say a markdown file) that persists on the server, strictly using HTML5? So no database or web server, just an static site server.
Your question is probably too broad but you need some type of program that serves a file but not "server software" such as Apache or nginx. Just like those web servers, they are written to listen to a port on the IP address of the computer attached to an internet connection somewhere. A program to do that is actually relatively easy to write but all the needs of a proper web server aren't such as needed security and the ability to interface to other programs.
But then that program is, in essence, a server and functions in the same manner so being able to serve a file without a server of some sort in some manner isn't possible.
Whole books are written about this and one of the best is, "Advanced Programming in the Unix Environment" by Stevens and "Unix Network Programming" also by Stevens.

why is there a sub-domain existing which I didn't create? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I resigstered a new domain visitsoonvalley.com but now I can see that there is a sub-domain support.visitsoonvalley.com which I didn't create and I can't find in the cpanel too. This page is showing ads and the first advertisement is of the company that I registered my domain with. Is it possible that they created this sub domain? Are they allowed to do this without notifying me?
UPDATE: I just checked going to help.visitsoonvalley.com and same result. Why are these sub domains existing?!
You cannot register subdomains. You cannot really create them. You can only use them.
Most likely there is a "wildcard DNS resolution" for your domain. That would be something your provider has done and it actually does make some sense, since most people want that. Why don't you simply ask them? They will probably remove it from your DNS settings if you ask them.
A "wildcard DNS resolution" means that all DNS resolution requests to hostnames within your domain are resolved to the same IP address, without any specific rule existing. So it is a kind of "fallback".
Why there are ads shown in your page is nothing we can say. Might be some default content your provider puts in as a placeholder until you create content. Or they simply created a DNS resolution as a palceholder until you name an IP address the domain should be resolved to. Again: why don't you ask your provider? You pay them for their service, so usually that means the have to give support...
Certainly that is not exactly a "nice" behavior if that really is not mentioned anywhere in their policy. But on the other hand it does no harm and is only temporary...

How to access two servers on one domain [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Port 80 is forwarded to a server on my network which has links to the different projects I'm working on, how could I allow people to connect to the server running on my laptop when I'm using it? I would obviously not prefer to change my router settings frequently to port forward to my laptop. I want the user to access my domain and maybe have a set of links which will be described as static and another set which will have a description cautioning the user that said links will only work when I am online and they would somehow redirect to my laptop. (Lamp Server)
Well, if I understood correctly your question, you should configure your laptop as a reverse proxy for your main server.
As you said, you should have a set of links which will redirect to your laptop (via reverse proxy config), but of course these links will work only when your laptop is available.

URL for web hosting [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
The person I use for hosting my website has told me that my website will look like this in the browser.
http://www.website.domain/folder/index.html
I would prefer the site to look like this:
A - http://www.website.domain/
or
B - http://www.website.domain/index.html
I am almost certain this is possible, and they just do not know how to set some kind of file path. This is a one page html site and the entire site is contained within 1 folder. So I have decided to go and find a company that will host my site (i.e. 1and1.com).
First, how do I set up web hosting for either of my preferred ways? What is the preference among web developers on preference A or B?
Second, what would be the consequences of adding a second folder containing another website. Would the second website still be able to have a URL of style A or B without interfering with the first website?
Just configure your web server's document root for each vhost accordingly. If your web host won't do this for you, or doesn't let you do it... find a new web host.
There's a good tool called mod_rewrite for that.
Getting started: http://wettone.com/code/clean-urls
Complex examples:http://httpd.apache.org/docs/2.0/misc/rewriteguide.html