The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
2answers
36 views

In Nginx, map specific subdomains to ports, redirect all others

I'm trying to accomplish three things: Map traffic, by subdomain, to one of several applications on different ports. If subdomain isn't recognized, redirect to www. Require HTTPS on all subdomains. ...
0
votes
0answers
23 views

Multiple VirtualHost definitions with multiple ServerAlias wildcards in apache

I posted this on SO but I thought here would be a better place to get an answer. I'm trying to add multiple VirtualHost definitions to automatically point a site at the correct folder, depending on ...
0
votes
0answers
14 views

Apache proxy for widcard domain

I have a site with wildcard subdomain and i want to create a proxy for it. How can I turn the example bellow to support widcard subdomain. thanks <VirtualHost *:80> ServerAdmin ...
1
vote
2answers
64 views

htaccess: limit to only certain sub-domains

I have a wildcard ssl setup on Apache for a domain so that I can create any type of sub-domain on the fly. <VirtualHost *:443> DocumentRoot "/var/www/html" ServerName www.domain.com ServerAlias ...
0
votes
1answer
35 views

How to have a dynamic DocumentRoot in apache2 site config file?

I need to configure my evelynblac.com.conf file so that any request with a subdomain gets mapped to the directory named after the subdomain (please see image in link). How can I do this? ...
0
votes
1answer
190 views

Redirect all subdomains to main domain with HTTPS without a wildcard cert (nginx)

I have a domain name with a main site and a few vhosts. I want all sites (main and vhosts) to only be accessible through HTTPS (using HSTS), and I want non-existing subdomains to be redirected to the ...
1
vote
1answer
112 views

Wildcard subdomain redirect to folder without changing the url

So I got my htaccess file set up, it look like this: Options +FollowSymLinks RewriteEngine on RewriteBase / # MAGIC RewriteCond $1 !/$ RewriteCond $1 !\. RewriteRule ^(.+)$ /$1/ [R=301,L] # ...
0
votes
1answer
22 views

Subdomain redirection is causing an error in apache

I am redirecting https://username.mywebsite.com/ to https://mywebsite.com/username using this redirection RewriteEngine On RewriteCond %{HTTP_HOST} ^(.*).mywebsite.com [NC] RewriteRule .* ...
1
vote
1answer
67 views

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 ...
0
votes
1answer
172 views

Redirect all subdomains to main domain inside vhost

I simply want to redirect all subdomains that are not not already mentioned in a vhost's ServerName to redirect to the empty sub domain. I tried to add this to my httpd.conf after all other virtual ...
0
votes
1answer
79 views

VirtualHost/htacess : how to point a subdomain to an url parameter?

I must to create a multi-languages website. In order to achieve this aim, I want to point subdomain representing a language to the 1rst url parameter (GET variable) of the domain in my virtualhost ...
0
votes
0answers
6 views

Wildcard certificate and CSR for each subdomain [duplicate]

I am going to buy a wildcard certificate. I have a bunch of subdomains I want to protect on different servers. Can I make multiple CSR one for each subdomain on my wildcard certificate ? Or I am ...
0
votes
1answer
31 views

Sub-domain forwarding (unconditional/wildcard)

I would like to forward all requests for domain.net to domain.com. The forwarding works only for the top level URL, meaning the server redirects domain.net to domain.com. However, any and all ...
0
votes
1answer
178 views

Apache VirtualHost Multiple Wildcard Domains / SSL

I'm trying to figure out the configuration for the following: Multiple Domains - (example1.com, example2.com, example3.com) Single Virtual Host Wildcard Subdomains (*.example1.com, *example2.com, ...
1
vote
1answer
55 views

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 ...
0
votes
2answers
460 views

Redirect wildcard subdomain to same subdomain on different domain

I have a domain with dynamic subdomains. The domain, unfortunately, has changed. As such I need to redirect *.domain1.com to *.domain2.com while keeping the subdomains the same. I have looked ...
0
votes
1answer
341 views

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 ...
1
vote
1answer
1k views

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 ...
4
votes
2answers
523 views

Wildcard certificates with short hostnames?

I'm trying to generate a certificate with the following subjectAltName: hostname *.hostname hostname.mydomain.local *.hostname.mydomain.local I generate the CSR via OpenSSL and then get the ...
0
votes
1answer
260 views

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 --> ...
0
votes
1answer
31 views

Purchasing Godaddy SSL Exchange 2010 Server

I have created a CSR for our Microsoft Exchange 2010 Server (domain: mail.domain.com (example). We have a hosting account with Godady (DNS Hosting only as well). We do not have SSL Cert and need to ...
3
votes
1answer
233 views

Make Lighttpd return 404 for unused subdomains?

I have some domains set up on my Ubuntu server that uses Lighttpd. I have wildcard domains and I want the unused subdomains to return 404 instead of 200 and displaying the regular domain. This problem ...
1
vote
1answer
404 views

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 ...
1
vote
1answer
398 views

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 <Directory "/path/to/code"> allow from all Options +Indexes ...
1
vote
1answer
4k views

How to properly set DNS for subdomains on Plesk 12? [closed]

I re-installed a virtual server of mine and updated it to Plesk 12.0.18 (Ubuntu 10.04.4 LTS). The reset and reinstall was done automatically by HostEurope, the update from Plesk 11 to 12 was done ...
1
vote
2answers
147 views

Can I have a DNS wildcard binding in multiple servers?

I have a Win 2k8 server that hosts multiple IIS apps that are under one domain, example.com. The need for a second server has increased and will need to get more servers to host my apps. On my ...
0
votes
1answer
142 views

Setup my own DNS server to support wildcard domains?

My registrar doesn't support wildcard domains through their DNS system, but I can define my own DNS Services, I can't change my registrar (I know, the "why" is beyond the scope of my question :)), ...
1
vote
2answers
535 views

