subdomain

Custom domain name mapping to user profile.

对着背影说爱祢 提交于 2019-11-30 16:06:07
Currently, user profiles are in the format of website.com/username which is fine. However, some heavier users wish to use custom domain names. This is similar to Tumblr. Users are given a subdomain of username.tumblr.com but they are allowed to use an external domain which gets mapped to the subdomain. How do I go about this in PHP? Allowing users to use custom domain names? Thanks so much in advance for the help! camilo_u You can use the following examples: Basic PHP: How to let PHP to create subdomain automatically for each user? CodeIgniter: http://net.tutsplus.com/tutorials/php/basecamp

Extract Google Search Results

感情迁移 提交于 2019-11-30 13:39:30
问题 I would like to periodically check what sub-domains are being listed by Google. To obtain list of sub-domains, I type 'site:example.com' in Google search box - this lists all the sub-domain results (over 20 pages for our domain). What is the best way to extract only the URL of the addresses returned by the 'site:example.com' search? I was thinking of writing a little python script that will do the above search and regex the URLs from the search results (repeat on all result pages). Is this a

API subdomain for Heroku app, is it possible?

我与影子孤独终老i 提交于 2019-11-30 13:21:55
I am trying to build an API and I am concerned that all my resources will either not be accessible with the api.myapp.com domain or that they will "live" with the wrong uris. I have added the CNAME for my domain name to point to my Heroku app. (ex: browsing to www.myapp.com takes you to https://myherokuapp.heroku.com ) I would like to set up an API subdomain, so that a GET to https://api.myapp.com takes you to https://myherokuapp.heroku.com/api/v1 The best scenario would be that a POST to https://api.myapp.com/accounts/12345 would create a new account. Is that even possible? (I know that

Google Analytics cookies vs subdomain for static content

社会主义新天地 提交于 2019-11-30 12:41:39
I have a website on www.example.com and use Google Analytics. I've also set up static.example.com which serves all static content. The problem is that the default behavior of GA is to issue cookies on ".example.com" but I don't want the static content traffic to be carrying the weight the GA cookies. I tried pageTracker._setDomainName("none"); and it worked well for the cookies problem but it completely messed up the "Avg. Time on Site" report (from 5 mins average it went to 40 mins until the day I reverted the _setDomainName call). Any idea why this is happening and how could I fix it? The

*.mydomain.com - A record or CNAME?

若如初见. 提交于 2019-11-30 11:44:30
问题 Some people are saying use an A record and others a CNAME for a catch all subdomain. Which should I use and why? 回答1: It won't really matter if you CNAME or A record the *.example.com record. The one benefit to CNAME is that if you change your A record for www.example.com you won't need to change the *.example.com record as well, but that's minimal. 回答2: I think question is about to understand A & CNAME records deeply. I have also found this confusing but after reading couple of blogs, I came

Sub Directory to a different server

允我心安 提交于 2019-11-30 11:19:55
Is it possible to for a domain e.g. www.myclient.com to have a sub directory hosted on a completly different (our) server? They don't want to point subdomain.myclient.com to our servers so they want it as folder www.myclient/subdomain/ Thanks in advance. As discussed in the comments, your only option is a Proxy. Everything else (Like mod_rewrite / Alias) will do a header redirect, and expose the target address to the user. However, Apache's proxying doesn't seem to be that complicated. The most basic example is ProxyPass /mirror/foo/ http://backend.example.com/ Note that a proxy will of course

how to create subdomains in apache(xampp) server?

末鹿安然 提交于 2019-11-30 11:06:39
问题 I've trying to create subdomain in my local xampp installation for some time. I tried editing my httpd.conf file and I entered the following: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /ecommerce ServerName ecomm.localhost </VirtualHost> I also edited my windows hosts file and entered: 127.0.0.1 ecomm.localhost But when I type 'ecomm.localhost' in my firefox it gives me: Access forbidden!!! Can please anybody help me out? What exactly I'm doing wrong? I'm fairly new to this. I

How to forward a subdomain to a new port on the same IP address using Apache? [closed]

回眸只為那壹抹淺笑 提交于 2019-11-30 10:41:09
问题 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 7 years ago . I have a NAS/Server running at home 24/7 and run many different services on it. I have got a domain name pointing to it now, and was wondering if it would be possible to create sub-domains that point to different ports for different services. For example: http://subsonic.mydomain.com --> XXX.XXX.XXX.XXX:4040

Redirect wildcard subdomains to subdirectory, without changing URL in address bar

为君一笑 提交于 2019-11-30 10:23:08
I've read a lot of questions and answers about this on here but none that seem to solve my specific problem. I want to redirect any subdomain to the subdirectory to match. So: x.domain.com would go to domain.com/x, and y.domain.com would go to domain.com/y - But I want to do this without the URL in the address bar changing. Here's what I have so far: Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !^(www)\. [NC] RewriteCond %{HTTP_HOST} ^(.*)\.domain\.com [NC] RewriteRule ^ /%1 [P,L] But this takes me to a website redirect loop, with an incorrect address in the

Mapping subdomains to URLs with nginx

六眼飞鱼酱① 提交于 2019-11-30 10:15:01
I'm very new to nginx, so forgive me if my explanations are off. I'll do my best to explain what I am trying to achieve. Using WordPress and nginx, I would like user accounts to be mapped to a subdomain of the main domain. For example, if the user creates an account called "sample", the subdomain for that user would be sample.example.com . When the user goes to sample.example.com , the subdomain should be mapped to example.com/sample/ . Similarly, if a user visits sample.example.com/account/ , it should map to example.com/sample/account/ , and so on and so forth. It should be noted that the