买了个香港的服务器,配置了5、6个域名,但是只有主文件下的一个域名能够正常使用,其它域名有报503错误、刷新几次之后网站可以打开,但是图片和样式表文件以及js文件加载不了,这是什么情况,急!急!急!求大神们指教啊。

解决方案 »

  1.   

    文件都是相对路径吗?如果是nginx可以参考:server
    {
        listen 80;
        server_name www.abc.com abc.com www.cde.com cde.com;             
        index index.htm index.html index.php;     
        root /var/www/html/abc;                
     
            location ~ \.php$ {
                    fastcgi_split_path_info ^(.+\.php)(/.+)$;
                    fastcgi_pass unix:/var/run/php5-fpm.sock;
                    fastcgi_index index.php;
                    include fastcgi_params;
            }
    }