subdomain

Redirect non-HTTP traffic to a port, based on a subdomain

流过昼夜 提交于 2019-12-06 03:59:41
问题 I'm working on making my two Minecraft servers easier to access. I've attempted a few solutions, but so far, none have worked effectively. I have a normal vanilla Minecraft server listening on mysite.com:25560, and a Tekkit Minecraft server listening on mysite.com:25570. That is, both Minecraft servers are running on the same machine. They work properly when users directly connect to the server with the port specified. The vanilla server was initially listening on mysite.com:25565, the

Django Subdomains using django-subdomains package

心不动则不痛 提交于 2019-12-06 03:57:48
问题 I am using the django-subdomains package to create subdomains. The problem is that no matter how I configure the SUBDOMAIN_URLCONFS, the site always directs to whatever I have put in ROOT_URLCONF as a default. Any insight as to what I am doing incorrectly would be greatly appreciated! EDIT: Added MIDDLEWARE_CLASSES mysite/settings.py ... MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf

Detect language and redirect to subdomain on Symfony

孤街浪徒 提交于 2019-12-06 02:52:16
问题 I'm using Symfony 1.2.7. My web is in several languages, each of one is in a subdomain like en.example.com, es.example.com. If the user enters into example.com, I want to redirect him to his language. I also want to have support staging.example.com and redirect to es.staging.example.com and en.staging.example.com so I can test everything before the deployment. I have the following code that works both on index.php and frontend_dev.php. My question is, can you improve it? is there a better or

running multiple java jetty instances with same port (80)

 ̄綄美尐妖づ 提交于 2019-12-06 01:48:28
问题 For Example: I am having one primary temp domain www.product.com For each client i need to have separate sub domain mapped to same server with same port(80) but with different instance name (different .wars files) www.client1.product.com www.client2.product.com www.clientn.product.com (correct me if i am wrong) As i know if i start jetty instance , each will start at seperate port no's client1 war will start at port 3001 client2 war will start at port 3002 client3 war will start at port 3003

Symfony2 session for all subdomains

做~自己de王妃 提交于 2019-12-06 00:19:43
The website I am building has a subdomain per user. The default domain is www.acme.com, my own page would (for example) be marcel.acme.com. Another users pages are under johndoe.acme.com. Now the following happens: - www.acme.com shows me as logged in. - marcel.acme.com shows me as logged in. - johndoe.acme.com shows me as anon. Within my config.yml I did set framework: session: cookie_domain: .acme.com Firewall is defined for ^/ and uses both form_login (FosUserBundle) and oauth. Both have same behavior. Login on www.acme.com does redirect to marcel.acme.com, so probably that is why both

Host multiple websites using Node.js Express

China☆狼群 提交于 2019-12-06 00:05:08
问题 I am having problems configuring two different Node.js applications with different domains. Have two directories "/abc/" -> express-admin setup (backend) -> admin.abc.com and "/xyz/" -> express setup (frontend) -> abc.com I need admin.abc.com to point to express-admin setup and abc.com to express setup. I have vhost installed and both the site listens to port 80. Have added app.use(vhost('abc.com', app)); // xyz/app.js file app.use(vhost('admin.abc.com', app)); // abc/app.js file My problems:

GWT-RPC and the infamous sporadic “StatusCodeException: 0” exception revisited

耗尽温柔 提交于 2019-12-05 23:14:40
问题 My problem is the infamous "StatusCodeException: 0" problem happening when using GWT 2.6.1 when accessing page via subdomain https://sub.site.com/ . Now, this happens quite sporadically for one customer using IE11 and I can't reproduce this from several distinct computers using IE11, IE10, IE9 or IE8 (not to talk about Chrome or Firefox). Accessing exactly the same webapp from https://site.com/ seems to work fine for that customer. This obviously lead me to conclusion that I'm having problem

What is the recommended approach to add static subdomains to a website?

[亡魂溺海] 提交于 2019-12-05 23:06:54
I would like to create a few static subdomains like: mycategory.mydomain.com in a rather small website and would like it to point to the folder: mydomain.com/mycategory without showing such redirection in browser address bar. What is an easiest way to achieve it? I can do it in either IIS settings, asp.net, C# code, etc I guess there are better ways then creating a few separate Sites in IIS - one for each subdomain. Setup multiple websites in IIS and assign a unique hostheader to each one of them (mycategory1.mydomain.com, mycategory2.mydomain.com, etc). Point each website to its destination

Apache RewriteCond (subdomain)

孤街醉人 提交于 2019-12-05 22:44:00
I am trying to redirect request for a subdomain to main domain. ie: xxx.domain.com/blah/xyz --> domain.com/blah/xyz My rewriteconds work fine for xxx.domain.com but for anything like xxx.domain.com/123/xyz 400 Bad Request is all I get… Any help will be appreciated. Rule should look like : RewriteCond %{HTTP_HOST} ^xxx.domain.com RewriteRule (.*) http://domain.com/$1 [L] 来源: https://stackoverflow.com/questions/5641715/apache-rewritecond-subdomain

Programmatically create subdomains with JBOSS and java

喜欢而已 提交于 2019-12-05 20:06:58
Right now I am developing an application on JBOSS 7.1 using JSF, SEAM and Primefaces. The application is providing a user registration. What I need is when the user registers an account for the nickname for example "andrew", his profile will be publicly accessed as andrew.mysite.com. How can I implement this programmatically. Thanks in advance, Ilya Sidorovich This is simply a process of mapping your subdomain to URL's that can be accessed by the appserver and use something like REST to map the URL to request parameters. In your example, you will probably need a webserver like Apache web