Tag Info

Hot answers tagged

2

Calling A and AAAA records subdomains is technically correct but is not how people generally refer to them. They just call them host records, A records or AAAA records. Most people generally think of subdomains as child domains of a parent domain (that's how I generally think of them). An AAAA record is an IPv6 address record. You probably want to create ...


2

Apache Virtual Host documentation can give you a good overview. Check all [virtualhost] questions for specifics for the specific OS and distribution you are using. On Debian/Ubuntu style systems you can add your subdomains (or other domains) to /etc/apache2/sites-available/[YOUR_SUBDOMAIN] and then run a2ensite [YOUR_SUBDOMAIN]. Don't forget to reload ...


2

Install your application outside the DocumentRoot and use the Alias directive to make it available within the specific VirtualHost entries you set up for subdomains. Alias /app /var/www/apps/appname You application can then use the SERVER_NAME to determine which virtual host is being accessed if you need to do anything specific per subdomain.


1

Don't have your site setup as the default vhost. On RHEL/CentOS leave the default site setup as /var/www/html and set your main site up as /var/www/example.com/html. Any request not to example.com or an alias will go to the default site.


1

If you made the change only a little bit ago, wait and try again after 1 hour. Depending on your NS provider, it could take a while to populate across the internets. You can also nslookup - xx.xx.xx.xx where xx.xx.xx.xx is your NS, then type www.example.com and hit enter to see if your A record was generated properly.


1

In my case, the following was working: www.example.com/subdomain But subdomain.example.com was not. I realized that my default index was: /subdomain/index.htm. I renamed it to /subdomain/index.html. Now, subdomain.example.com is working. Note: it should be place to force to look for index.htm too, but I think I can't access to those config files with my ...


1

Header set Strict-Transport-Security "max-age=16070400; includeSubDomains" Your browser is honoring it, including the includeSubDomains


1

Yes, they are really subdomains - subdomain should not neccesary sit on the same IP. You will need two certificates: one for example.com, second for *.example.com, and mind that * does not include a dot - so, bought *.example.com will not help you so use SSL with subdomain.subdomain.example.com Some providers use SubjectAltName - then you can use one ...


1

All you do is click "New Host (A or AAAA)..." and for the Name, type somehost.subdomain. "Subdomain" will automatically be added as a subdomain, and a host record named "somehost" will be created in that subdomain. Very simple. It's good that you're careful around production servers, but consider getting yourself a little lab environment together, even if ...



Only top voted, non community-wiki answers of a minimum length are eligible