|
[Help]Multiple Domains/Site with NGINX
|
|
04-07-2012, 05:47 PM
(This post was last modified: 04-07-2012 10:37 PM by MeMyselfandLinux.)
|
|||
|
|||
|
[Help]Multiple Domains/Site with NGINX
I am very new to this,so please easy to me
![]() I have a running vps with fresh installation nginx+mysql+php-fpm it running nicely and i even connect it to my domain(cheap .info) to test some lightweight cms the problem is I want to connect another domain (my friend's domain) .com to use my vps to do another site(separate folder) then i setting the 2nd domain like i set the first one,use default nameserver registar,and point A name to my vps IP for nginx i do exactly like these tutorials http://articles.slicehost.com/2008/5/16/...tual-hosts but domain didnt resolve "The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete." i think i maybe using different user/group configuration,so i just remove the conf,add "my edited" first configuration to create the new sites-avaible (with new folder too) but still domain didnt resolve to my server Am i missing something??please help me i am new to this Thank you verymuch ![]() ------------------------------------------- Problem solved thanks freevps.us
|
|||
|
04-07-2012, 10:28 PM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
Try removing this line:
Code: rewrite ^/(.*) http://myfriend'sitegoeshere.com/$1 permanent;Don't worry about the world coming to an end today. It's already tomorrow in Australia. |
|||
|
04-07-2012, 10:36 PM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
i have delete it recently,figure out when get redirect looping
Thanks anyway but ,when i look back 2-3 days ago the problem is not this the problem is just plain like: The domain cant find my IP i only need a minute to get name.com connected my IP i was just like o.0 these 3 day for me its reach a conclusion: never trust my local registrant |
|||
|
04-08-2012, 12:21 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
Yes. DNS propagation takes time.
Don't worry about the world coming to an end today. It's already tomorrow in Australia. |
|||
|
04-08-2012, 04:35 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
It may not be your registrar's nameserver but the DNS server your computer is using. It may be ignoring TTL values and just updating when it likes.
You should DNS servers like Google's (8.8.8.8 & 8.8.4.4) or level 3 (4.2.2.2 & 4.2.2.1). If it still doesn't work after ~48 hours (depending on your TTL value), then it is most likely your registrar's nameserver. |
|||
|
04-08-2012, 05:29 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
Okay new problems here
if i type directly my ip address xxx.xxx.xxx.xxx to browser it will load to my 2nd domain which is my friend's site i want it to load to my first domain i already do rDNS in my solusVM but the problem still exist |
|||
|
04-08-2012, 05:39 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
Try reading http://wiki.nginx.org/ServerBlockExample so that anything not recognized as a hostname will go to your site.
Also, if you want DNS to update more quickly you can use OpenDNS, it's pretty good. |
|||
|
04-08-2012, 05:40 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
on your main domain, in the config change "listen 80;" to "listen 80 default;"
|
|||
|
04-08-2012, 05:46 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
@perennate @f8ll
thank you everybody,now i got that run well you save lot of time
Greetings from a newbie you can call me MML
|
|||
|
04-08-2012, 05:51 AM
|
|||
|
|||
|
RE: [Help]Multiple Domains/Site with NGINX
Great, it's good that you got it working with a bit of help.
I think this needs to be closed as the issue was resolved. Please PM me to reopen this thread. |
|||
|
« Next Oldest | Next Newest »
|
| User(s) browsing this thread: |
| 1 Guest(s) |






