subdomain

Dynamic subdomains in asp.net mvc

不想你离开。 提交于 2019-11-29 01:34:10
问题 I am fairly new to asp.net, and have little experience with iis. I would like to have each user of my application get their own sub-domain, but all use the same controllers. The subdomain would then control what content is displayed. Example: user1subdomain.mydomain.com/Whatever user2subdomain.mydomain.com/Whatever Will both use the same controller. Ideally a parameter could give the user name to the controller, which could then display the appropriate content. I would like it to be flexible

.htaccess: mod-rewrite; subdomain

无人久伴 提交于 2019-11-29 00:45:19
I am working on a new website bud I want to create a nice looking urls for my users. I don't know anything of htaccess and could not find my solution on google. I need to link: user.mywebsite.com to>> mywebsite.com/users/user user2.mywebsite.com/contact to>> mywebsite.com/users/user2/contact Some links may not be linked like: www.mywebsite.com may not link to mywebsite.com/users/www Is this possibe to do with htaccess ? If yes can someone explain it to me? Using mod_rewrite, you can try: RewriteEngine On # the request URI doesn't already start with /users/ RewriteCond %{REQUEST_URI} !^/users/

Access root domain's localStorage from subdomain

不想你离开。 提交于 2019-11-28 23:46:38
EDIT: For the sake of simplicity: I've got a simple UserJS script (FF/Chrome: Greasemonkey, Opera: built-in) that fixes some issues on website I'm using quite often. The problem is that I need to store some data between different requests. My first attempt was LocalStorage but it fail when it came to work with subdomains: www.domain.com and subdomain.domain.com (unfortunately root-domain is subdomain in fact - stupid www ) . I need to be able to access some data source that would be available everywhere. Now I'm stuck - any ideas? ...Why not use GM_setValue and GM_getValue ? EDIT: I did a

How to create a subsubdomain for an app on heroku: (e.g. sub.myapp.herokuapp.com)

做~自己de王妃 提交于 2019-11-28 23:36:18
I am running a multi tenant app that uses subdomains for tenants on Heroku. In production I have a domain where subdomains point to my heroku app. (This all works fine) For staging, I'd like to test without creating another domain. Since my app uses the first subdomain it sees to find the current tenant, I was hoping to use a url like: tenant.myapp.herokuapp.com. However, this is not working (heroku returns a 'no such app' error.) I've found this post from 2 years ago that says it should be possible, but I don't see this add-on/option anymore in the referenced documentation. I have tried

Hosting images on separate sub domains

早过忘川 提交于 2019-11-28 21:32:13
My company hosts about 30 web sites all sharing the same code base and reusing many of the same images. Right now, the images for all of the sites are hosted on the one domain, and then every other site has to link to those images. i.e., www.example.com/images/hello.jpg and on www.example2.com we have something like: <img src="http://www.example.com/images/hello.jpg" /> Recently someone told me that I should be putting all of these shared/static images on a subdomain, but I don't see the advantages to this. I have heard that there might be a slight speed increase, but I've also heard that it

Subdomain in Google Console Redirect URIs

假如想象 提交于 2019-11-28 21:32:02
I have an web application that uses google api (google drive). The application is used by many clients and every client has an subdomain to access the system. So the domain is appdomain.com And for users I have foo.appdomain.com , bar.appdomain.com , etc.appdomain.com . But in google console redirect URI I have to manually put the redirect urls, is there any way I can use wildcards to redirect to make google accept any of subdomains like: *.appdomain.com ? With this I can make the google authorization calls with the user subdomain in redirect_uri: https://accounts.google.com/o/oauth2/auth

Domain doesn't work without `www`

送分小仙女□ 提交于 2019-11-28 20:16:54
When I type in my domain name like without the www (like http://example.com ), it doesn't work and gives error message. However, when I add the www to it (like http://www.example.com ), it works. Isn't it supposed to work both ways (with and without the www )? Digital site All you need is to add the following code to your root .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] With the current version of apache, you need to do the following, which has changed compared to the previous versions: cd /etc/apache2/sites-enabled

Dynamic subdomain with htaccess (not redirect)

吃可爱长大的小学妹 提交于 2019-11-28 19:58:20
Currently, I'm having an url system like this by using the htaccess: - www.domain.com/member/username - www.domain.com/member/username/contact - www.domain.com/member/user/album/title-of-the-album/albumID .. something like that Here is my htaccess, and it worked perfectly. RewriteRule ^member/([a-zA-Z0-9_-]+)$ member.php?username=$1 RewriteRule ^member/([a-zA-Z0-9_-]+)/contact$ contact.php?username=$1 RewriteRule ^member/([a-zA-Z0-9_-]+)/album/([a-zA-Z0-9_-]+)/([0-9]+)$ album.php?username=$1&title=$2&album_id=$3 Now I want to setup a dynamic subdomain system for the user, likes "username

Free DNS server for Windows XP/Vista/Win7? [closed]

半城伤御伤魂 提交于 2019-11-28 18:49:33
问题 I'm currently developing a security solution that should work across domains and as such I need a small private dns server to add various entries to. I could alter the hosts file to achieve the same result but since the hosts file doesn't support wildcard chars I will have a whole lot of entries, so a DNS server that supports wildcards would be a little bit easier. Any suggestions? 回答1: As a reference: http://sourceforge.net/projects/acrylic/ Acrylic is a local DNS proxy which improves the

Sharing session across rails apps on different subdomains

旧时模样 提交于 2019-11-28 18:49:11
I am trying to implement a single-sign-on solution for multiple rails (v3.2) apps hosted at different subdomains of example.com One app serves as an identity provider, uses devise for auth, and sits at users.example.com The other apps rely on the identity provider for authentication, use devise+omniauth, with domains of [app1.example.com, app2.example.com, and example.com]. This blog entry inspired much of my implementation: http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/ I have it working fine, but the problem remains that the sessions