about 1 year ago

copy muyushi_zscjq folder to linux server

scp -r your_folder user@remote

login to remote, move the file under location

ssh user@remote
sudo mv folder /var/www 

create muyushi_zscjq folder under /var/www

create muyushi_zscqj.conf under /etc/nginx/sites-enabled

server {
  listen 80;
  server_name xxx.com;
  location ~/muyushi_zscqj {
    root /var/www/;
sudo service nginx restart

open browser to browser http://xxx.com/muyushi_zscqj to verify result

← ubuntu 16.04 rails setup with nginx passenger rails server mirror →