Hey guys i am trying to loadbalace my website with ngix..I have seen many tutorial and i have found one..According to tutorial i have seen that i need to add  upstream myCloud{  server s1.domain.com;;   server 10.0.1.2;   server 10.0.1.3; }   those lines to my configuration file ..so  my question is that can i add a subdomain like something.domain.com to the server place ..Hope you guys can help me out
120833
I'm setting up an Nginx web server and and want to perform load balancing using the round robin method.  This is what I have found thus far:  upstream backend  {    server backend1.example.com;    server backend2.example.com;    server backend3.example.com; }   According to the page they says i need to add the above lines to my nginx.conf file and upload it to server to load balance.  I do not understand what it means by server backend3.example.com;.  How do I setup a backend instance?
42811
Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet.  My NGINX configuration follows the  and looks something like this:  server {     listen 80;     server_name example.net;     root /path/to/aaa;      location /bbb/ {         proxy_pass http://example.com/;         proxy_set_header Host $host;         proxy_set_header X-Real-IP $remote_addr;     }      location / {         try_files $uri $uri/ /index.html;     }     location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {         access_log off;         log_not_found off;         expires max;     } }   I can manage to render the root of example.com in example.net/bbb but:  ISSUE 1  example.net/bbb/some/path doesn't work as expected and the index.html of example.net is rendered.  ISSUE 2  Any asset in example.com/assets gives 404 because the browser look for example.net/assets. Be great if I could solve this without placing absolute paths everywhere.
82636
I want to rewrite all http requests on my web server to be https requests, I started with the following:   server {     listen      80;      location / {       rewrite     ^(.*)   https://mysite.com$1 permanent;     } ...    One Problem is that this strips away any subdomain information (e.g., node1.mysite.com/folder), how could I rewrite the above to reroute everything to https and maintain the sub-domain?
59421
Will transferring a domain name to a new host cause downtime at all on the domain?  It's the highest traffic time of the year for us but we really want to keep things moving and need to migrate hosts because our current host charges per subdomain. It's imortant we get this subdomain up and running in the next few weeks, so I'm wondering what kind of down time (if any) we should expect migrating the registrar.  It doesn't seem like it would...
91607
I have a CentOS system that retrieves its upstream DNS servers via DHCP.  I want to run DNSMasq on this box and use it as a server to resolve some hostnames for development.  The problem is when my system starts, the upstream DNS servers are loaded into /etc/resolv.conf and THEN the DNS1 entry from my ifcfg-enp0s3 setup gets loaded.   That's a problem because when I query for the internal dev names, it tries to go out to the upstream DNS server instead of checking DNSMasq first.  I need the DNSMasq server to be at the TOP of the /etc/resolv.conf and the dhcp loaded ones at the bottom of the resolv.conf so that DNSMasq will work properly.  Any simple way to do that?
201
We're using setup with an nginx on one machine and (currently) one application server on apache in the back.  For multiple domains we got ssl certs, but only for the domain itself. So without subdomain www. Everything works as expected, we do not use the  anywhere. But we have customers who are typing this in by hand, resulting in a warning in the browser on the clientside. ..and a new seo guy insisting on working www subdomain WITH ssl.  What am i looking for: A creative solution which does not require new certificates for 20+ domains.  I already thought about getting certificates from let's encrypt for our www subdomain, then 301 to domain.tld.. but it's still in beta.  Any ideas ?
116725
I've just read  which essentially says that when I set up DNS for example.com, the root record can't be a CNAME, it has to be an A record.  My question is, why?   I'm sure the clever people who designed DNS didn't make arbitary restrictions for no reason, but I don't see what we gain by requring root domains to be A records. I would love to just point my example.com domain to someserver.somewebhost.example and forget about it, but I can't.  Please enlighten me, billpg.
46889
What would you recommend as a URL structure for setting up a multilingual site when optimizing for SEO?  I'm thinking:  www.yoursite.com/en/some-category/some-article/ www.yoursite.com/sv/en-kategori/en-artikel/ (Swedish)   Or would you prefer creating a subdomain (i.e. sv.yoursite.com) or similar instead?  From what I know it seems easier integrating a /language/ directory when in combination with .htaccess.
28320
I'm looking for a simple solution to increase my website's uptime. My website consists of simple HTML and PHP pages with no database. Right right I use paid shared hosting and I sometimes find that my website is not loading.  Would it be possible to put my website on two hosts and in case the main host is down the other one would get used? What is the best way to set this up?
100693
I have an instance running on Amazon EC2.  I need to point my domain example.com at 1und1 to this instance.  How do I do this?
103307
is looking bad right now. No errors in the console, but the following files have no content:         The CSS on another subdomain works fine though:
56911
I've been working with Apache http servers for quite some time, and finally making the move to static-content servers alongside the others dynamic-content machines.   I was wondering, does nginx support ".htaccess" files, and things like mod_rewrite?   As I'm very used to the syntax, I was wondering what the (syntax) differences were, and what the learning curve is like moving from Apache configs to nginx.
54923
If is possible to find out which nameservers a domain was previously pointing too? I need to try and find where a domain was previously hosted so that I can try and gain access to an old hosted email account.   Any ideas?
22398
I recently switched my domain from  to , and added my new domain to my Webmaster Tools account. After a few days, I went there and checked the data, and I was a bit worried when I saw this:    How can I interpret this? Is Google really not indexing my site at all? I'm afraid that's the case, because when I google for it, only my old blogspot domain shows up!
23519
It's often the case that I want to change name servers because my site is messed up.  Well, it takes a very long time for the name server to propagate.  Is there something in DNS, or registrar or anything I can do to speed that up.  Flushing my dns server using  and it rarely works
59507
I have a Linux server (Ubuntu 12.04) I'm using to learn as much as I can about server management. I've got as far as getting a full LAMP setup running, but have hit a dead end trying to get a domain name to point to my server.  I've set up a virtual host in an Apache .conf file, and set up the IP address in the hosts file with the domain name, and have pointed the A record to the IP address with no luck. I've also installed bind9, but thought I'd see if I'm going in the wrong direction rather than messing anything up with that.  What is the best way to get a domain name up and running - ideally in a way that would be production ready rather than a temporary setup  EDIT: Thanks for the tips - just to better inform the situation - I have a few spare domain names registered that I can use, and I'm renting a VPS to play with. Currently I have the DNS * and @ A record pointing to the IP, but the nameservers are with the registrar if that makes a difference?
81859
I had a very long domain, so I decided to change it to a shorter and more friendly one. But since I have a lot of subdomains (in fact, I have a subdomain wildcard), I wanted to keep the subdomain while changing only the domain part. So, I made the following rule:  server {   listen 80;   server_name ~^(\w+)\.olddomain\.com$;    rewrite ^ $scheme://$1.doma.in$request_uri? permanent; }   I have read a lot of other questions where this snippet solved the problem. But with me, Nginx always redirects to .domain.in, without any subdomains. What am I missing? I have tested the regex against regex101 and the examples work fine, Nginx seems unable to redirect it.