Questions tagged [subdomain]

In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is part of a larger domain.[1]

315 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
2k views

How to host two websites on one AWS lightsail instance

I'm quite new to this whole website thing and I'm looking for some guidance on how to configure bitnami apache so I can have two websites on the same server. I have a domain (which i'll call example....
dangee1705's user avatar
0 votes
0 answers
574 views

Show subdomain content on main domain Using htaccess?

If the user enters www.example.com/blog, I want him to see what's in blog.example.com. Another example: User will request www.example.com/blog/example-post/, he'll see what's in blog.example.com/...
Sarathy S's user avatar
0 votes
1 answer
112 views

Redirecting subdomains - only first subdomain works

I have two domains running on Apache 2.2 for Windows. Domain 2 has both secure and non-secure access and works fine. Domain 1 has the domain and four subdomains. The subdomains redirect to ports on ...
Leora Cherry's user avatar
0 votes
0 answers
28 views

Static WP website and web app are in different host with one domain

I don't know if this is the right place to post this but I am so much in deep confusion right now. I have a static WP website hosted in Fastcomet with a domain name www.hpdc.com (namecheap) and also a ...
rayncorg's user avatar
  • 101
0 votes
1 answer
932 views

Host multiple sites on same IP/port in IIS

I'm trying to get a second site running from IIS with the same IP/port combination as my "Default Web Site". I understand that I should be able to do this using the binding settings in IIS ...
TheIronCheek's user avatar
0 votes
0 answers
328 views

How can I allow users to map their own domain to a subdomain on my Cloudfront site?

So I run a service where a user can create a site and they get their own subdomain. So if a user has site a-site-name their subdomain will be a-site-name.domain.com. Some of the users want to be able ...
TomLisankie's user avatar
0 votes
0 answers
253 views

number of subdomain limit/alphabet issue on nginx

I have an issue adding new subdomains via nginx - specifically all subdomains crash/get blocked when a subdomain beginning with the letter 'a' is added to our system. This is a server hosted on AWS ...
RebRy's user avatar
  • 21
0 votes
0 answers
101 views

Nginx is forwarding any subdomain to a specific port

I have my setup going for about 6 months and I just realized a pretty bad issue is happening. I'm sure it's something stupidly simple but I can't figure it out. Here is my setup: I'm running Ubuntu 18....
darksideofthesun's user avatar
0 votes
0 answers
1k views

nginx letsencrypt wildcard with ovh dns SSL_ERROR_BAD_CERT_DOMAIN

I have a problem with wildcard certificates for a subdomain. I wish to have one certificate for the domain example.com and the same cert for the same level of subdomains *.example.com. The problem is ...
user25392's user avatar
0 votes
2 answers
2k views

Different SSH login with subdomain on same IP

I'm in the following situation: I own a domain pointing on my local network (NAT), let's call it domain.ch. I have set a subdomain sub.domain.ch pointing on the same IP as domain.ch. What I would ...
Jonas Daverio's user avatar
0 votes
0 answers
283 views

Subdomain redirected to main domain

When creating my new vps server which contains apache, I added a domain and a sub domain but i'm confusing with a problem that the sub domain redirect me to main domain i thinks the problem comes from ...
Salah Eddine Bentayeb's user avatar
0 votes
0 answers
275 views

Redirecting subdomain to another server shows server's IP

Let's say I have a domain x.com which is hosted on server1. I made a subdomain sub.x.com and pointed it towards server2. All of this worked successfully, except now I see server2's IP instead of sub.x....
lysf's user avatar
  • 1
0 votes
1 answer
458 views

Apache2 not working with several subdomains (only one) on Ubuntu 19.04 (Virtual Hosts)

so I have a problem with Apache 2 (2.4.38) virtual hosts. I have set up two of them successfully, one for my actual domain (i. e. example.com) and one for a subdomain (blog.example.com). I then tried ...
Marvin Johanning's user avatar
0 votes
0 answers
113 views

Redirect request of subdomain to server/path

Currently, we are having two webservers, the first one is directly handling request from domain1.com. I'm trying to deploy another webserver in which it will handle request from sub.domain2.com. ...
Long H Pham's user avatar
0 votes
1 answer
241 views

Alter incoming URLs for HTTP/HTTPS to force the “www” subdomain in Tomcat 9

I want every URL coming into my Tomcat web server to carry the www subdomain prefix. How can I have Tomcat alter an incoming URL such as this: http://Example.com/whatever …to include the www ...
Basil Bourque's user avatar
0 votes
0 answers
168 views

How to configure different web app from different server with Nginx?

I have a website with domain example.com in a server with IP x.x.x.x. It runs with Nginx and Let's Encrypt very well, which is located in /var/www/app1. The domain is obtained and managed via a ...
ywiyogo's user avatar
  • 121
0 votes
2 answers
4k views

Am able to ping my domain, but not subdomain (digitalocean)

My main domain (say: example.com) on DigitalOcean is working ok. I've only one droplet in there. Then I created 'a' record under my main domain with another subdomain name (1.example.com). Then, I ...
Bathinda Helper's user avatar
0 votes
1 answer
759 views

nginx conditional rewrite based on subdomains

I have the current nginx config that changes all subdomain requests to a specific pattern (foo.example.com -> www.example.com/co/home/foo): server { listen 80; server_name *.example.com; ...
Eric Martin's user avatar
0 votes
1 answer
862 views

How to implement subdomains for users in Apache

Im building a platform, where the main domain is example.com. The server is using CentOS 7 with Apache 2. My users' URL will be username.example.com, which actually loads the contents from example....
Andres SK's user avatar
  • 238
0 votes
0 answers
475 views

Host a subdomain in Azure DNS and the domain in webs.com

What I have: A domain purchased in webs.com (I'll call it contoso.com); A main website hosted in webs.com using contoso.com as dns (I didn't build and configure it by myself); A second website (its ...
El_Merendero's user avatar
0 votes
1 answer
500 views

Apache2 & Cloudflare - Subdomain to Port (with ProxyPass)

I just can not find the mistake .. and need your help. Sorry for my bad english guys. My apache2-config: <VirtualHost *:80> ServerAdmin [email protected] ServerName citybuild.bl4cklist....
Razzer's user avatar
  • 101
0 votes
0 answers
935 views

Nginx multiple subdomains with reverse proxy

I have a few apps running from the same server on different ports, I want to host them on different subdomains, I'm using Nginx, I can get it to work with 1 app, but once I add a second server block ...
Gido Selten's user avatar
0 votes
0 answers
52 views

Apache2 set up multiple site with subdomain not working?

I want to run 2 Wordpress sites on my VPS installed LAMP stack. Site 1: test1.example.com Site 2: test2.example.com Here are my config files: test1.example.com.conf: <VirtualHost *:80> ...
tuanptit's user avatar
  • 101
0 votes
0 answers
99 views

Nginx serving wrong website using subdomain

New to all this so please bear with me. I have one existing website set up using nginx (fusiondiscordbots.com) however, I am wanting to add a second on the subdomain - dashboard.application-bot.com. ...
Sean Hatch's user avatar
0 votes
0 answers
229 views

How to generate SSL certificate on subdomain?

I actually have a hosting service who has a subdomain, that subdomain function is to redirect to my local server where I have my services, for example: My domain: example.com Subdomain: guaymas....
Alejandro Coronado Rubio's user avatar
0 votes
0 answers
399 views

Nginx reverse proxy to many local servers + webserver duty

I currently have to master a difficult setup: I want nginx to serve webcontent AND deeply redirect to content on localhosts (local apps) with altered posts. I want every request to use https using ...
jcor's user avatar
  • 1
0 votes
0 answers
57 views

Request to subdomain gets 301 response

I have installed an nginx server and I can successfully run three different php apps under SSL mapping each one to a distinct subdomain. I would like to add another one, the difference is this is a ...
haunted85's user avatar
  • 111
0 votes
1 answer
52 views

Can I add subdomain that redirect to x.x.x.x/subfolder?

I have the main domain site, but the client wants a subdomain that points to x.x.x.x/subfolder, when x.x.x.x is an external IP. Its posible? Thanks
Daniel Q.'s user avatar
0 votes
0 answers
2k views

Subdomain always redirects to main domain

I have redirected my domain to my server, and successfully configure the main domain like this: /etc/apache2/sites-available/mywordpress.com.conf <VirtualHost *:80> ServerName www....
mileven's user avatar
  • 101
0 votes
1 answer
617 views

How to redirect a Heroku subdomain to an external VPS?

I have the following setup: Wordpress blog hosted on a VPS (ip: 123.44.55.66) Heroku app live at (my-app.heroku.com) Domain name bought from Namecheap (www.my-app.com) Heroku domain is already setup ...
Henrique's user avatar
  • 153
0 votes
0 answers
27 views

How to add the clients into a SUB DOMAIN DNS Linux

DNS Master is dns1.example.com DNS Master Forward zone is example.com.forward.zone SUB Domain named is suba1 & suba2 SUB Domain Forward zone is suba1.example.com.forward.zone Host Client which ...
Karn Kumar's user avatar
0 votes
2 answers
123 views

Nginx direct sub domain to main domain

I am hosting a wordpress blog at www.example.com, trying to do a hexo project at hexo.example.com I put SSL configuration on nginx.conf in /etc/nginx folder as the certificate is a wildcard, I do not ...
fomm's user avatar
  • 1
0 votes
1 answer
2k views

How to create a sub-domain pointing to a name server

I am trying to set up a sub-domain that points to Azure name servers for App Services so we do not have to add records in the main domain. For example: Main domain: example.com > DNS provider's ...
woter324's user avatar
  • 253
0 votes
0 answers
367 views

How do I add a Linode-hosted subdomain to a Namecheap domain hosted on NearlyFreeSpeech?

I have the domain somedomain.com registered with Namecheap. NearlyFreeSpeech hosts the site. I've added ns.phx1.nearlyfreespeech.net and ns.phx2.nearlyfreespeech.net to that domain's custom ...
Username's user avatar
  • 173
0 votes
0 answers
632 views

Custom domains for customers via CNAME record?

I have a small SaaS app. It partially collects data through a service hosted at a subdomain, beacon.example.com. I am trying to let my users create a custom domain to brand this address to beacon....
sousdev's user avatar
  • 11
0 votes
1 answer
750 views

How can I prevent error when subdomain does not exist?

Every subdomain is in a separate folder. I capture the subdomain and set the root to the correct folder with this code: server_name ~^(?<sub>.+)\.mysite\.com$; root "/path/to/my/site/$sub"; ...
Dan Bray's user avatar
  • 113
0 votes
1 answer
190 views

Virtual host subdomain for apache2 server doesn't work

i have problems with my subdomain on apache2. I have domain "propaniusz.tk" pointing at my server and it works. But im trying to make subdomain with virtualhost "wybudzenie.propaniusz.tk" doesn't work ...
ProPaniusz's user avatar
0 votes
1 answer
256 views

How Can I setup subdomain on cloudflare

I have setup my blog ImNepal.com and it is activated on cloudflare. I want to setup my subdomain i.e. www.sms.imnepal.com but it got Error 1016 Origin DNS error. What should i do? I have done ...
Jitendra Sahayogee's user avatar
0 votes
1 answer
125 views

after port forwarding it only shows IP insted of URL

I configured nginx for port forwarding (port 80 to 8889) and pointed out my domain to server IP address. after this it successfully redirects me to server. when i try to access url through the ...
DexJ's user avatar
  • 111
0 votes
1 answer
1k views

Windows Server: How to properly configure a internal only subdomain

Let's asume, that I own the domain "example.com" and I should configure an internal subnet for my company. I read, that when you want to install Active Directory, DNS and DHCP in an internal network ...
Wubi's user avatar
  • 83
0 votes
1 answer
1k views

How to mask redirect subdomain and ports to another external subdomain on that same port

I have read through the forum but still cannot get a clear answer for what I need. My purpose is to mask redirect a subdomain to another one with the port passing together. For example, I want my vdi....
Alec Liu's user avatar
0 votes
0 answers
99 views

How to domain mask from one domain to another not under direct control

Let's say I have this domain: https://bananaschool.shop.acme.com I want to make an alias so it points to: https://bananaschool.shop.com or https://bananachool.com/shop I own the acme.com and *....
AlejandroVK's user avatar
0 votes
1 answer
571 views

PHP Files downloading on page load rather than executing - NGINX

I have set up a sub domain in root directory along with our actual domain. In the root directory the two folders are as follows: domain.com sub.domain.com When going to domain.com (which already ...
coopwatts's user avatar
  • 103
0 votes
2 answers
127 views

How to manage https for CNames of different domains on my domain (different one)

I have a situation where I have an SSL certificate for my domain, for example, "example.com". My clients use subdomains (CName) to point to my domain "example.com". I have permanent redirection on ...
Shaonline's user avatar
  • 101
0 votes
1 answer
123 views

multiple websites/domain multiple public ip vs multiple websites one public ip

My current setup right now is to have 1 Public IP and 1 Domain per country Hosted in my IIS in RACKSPACE, we have 5 countries right now and thinking of launching 2 more but we are running out of ...
Terrence McGinnis's user avatar
0 votes
1 answer
659 views

One wildcard SSL certificate to work on my subdomain sites using wildcard subdomains, and on my single subdomain site not using the wildcard subdomain

I have a WordPress multisite on domain mysite.com, this allows you to create multiple sub domain sites (test1.example.com, test2.example.com etc). It uses wildcard subdomains where you add a * in ...
Andy's user avatar
  • 101
0 votes
0 answers
110 views

http://sub.site.com is incorrectly redirecting to http://www.sub.site.com instead of https://sub.site.com

Using Apache 2.4.18 on Ubuntu 16.04.2 I have blog.ryangiglio.com set up as a virtualhost. I used the letsencrypt certbot to generate an SSL cert for the server, and set it to force redirects from ...
Ryan Giglio's user avatar
0 votes
0 answers
79 views

Redirect subdomain to the user profile

I want to redirect all subdomains to the user profile , eg: redirect this URL : http://alexusername.example.com To : http://alexusername.example.com But showing the content of : http://example....
Ghadeer R. Majeed's user avatar
0 votes
1 answer
624 views

Nginx, subdomains and ssl

I have a problem with nginx production server. The problem is that nginx reads default.conf, and apply ssl_protocols directive to all subdomains. I want different subdomains to have different ...
Alessandro Zanotti's user avatar
0 votes
1 answer
968 views

Apply location directives to subdomains and sub-subdomains on NGINX

I'm trying to setup a site on NGINX so the second level domain is visible publicly, but access to subdomains is restricted. Basically a dev.domain.com should be restricted to my IP, and staging.domain....
Sirmontegu's user avatar

1 2 3
4
5
7