subdomain

Wildcard subdomains in IIS7. Is it possible to make them like it is in Apache?

て烟熏妆下的殇ゞ 提交于 2019-11-27 11:02:59
Is this possible to configure IIS7 to achieve the same functionality like Apache has regarding wildcard domains? I'm interested in routing user in ASP.NET web application based on subdomain user used in URL. Something like is described here: http://steinsoft.net/index.php?site=programming/articles/apachewildcarddomain Thanks Daniel Liuzzi The answer is No, IIS7 (still) does not support wildcard hostnames (see this ). If you want to serve multiple domain on one website, the only workaround for now, as notandy suggested, is using a dedicated IP and doing it with DNS, which does support wildcards

Setting a cookie on a subdomain from an ajax request

痴心易碎 提交于 2019-11-27 10:35:30
问题 I have a webapp on www.example.com and an API on api.example.com. The webapp makes ajax calls to the API. Somewhere I need to put a cookie on api.example.com to keep sessions track. To track my problem I've set test cookies on both subdomaines from the webapp and the api. The webapp set a cookie on .exemple.com and the api set one on .exemple.com and another on api.exemple.com. Cookies are set using Domain=.exemple.com only. No path, no HTTPOnly. Note: In the end I need only one on api

Amazon S3: Static Web Sites: Custom Domain or Subdomain

末鹿安然 提交于 2019-11-27 10:17:33
Amazon.com just announced that one can host static web sites in a S3 bucket. I went to their setup page at http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?WebsiteHosting.html and created a bucket for my static web site, and it worked fine. I have an URL of the form http://[my bucket name].s3-website-us-east-1.amazonaws.com/. However, I would like to point a subdomain that I own (e.g. static.mydomain.com) to my static web site at Amazon S3. Has anybody figured out how to do that? I appreciate any help you can give me. Jay Godse It turns out that to make it work, you cannot just

Domain IP address for www and non-www for Canonical URL

北城余情 提交于 2019-11-27 10:01:50
问题 To handle Canonical URL is it best practice to do a 301 redirect or better to have the same IP Address for both www and non www domain? For example: Canonical URL/domain wanted is http://mydomain.com Domain | A Record ------------------------------------ mydomain.com | 58.162.62.34 www.mydomain.com | 58.162.62.34 I understand people may have a CNAME record for www (alias, given that CNAME is called Canonical Name); unsure if this is best practice compared to using the same IP address. Or is

How do I get a list of all subdomains of a domain? [closed]

匆匆过客 提交于 2019-11-27 09:58:38
I want to find out all the subdomains of a given domain. I found a hint which tells me to dig the authoritative Nameserver with the following option: dig @ns1.foo.bar some_domain.com axfr But this never works. Has anyone a better idea/approach TimB The hint (using axfr) only works if the NS you're querying (ns1.foo.bar in your example) is configured to allow AXFR requests from the IP you're using; this is unlikely, unless your IP is configured as a secondary for the domain in question. Basically, there's no easy way to do it if you're not allowed to use axfr. This is intentional, so the only

PHP: SESSION lost on SUBDOMAIN

懵懂的女人 提交于 2019-11-27 09:35:01
I am trying to use session data on multiple subdomains. Ej: www.mywebsite.com my.mywebsite.com test.mywebsite.com whateversub.mywebsite.com When I try to use session data from www.mywebsite.com to any subdomain, all the session information is not accessible. I am NOT using cookies. Just sessions. I have godaddy as web host. Godaddy DOES allow to upload a custom php5.ini file Since I am a php beginner, please dumb down your response so I may understand it. Here is an example: File 1: <?php //FILE 1: www.mywebsite/index.php session_start(); $_SESSION['status'] = "ON"; header( 'Location: http:/

Internal subdomain to folder redirect

旧时模样 提交于 2019-11-27 08:58:58
I want to create folders on the fly, but make it seem like I am creating subdomains on the fly using mod_rewrite. e.g. Create "john" folder using PHP www.example.com/john/ Then be able to access whatever I put in there at: john.example.com Thank you in advance, Kris First you need to configure your server to accept any subdomain for your domain example.com and redirect it to your virtual host that as well has to accept any subdomain. After that, you can use the following rule to rewrite that subdomain internally to a folder with the same name: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.

Multiple GitHub Pages and custom domains via DNS

人盡茶涼 提交于 2019-11-27 08:58:47
问题 I want to have one user page and multiple project pages hosted by GitHub Pages but available under ONE custom domain (with subdomains for each GitHub Pages repository, of course). So my goals are as follows: One user page (http://florianwolters.github.com) available under http://blog.florianwolters.de, http://www.florianwolters.de and http://florianwolters.de. As many project pages as I wish (e.g. http://florianwolters.github.com/pear available under http://pear.florianwolters.de. As of my

Nginx drop when server_name does not match

孤街醉人 提交于 2019-11-27 07:11:30
问题 I have two vhosts : one on domain.tld port 80, the other on sub.domain.tld port 443 with SSL on. I added a CNAME entry on my DNS server that redirects my sub subdomain to domain.tld. . Everything works as expected, but going to http://sub.domain.tld does the same as going to http://domain.tld , and https://domain.tld the same as https://sub.domain.tld . How can I prevent this ? My configuration : server { listen *:443; listen [::]:443; server_name www.sub.domain.tld; ssl on; ssl_certifiate ..

How to redirect from a subdomain to a subfolder using .htaccess

我怕爱的太早我们不能终老 提交于 2019-11-27 07:11:05
问题 I need help redirecting a subdomain to a subfolder on my website using the .htaccess file. I am not a pro in regards to configuring the .htaccess file, so please forgive me if my problem is a simple fix. In my .htaccess file, I have the following code: RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com RewriteRule ^(.*)$ /subfolder/$1 [R=301] It almost works, but when I enter subdomain.domain.com into the address bar, I get redirected to subdomain.domain.com/subfolder/ This is really close, but