Reputation
6,395
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
11 35
Newest
 Nice Answer
Impact
~227k people reached

Mar
18
suggested approved edit on Google Analytics - New & Old Domain Filtering
Mar
18
comment Where can I download list of all .com domains registered in the world
You do realize that, by the time you've downloaded the list, it will already be obsolete?
Mar
18
answered SEO strategy for h1, h2, h3 tags for list of items
Mar
18
answered Why am I getting cgi-sys/defaultwebpage.cgi coming up when I browse my webpage?
Mar
18
answered Best way to move your domain and keep the Google position
Mar
18
comment Show index page of domain1 when user enters the URL of domain2
I think you're a bit confused about something. nginx is a web server. A CNAME is a DNS record. Saying that you "can CNAME from an nginx server" is about as meaningful as saying that you have 100 GB Microsoft Linux CPU in your monitor.
Mar
18
comment Show index page of domain1 when user enters the URL of domain2
What I'm trying to make you realize is that it also depends on the way the webserver at domain1 is configured. It might work without any changes, if you're not using name-based virtual hosting. If you are, it won't. But you don't have to take my word for it, since I just did the experiment I suggested above: if you don't believe me, do a DNS lookup on cnametest.vyznev.net and then try to visit it.
Mar
18
comment Show index page of domain1 when user enters the URL of domain2
Anagio: Why don't you try it? Set up a hostname on your own domain with a CNAME pointing to, say, webmasters.stackexchange.com, and see if you can get the content from this site to show up on your hostname. (Spoiler: it won't work.)
Mar
18
comment Show index page of domain1 when user enters the URL of domain2
If your webhost is using name-based virtual hosting (which it most likely is, unless you run your own private server and have only one site running on it), it determines which content to send based on the original, unresolved hostname sent by the browser in the Host header. If the hostname it sees isn't anything it recognizes, it will show either an error message or some default page that is probably not what you want.
Mar
17
comment How can I prevent spam on sites which I control?
+1 for details.
Mar
17
comment Show index page of domain1 when user enters the URL of domain2
Of course, for this to work, the webserver at domain1.com must be configured so that it accepts requests for pages on domain2.com and returns the same content as for domain1. But yes, as long as you take care of that, this is IMO the best solution.
Mar
17
answered Alt text vs CSS sprites (SEO vs speed)
Mar
17
answered .htaccess URL rewrite
Mar
17
comment .htaccess URL rewrite
Actually, you can just omit the [^12], period. The regexp ^([^/]+)\.htm$ cannot match anything beginning with 1/ or 2/, since those prefixes contain a slash.
Mar
17
comment What encoding do most users prefer to have?
+1. I'm trying to think of some reason for a modern website not to use UTF-8, and, frankly, I haven't come up with any yet.
Mar
17
revised Is it possible to invalidate cache when the referrer adress is different?
added 440 characters in body
Mar
17
answered Is it possible to invalidate cache when the referrer adress is different?
Mar
15
answered Does server location matter in same country?
Mar
15
comment How do I get a TB of data to a new web server?
Better yet, use rsync if the target host supports it. (Many do.)
Mar
15
answered Rel=next & rel=prev in infinite scroll