Source

woocode / sa-auto / conf / nginx / n.surna.com_8088.conf

server {
        listen 8088;
        server_name cms.surna.com;

        location / {
          #proxy_set_header Host $http_host;
          proxy_set_header Host cms.zjxyz.com;
          proxy_pass http://local;
         }

        location /u/ {
            alias /apps/dat/cms/ufile/u/;
         }

        location /d/ {
            alias /apps/dat/cms/dfile/d/;
         }

  }


server {
        listen 8088;
        server_name n.surna.com;
        access_log  logs/n.surna.com.access.log;
        index index.shtml index.html index.htm index.php;
        location / {
          root  /apps/dat/www/n.surna.com;
         }

        location ~ .*\.php$ {
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME    /apps/dat/www/n.surna.com/$fastcgi_script_name;
          fastcgi_pass local_php;
         }
  }