subdomain

Wildcard Subdomains

霸气de小男生 提交于 2019-11-28 03:29:53
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 somebody give me explicit instructions on how to do this? Also, I am doing all of my development

CakePHP website mobile version

爷,独闯天下 提交于 2019-11-28 03:21:16
I have developed a full website with CakePHP framework and we'd like to make a very light version of the website for mobile devices (mainly iPhone/iPad). Is there a way to use the existing website with a new sub domain (for instance mobile.mywebsite.com) which will render specific views? I would like to avoid copying and simplifying the current one to match the new one requirements. I do not want to have to "re-develop" a new CakePHP website and do the changes twice every time I need to change a controller action. Dan Berlyoung I've done this using a quick addition to the beforeFilter() in my

Setting cookies for multiple sub-domains

♀尐吖头ヾ 提交于 2019-11-28 03:16:32
问题 Is it possible to set a cookie for http://www.example.com from a PHP file located at https://secure.example.com ? I have some code that was given to me, that appears to try and fails at this. I was wondering if this is possible at all. 回答1: Webpages can only set cookies for the second (or higher) level domain that they belong to. This means that secure.example.com can read and set cookies for secure.example.com or .example.com , the latter of which can also be read and set by www.example.com

Public Wildcard Domain Name To Resolve To 127.0.0.1 [closed]

懵懂的女人 提交于 2019-11-28 02:55:42
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. *.vcap.me VMWare maintains this for their open cloud platform . 37Signals created a complete domain for mapping to any IP you want, http://xip.io . So for localhost you can

Pointing a subdomain to a subfolder using .htaccess

江枫思渺然 提交于 2019-11-28 02:00:32
问题 My webhost automatically forwards all requests to *.mydomain.com to the toplevel domain mydomain.com. I wanted to map any subdomain to a specific folder on my toplevel domain. i.e. sub.example.com must be mapped to example.com/someFolder ( without change in the address bar). After digging around on the net, I came up with this: RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?[^.]+\.example\.com.*$ RewriteRule (.*) http://example.com/myfolder/$1 [L] This seems to work well,

Domain name for my PC: how to (tried No-IP, DuckDNS and ngrok)

让人想犯罪 __ 提交于 2019-11-28 01:41:30
I want: ping server on my PC by it domain name from remote. I have: DynDNS services DuckDns (or No-IP , config in no-ip is even harder). It gets me an IP 94.154.220.216 and (sub)domain http://my_domain.duckdns.org . To configure DuckDNS on PC I need just specify some token and my domain name ( my_domain ). Also I've launched server on lacalhost:3000 . Also when I go to CanYouSeeMee it says that my IP is 94.154.220.216 (that's good). And I configured static IP for my PC (let's say 200.300.1.15 ) And Setting port forwarding for with help of Port Forwarding Wizard (Port= 3000 , Protocol=TCP,

How to read main cookie from the sub domain with an existing sub domain cookie in PHP?

依然范特西╮ 提交于 2019-11-28 01:25:36
问题 I need to use main domain cookies for my sub domains as with higher priority when both sub and main domain cookies exists. The problem is when I'm on sub.domain.com and there exist cookies for sub.domain.com .domain.com The PHP global $_COOKIE contains $_COOKIE['data'] == 'sub.domain.com' . I would like to check if there is also a .domain.com cookie and use it. How do I read the main cookie when I'm on a sub domain with an existing sub domain cookie? 回答1: It looks like the gist of your issue

How to rewrite URL as subdomain in asp.net without actually creating a subdomain on server

☆樱花仙子☆ 提交于 2019-11-27 23:16:32
I hope this isn't the first time i'm asking this question on SO. I've URLs in my website and which are using query string values For example: http://foo.com/xyzPage.aspx?barvalue=yehaa to http://yehaa.foo.com/ Please suggest how it can be accomplished without actually creating subdomains on server .. I've IIS 7.5 installed on server machine and using Asp.net 4.0 . Many thanks EDIT following our comments: To access http://foo.com/xyzPage.aspx?barvalue=yehaa using http://yehaa.foo.com/ , you have to use the following rule: <rules> <rule name="Rewrite subdomains"> <match url="^/?$" /> <conditions

htaccess, redirect virtual subdomain to URL parameter

时光总嘲笑我的痴心妄想 提交于 2019-11-27 22:50:11
问题 I have a .ne.ro domain (registered in Romania) where visitors can enter with or without 'www': http://mydomain.ne.ro http://www.mydomain.ne.ro I want to redirect http://123.mydomain.ne.ro to http://mydomain.ne.ro?id=123 . If visitor enter with 'www|mail|ftp' must be treated as non parameter (obviously). I tried htaccess subdomain redirct with last url parameter but didn't work. Current code: # edited on 05/April/2011 as suggested: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.mydomain\.ne\

Pros and Cons of a separate image server (e.g. images.mydomain.com)?

[亡魂溺海] 提交于 2019-11-27 20:46:56
问题 We have several images and PDF documents that are available via our website. These images and documents are stored in source control and are copied content on deployment. We are considering creating a separate image server to put our stock images and PDF docs on - thus significantly decreasing the bulk of our deployment package. Does anyone have experience with this approach? I am wondering about any "gotchas" - like XSS issues and/or browser issues delivering content from the alternate sub