Questions tagged [subdomain]

Subdomain is a domain which is a part of a larger domain. For example, 'sub.example.com' is subdomain of 'example.com' domain.

5761 questions
1
vote
2 answers

htaccess RewriteRule for subdomain

Say I have the following site: http://example.com/site that is the same of http://site.example.com I was wondering if I could obtain something like this http://site.example.com/var/ using apache2's mod_rewrite. Here's my try: RewriteEngine…
Simone
  • 20,302
  • 14
  • 79
  • 103
1
vote
1 answer

Does the region need to be in an S3 domain?

When you navigate to a file uploaded on S3, you'll see its URL in a format such as this (e.g. in this example the bucket name is example and the file is hello.txt): https://example.s3.us-west-2.amazonaws.com/hello.txt Notice that the region,…
Senseful
  • 86,719
  • 67
  • 308
  • 465
1
vote
0 answers

MVC Json controller returning full page when called from different project in different sub domain?

I have my MVC project running under a sub domain, say json.mysite.com and my controller being something similar to /// assume this method is in some controller - MyJsonController.cs public JsonResult GetStoreDetails(int storeId) { ..... …
LocustHorde
  • 6,361
  • 16
  • 65
  • 94
1
vote
0 answers

Backend sub domain cookie management

I have my main domain example.com. Subdomains:- auth.example.com, app.example.com, www.example.com Backend:- api.example.com Case 1 - When I server my subdomain static contents from Nginx and they make their API calls to api.example.com then NestJS…
1
vote
4 answers

moving files around different sub domains

I am currently working on a quite a big project for a client and one of the things that they want is to be able to create new isntances of their software on different sub domains and each using its own database, they want to be able to do this in…
Rob
  • 11
  • 2
1
vote
0 answers

Setting a cookie on a subdomain for reading on the main domain?

I'm trying to set a cookie using PHP on a subdomain (api.example.com) and read it on the main domain (example.com) My setcookie looks like this: setcookie("user-hash", $userHash, $expiry, "/", $domain, true, true); Where $domain has been a few…
Tony Merryfield
  • 383
  • 3
  • 10
1
vote
1 answer

AWS Route53 record creation "DomainLabelTooLong" Error

While creating the new record with abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl as my subdomain I'm getting the below error. (InvalidChangeBatch 400: DomainLabelTooLong (Domain label is too long) encountered with…
1
vote
1 answer

Subdomain based user accounts management via Nginx

I have gone through different posts related to my problem statement but non of them seem to answer my problem and maybe this helps others too. Problem Statement: I am trying to setup subdomain based user spaces where foo.myportal.com will point to…
Nah
  • 1,690
  • 2
  • 26
  • 46
1
vote
2 answers

.htaccess : Rewriting initial output back into subdomain

I have the following htaccess. Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !^(www|m)\.DOMAIN\.com$ RewriteCond %{HTTP_HOST} ^([^\.]+).DOMAIN.com$ RewriteRule ^(.*)$ http://DOMAIN.com/index.php?id=%1…
1
vote
0 answers

Dokku app supposed to point to subdomain instead points to domain of other app

I am trying to host a new app on a subdomain on an existing Dokku instance but it seems to point to the domain of another app altogether. I have a multiple domains with DNS records managed via Cloudflare. I have one A record for aaa.com: A aaa.com…
Terry T
  • 109
  • 2
  • 7
1
vote
1 answer

How to redirect user to a page with different subdomain after sign_in/sign_out devise?

I have a problem with redirecting to subdomain after devise sign_in or sign_out. I generated devise controllers uncommented methods that should take me where I want but subdomains don't work. def after_sign_in_path_for(resource) …
1
vote
2 answers

sub domains that access common folders

I've two sub-domains : 1) root/mobile where mobile points to m.mydomain.com 2)root/beta where beta points to beta.mydomain.com But I want both the sub domains to access some common folders that are under root like root/images
iThink
  • 1,239
  • 3
  • 13
  • 34
1
vote
2 answers

How can I Create a Subdomain on an IIS Server Using ASP.Net (Or C#)?

I want to create a website where users who sign up are able to get a subdomain on my main domain a la blogspot.com (ex. user.mywebsite.com) I really don't know how to get about doing this. I guess this will involve DNS. Here is some more info about…
Cyril Gupta
  • 13,505
  • 11
  • 64
  • 87
1
vote
0 answers

Laravel API backend on a subdomain and Next Js Frontend, SPA Auth using sanctum returns 401 Unauthenticated

I have hosted my Laravel application in a Namecheap hosting running Litespeed Server with a domain at -> api.example.com My Next.js SPA frontend is being run from a digital ocean droplet with nginx reverse proxy with the domain ->…
Joy Ram Sen Gupta
  • 365
  • 1
  • 6
  • 16
1
vote
0 answers

Stop Nginx redirecting subdomains to main domain

I have an nginx installation, with three sites (but 4 configs including default): Actual domain replaced with example.com. default, a.example.com (a.example.conf), example.com (example.conf) & z.example.com (z.example.conf) They appear in that order…
Matdragon
  • 169
  • 1
  • 7