Questions tagged [wildcard-subdomain]

196 questions
1
vote
1 answer

Manage DNS for AWS EB site with hundreds of dynamic subdomains

A Domain Name System (DNS) problem: (also asked on stack-overflow) I've got an Amazon Web Services (AWS) Elastic Beanstalk (EB) site with potentially thousands of subdomains. Apparently it's not possible to use A-records with AWS, as they do server…
1
vote
1 answer

Wildcard DNS to NOT resolve a specific entry

I have a wildcard DNS on my external service: *.example.com I have one specific service, that I need to NOT resolve externally, to help a VPN service type connection fail silently. If there a way to make a specific entry NOT resolve? i.e.…
1
vote
1 answer

How to parse and retrieve both subdomain and host name label in Nginx

I'm working with an environment for testing purposes based on a few magento versions over a nginx + php-fpm + mysql stack, i puts each distribution in a different folders and in the nginx vhost config file i'm using the following…
MauroNigrele
  • 113
  • 1
  • 4
1
vote
1 answer

SERVER_NAME vs HTTP_HOST (Nginx + PHP)

I have a catchall server configuration that gets all sub-domains and point them to the same PHP script. There are thousands of sub-domains and they are created dynamically. The PHP script uses the HTTP_HOST to identify the sub-domain and fetch the…
viniciussss
  • 185
  • 3
  • 8
1
vote
1 answer

Setting up wildcard subdomain on ubuntu 14.04 with a2ensite?

I am using apache on ubuntu 14.04. I set up a wildcard domain for my site but it isn't working how I would like it to. I want www.example.com --> /var/www/mysite example.com --> /var/www/mysite and everything else to go to *.example.com -->…
Gilberg
  • 113
  • 3
1
vote
1 answer

nginx wildcard server_name for subdomain gives index.php 404 error

I've been using this server configuration for wordpress which works great on my local machine: server { server_name example.example root /home/user/sites/example/example/html; index index.php index.html index.htm; access_log off; …
MauricioRobayo
  • 152
  • 1
  • 14
1
vote
1 answer

Apache Sub-Subdomains and existing wildcard Subdomain

So I have an existing wildcard DNS A record, and subdomain virtual server setup as follows DocumentRoot /path/to/code allow from all Options +Indexes ServerName existing.domain.co.uk ServerAlias…
Horse
  • 111
  • 1
  • 4
1
vote
1 answer

DNS failure for wildcard subdomains

I just moved my domains to another hoster, all works ok but just the pages I have under my wildcard domain seems not to be working / found by the server at all. What do I need to configure next to just the dns? What I have now; // probably I did a…
user968898
  • 163
  • 1
  • 3
  • 12
1
vote
2 answers

How to setup nginx server with wildcard DNS

This is about an sample Rails app that uses subdomains. You can access it here: http://rodrigora.com.br. In this app, you can create site and specify one subdomain for it. Example: site: Google subdomain: gog This site should be accessible by…
1
vote
1 answer

wildcard ssl for subdomains

I generate my ssl keys via openssl use this commands: openssl req -passin pass:3a1b -new -key server.key -out server.csr; cp server.key server.key.org; openssl rsa -passin pass:3a1b -in server.key.org -out server.key; openssl x509 -req -days 3650…
1
vote
1 answer

htaccess - Wildcard subdomains to subfolders

So the idea is that I have: domain.com/.subdomains/domain1 (2,3,4,etc) And I want to map: domain1.domain.com -> domain.com/.subdomains/domain1/ domain2.domain.com -> domain.com/.subdomains/domain2/ But I want it to ignore "www" I'm doing this…
tommica
  • 11
  • 1
  • 5
1
vote
1 answer

Wildcard on DocumentRoot for virtualhost

i use this config in apache2 for wildcard subdomain and works good : DocumentRoot /var/www/ ServerName sumdomains.example.com ServerAlias *.example.com RewriteEngine On RewriteRule ^/(.*)…
1
vote
2 answers

wildcard dns redirect to root as well

I want to setup dns to allow wildcards eg. xxx.mycompany.com So I have setup the following dns entry *.mycompany.com 111.111.111.111 However just visiting mycompany.com does not resolve. For now I've added an extra entry in for mycompany.com…
Daniel Powell
  • 76
  • 2
  • 14
1
vote
2 answers

Virtualhost - defning subdomains each with separate folder

I currently have one main domain: mydomain.com This is working fine. What im trying to do is now adding a subdomain through my mydomain.conf file, so that I can have: sub.mydomain.com I've tried with the following - however the result of this is…
1
vote
1 answer

Configure dynamic subdomains with wildcard

I want to keep some web projects in my local host so my customers can access some webapps I'm developing. I've got a domain name that is currently mapped to my dynamic home ip. e.g: demo.mydomain.com -> maps to my currenty ip running apache What I…
Ricky AH
  • 113
  • 5