subdomain

Heroku + node.js: I have a server which uses multiple ports. How can I get Heroku to allocate them?

你说的曾经没有我的故事 提交于 2019-11-27 02:06:34
问题 Umm I'll try to be more clear.. In an application server I have written in node.js, I have inner-proxy for multiple ports: in my 8080 port I have my rest api . in my 3000 port I have my push server and chat . I use the npm package subdomain-router for inner-routing to the port, exposing sub-domains in the 'front-end' which proxy back to those ports. code demonstration: ( <some-app> is not the real name of the app obviously) require('subdomain-router') ({ host: '<some-app>.herokuapp.com',

Cross domain cookie access (or session)

本小妞迷上赌 提交于 2019-11-27 02:00:39
问题 While I realise that this is usually related to cross site scripting attacks, what I'm wondering is how can a session remain valid throughout multiple subdomains belonging to a single domain (example: a user logging in only once, and being able to access both subdomain1.domain.com and subdomain2.domain.com with the same session). I guess I first need to understand how it works, but so far I haven't been able to find much that would be of any relevance. But then again, maybe I wasn't asking

Sharing SESSION Variables Between Multiple Subdomains

一个人想着一个人 提交于 2019-11-27 01:46:40
I have a website www.example.com. That will have multiple subdomains that work with a single application or program. For an example, login.example.com will allow the user to log in to the site while system.example.com will allow the user to access an information system, while forums.example.com will allow the user to access forums. We may need to pass information between the subdomains such as a user id, or a user preference, etc. How do we go about passing information between the sudomains using SESSION variables? EDIT: I like this idea: As the first thing in your script: ini_set('session

HTML5 Canvas getImageData and Same Origin Policy

删除回忆录丶 提交于 2019-11-27 01:45:44
I have a site running at pixie.strd6.com and images hosted through Amazon S3 with a CNAME for images.pixie.strd6.com. I would like to be able to draw these images to an HTML5 canvas and call the getImageData method but it throws Error: SECURITY_ERR: DOM Exception 18 I have tried setting window.domain = "pixie.strd6.com" , but that has no effect. Additionally, $.get("http://dev.pixie.strd6.com/sprites/8516/thumb.png?1293830982", function(data) {console.log(data)}) also throws an error: XMLHttpRequest cannot load http://dev.pixie.strd6.com/sprites/8516/thumb.png?1293830982 . Origin http://pixie

What are the allowed characters in a subdomain?

依然范特西╮ 提交于 2019-11-27 01:39:02
What characters are you allowed to use in a subdomain? Example: for someSub.example.com the someSub portion. I know you can use letters, numbers, and hyphens, but what about other characters? Can _ (underscore) be used? William Dwyer Letters (except stressed à), Numbers 0-9 and Hyphen. http://en.wikipedia.org/wiki/Domain_name excerpt: Valid characters that can be used in a domain name are: a-z 0-9 - but not as a starting or ending character . as a separator for the textual portions of a domain name From http://tools.ietf.org/html/rfc1035 Various objects and parameters in the DNS have size

Problems with SSL and multi level subdomains

吃可爱长大的小学妹 提交于 2019-11-27 01:22:36
问题 I have a wildcard SSL from Godaddy. When I go here: https://conciergelive.conciergeliveapp.com/users_session/new Everything is fine. But when I go here: https://es.conciergelive.conciergeliveapp.com/users_session/new I get a security alert. I need the extra subdomain to determine locality. Any ideas why this does not work? 回答1: According to RFC 2818 Http Over SSL, section 3.1: Names may contain the wildcard character * which is considered to match any single domain name component or component

Apache Multiple Sub Domains With One IP Address

我怕爱的太早我们不能终老 提交于 2019-11-27 00:45:04
问题 This has probably been asked but I can't find a straight answer, or the ones I found don't work. I have one domain mydomain.com , resolving to an IP; let's call it 8.8.8.8. The DNS settings also point two subdomains to that IP address with an A record. These are dev.mydomain.com and staging.mydomain.com . Both have an A-record pointing to 8.8.8.8. On the server (8.8.8.8) I have two virtual hosts files. These are as follows: staging.mydomain.com.conf <VirtualHost *:80> ServerName staging

Wildcard Subdomains

只愿长相守 提交于 2019-11-27 00:04:23
问题 I know there have been a few threads on this before, but I have tried absolutely everything suggested (that I could find) and nothing has worked for me thus far... With that in mind, here is what I'm trying to do: First, I want to allow users to publish pages and give them each a subdomain of their choice (ex: user.mysite.com). From what I can gather, the best way to do this is to map user.mysite.com to mysite.com/user with mod_rewrite and .htaccess - is that correct? If that is correct, can

Public Wildcard Domain Name To Resolve To 127.0.0.1 [closed]

☆樱花仙子☆ 提交于 2019-11-26 23:53:08
问题 Is anyone aware of a public wildcard domain name that resolves to IP address 127.0.0.1. For example if I wanted to test a URL locally such as mywebsite.localhost.com or example.localhost.com but I don't have control of DNS settings (hosts file or whatever) then I would use this public DNS to resolve to 127.0.0.1. It needs to be wildcarded so that no matter whatever comes before localhost.com it still resolves to 127.0.0.1. 回答1: *.vcap.me VMWare maintains this for their open cloud platform.

Subdomain on different host [closed]

此生再无相见时 提交于 2019-11-26 23:52: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 8 years ago . I'm trying to host a subdomain for my site with a different hosting company and I'm running into issues on how to set it up. Here are the specifics: - Domain is registered with GoDaddy. - Nameservers are pointing to DiscountASP.net where ASP.NET app has been happily running for couple of years. - Would like blog