Would you try this for <a href="http://vivid-tube.com">vivid-tube.com</a>?<br><br>---<br><br>location ~ .php$ {<br>root  /home/jim/<a href="http://vivid-tube.com/html">vivid-tube.com/html</a>;<br>fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br>
fastcgi_index index.php;<br>fastcgi_param  SCRIPT_FILENAME /home/jim/<a href="http://vivid-tube.com/html$fastcgi_script_name">vivid-tube.com/html$fastcgi_script_name</a>;<br>include /usr/local/nginx/conf/fastcgi_params;<br>
}<br><br>---<br><br><br><br><div class="gmail_quote">On Mon, Mar 2, 2009 at 2:04 PM, Jim Ohlstein <span dir="ltr">&lt;<a href="mailto:jim.ohlstein@gmail.com">jim.ohlstein@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
nginx.conf:<br>
<br>
<br>
#user nginx;<br>
worker_processes  8;<br>
<br>
error_log  logs/error.log;<br>
<br>
pid        logs/nginx.pid;<br>
<br>
<br>
events {<br>
    worker_connections  1024;<br>
}<br>
<br>
<br>
http {<br>
    include       mime.types;<br>
    default_type  application/octet-stream;<br>
    server_tokens off;<br>
<br>
    sendfile        on;<br>
    tcp_nopush      on;<br>
    tcp_nodelay     on;<br>
<br>
    server_names_hash_bucket_size    64;<br>
<br>
    #keepalive_timeout  0;<br>
    keepalive_timeout  70 20;<br>
<br>
    gzip  on;<br>
    gzip_comp_level 1; gzip_proxied any;<br>
        gzip_types text/plain text/css application/x-javascript text/xml<br>
application/xml application/xml+rss text/javascript;<br>
<br>
    server {<br>
        listen      *:80;<br>
        server_name  <a href="http://mars.jlkhosting.com" target="_blank">mars.jlkhosting.com</a>;<br>
<br>
<br>
        location / {<br>
            root   html;<br>
            index  index.php index.html index.htm;<br>
        }<br>
<br>
        error_page  404              /404.html;<br>
<br>
        error_page   500 502 503 504  /50x.html;<br>
        location = /50x.html {<br>
            root   html;<br>
        }<br>
<br>
        location ~ \.php$ {<br>
            root           html;<br>
            fastcgi_pass   <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
            fastcgi_index  index.php;<br>
            fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;<br>
            include        fastcgi_params;<br>
        }<br>
<br>
                location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {<br>
                expires max;<br>
                }<br>
<br>
        location ~ /\.ht {<br>
            deny  all;<br>
        }<br>
    }<br>
<br>
<br>
<br>
include /usr/local/nginx/sites-enabled/*;<br>
include /usr/local/nginx/conf/fastcgi_params;<br>
}<br>
<br>
Typical site config:<br>
<br>
server {<br>
listen <a href="http://vivid-tube.com:80" target="_blank">vivid-tube.com:80</a>;<br>
server_name <a href="http://vivid-tube.com" target="_blank">vivid-tube.com</a>  *.<a href="http://vivid-tube.com" target="_blank">vivid-tube.com</a>;<br>
index index.php index.html;<br>
root /home/jim/<a href="http://vivid-tube.com/html" target="_blank">vivid-tube.com/html</a>;<br>
<br>
location / {<br>
error_page 404 = //index.php;<br>
<br>
if ($host ~* www\.(.*)) {<br>
  set $host_without_www $1;<br>
  rewrite ^(.*)$ http://$host_without_www$1 permanent;<br>
}<br>
<br>
location ~ \.flv$ {<br>
    flv;<br>
}<br>
<br>
location ~ .php$ {<br>
fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index index.php;<br>
include /usr/local/nginx/conf/fastcgi_params;<br>
}<br>
}<br>
<br>
<br>
<br>
Currently that domain is pointing to nginx doc root and you can confirm by<br>
going to <a href="http://vivid-tube.com/phpinfo.php" target="_blank">http://vivid-tube.com/phpinfo.php</a>. You&#39;ll see that the php variable<br>
&quot;_SERVER[&quot;SCRIPT_FILENAME&quot;]&quot; is &quot;/usr/local/nginx/html/phpinfo.php&quot;. Earlier<br>
that domain was pointing to another domain. Later it will point (hopefully)<br>
where it should...<br>
<br>
I&#39;ve reloaded and restarted nginx and even rebooted the server. No luck.<br>
<br>
Jim<br>
<br>
<br>
<br>
<br>
From: <a href="mailto:owner-nginx@sysoev.ru">owner-nginx@sysoev.ru</a> [mailto:<a href="mailto:owner-nginx@sysoev.ru">owner-nginx@sysoev.ru</a>] On Behalf Of Joe<br>
Sent: Monday, March 02, 2009 1:26 AM<br>
To: <a href="mailto:nginx@sysoev.ru">nginx@sysoev.ru</a><br>
Subject: Re: Weird problem<br>
<div><div></div><div class="Wj3C7c"><br>
Any parts of your nginx.conf?<br>
On Mon, Mar 2, 2009 at 9:25 AM, Jim Ohlstein &lt;<a href="mailto:jim.ohlstein@gmail.com">jim.ohlstein@gmail.com</a>&gt; wrote:<br>
I’m setting up a new server, consolidating some smaller ones into the new<br>
one. I’ve installed nginx 0.7.38 and I’m using BIND as a nameserver. I have<br>
checked my domain.host files and they all look fine.<br>
 <br>
I’m moving domains a few at a time. As I move them I change the IP’s of the<br>
child nameservers to point to IP’s on the new server. This results in fairly<br>
quick propagation and within a short period if I flush my cache at my home<br>
PC I am directed to the new server.<br>
 <br>
I am using the same nginx.conf as I use elsewhere, except for the server<br>
name and number of child processes. I use the same site config files. I am<br>
using the same paths… generally /home/jim/domain.tld/html for a document<br>
root, and I am using the same version and configuration of php and php-fpm<br>
with the same user and group. The only difference in my nginx binary is that<br>
I have added support for h.264 streaming but I have removed that with the<br>
same results so I doubt that can be an issue.<br>
 <br>
The problem is that each time I add a domain for anywhere from 6-24 hours<br>
nginx serves pages from a different domain on the new machine. Or sometimes<br>
it defaults to serving from /usr/local/nginx/html. I’ve confirmed the paths<br>
that it is calling “document root” and that the IP’s are from the new<br>
server. After this amount of time nginx starts serving documents from the<br>
correct directory/doc root.<br>
 <br>
Any ideas?<br>
<br>
<br>
<br>
--<br>
Regards,<br>
Joe<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Joe<br>