Lighttpd rewrite subdomains to subfolders

I have a server (itself on a subdomain) with wildcard DNS pointing to it. The server is running Lighttpd and PHP. I need requests to http://any-subdomain.server.example.com to rewrite to ...
1
vote
0answers
157 views

How to configure servers on LAN to emulate no-ip.com functionality with dnsmasq and apache wildcard subdomains?

I have a multi workstation LAN with Apache2 serving a website at 10.0.0.3:80 and running on Ubuntu Linux. This LAN is segmented from another LAN via a router, from which all machines on this LAN ...
5
votes
2answers
5k views

Best way to add a DNS wildcard record for a domain

What is the best way to add a DNS wildcard record for a domain? I want example.net, www.example.net, a.b.c.www.example.net, ... going to one server. Now I use: example.net. 60 IN A ...
0
votes
2answers
3k views

Possible reasons for occasionally inaccessible domains

I'm experiencing symptoms similar to those of the other question. That is, peoples are complaining about a domain name being inaccessible. And then, it suddenly starts working after a while. But I ...
-3
votes
1answer
305 views

How do I send different SSLCertificateFile based on SSL_TLS_SNI environment variable? [closed]

Idea is to run a wildcard cert off an internal CA for *.domain.com, while public-facing domain.com site is validated by a world recognized CA. Application serving requests is the same though, so I'd ...
1
vote
1answer
2k views

From Apache to Nginx: complex rewrites with wildcard subdomains

I'm transitioning from Apache to Nginx and I'm trying to figure out how to get my subdomain rewrite rules to work. Apache The Apache configuration I have basically moves all traffic to HTTPS and ...
2
votes
1answer
185 views

automatic MX entries for (almost) all hosts within a domain

i'm running a DNS-server for example.com, with multiple A/CNAME records pointing to different IP-addresses. @ IN A 198.51.100.1 a IN A 198.51.100.3 b ...
1
vote
1answer
251 views

Can wildcard and single domain certificate coexist for the same domain

Because we have externally hosted applications by vendors under specific sub-domains (vendor1.domain.org, vendor2.domain.org...), we would like to keep single certificates for these sub-domains while ...
2
votes
1answer
61 views

Apache wildcard subdomain endlessly loads page

I'm on a Hostmonster VPS. I've pointed the A record *.example.com to my server's IP. Here's the main virtual host that's auto-generated by the server: <VirtualHost 162.144.48.232:80> ...
1
vote
1answer
470 views

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 ...
1
vote
2answers
923 views

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: ...
2
votes
1answer
4k views

How do I configure a wildcard DNS record correctly in Windows Server 2012?

I'm trying to configure a DNS server for domain.com. I want to configure a wildcard DNS record to resolve any-subdomain.domain.com to a single IP address (172.16.1.3). In my DNS server I have the ...
0
votes
1answer
83 views

How to route/redirect *.foo.org --> *.foo.biz via DNS records?

I registered my domain foo.org and along with it they gave me foo.biz for free. I don't really like it, but as I said, they gave it to me for free... And I want to route absolutely every request ...
0
votes
1answer
71 views

Expose a directory as public but hide another same-level directory

I have a web application that has the following directory structure: /subdomain_name /app /public This web application is installed for every new user in our VPS. They provide a subdomain ...
1
vote
1answer
65 views

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 ...
0
votes
1answer
673 views

Apache2 VirtualHosts and wildcard subdomains

Is there a way to setup a catchall (for subdomains) virtual server for a single domain, where I have a couple pre-defined subdomains. ie: webmail.example.com -> points to "/var/web/roundcube" ...
2
votes
3answers
651 views

SSL wildcard certificates and trailing 'www'

I've got a wildcard SSL certificate for *.example.com. I'm using nginx, and redirecting all traffic for http to https, and also rewriting the URLs without a trailing www (if there is one). So it ...
0
votes
2answers
414 views

DNS wildcard entry from *.domain.com to www.domain.com

If a user enters ww2.domain.com he should be redirected to www.domain.com. This should be possible for all sort of subdomains (e.g. xxx.domain.com, ww.domain.com, ...). How should I set up the DNS ...
-2
votes
2answers
255 views

how to allow users to use their own domain name to access their page [closed]

I am going to build an album website using Django 1.5. one of the feature I want to provide my members is to use their own domain name. www.albumn123.com/user/mike www.mike.com now, the site is ...
1
vote
1answer
1k views

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 -> ...
-2
votes
2answers
86 views

is it possible to Point a cname record to a wilcard subdomain [closed]

*.mydomain.com is pointing to this directory /home/mydirectory so if I enter : foo.mydomain.com or bar.mydomain.com it points to /home/mydirectory in another domaine I've set a CNAME as : ...
8
votes
1answer
1k views

Non-dot-wildcard (*-foo.example.com) for bind?

It seems there's no way to tell bind that *-foo.example.com should resolve to eg. 10.1.2.3, while *-bar.example.com resolves to 10.2.3.4. Is there any workaround? Can some names eg. resolve with an ...
0
votes
1answer
178 views

Redirect invalid subdomain request to proper location

We've got site at a subdomain (new.example.com) and previous version of the site at the root (example.com). The previous version is a WordPress network with wildcard subdomains. The static subdomain ...