美文网首页
Ghost and Use nginx on the Debia

Ghost and Use nginx on the Debia

作者: Komolei | 来源:发表于2017-09-04 12:52 被阅读0次

    use GHOST

    learn too much command of Linux
    for example:
    adduser
    userdel
    modified user password : passwd username
    Ghost use failed,fuck。 need another way to try on centOS;

    solve the problem

    I place my website files in the vps room where the dictionary's name is called /usr/share/nginx/www/
    You can use cd /usr/share/nginx/www/,
    then use git clone [something your website resource]
    finally,to modified the nginx.conf ,just like this ---> vim /etc/nginx/site-available/default
    the configuration of default is:
    \# You may add here your
    server {
    listen 80; ## listen for ipv4; this line is default and implied
    #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
    root /usr/share/nginx/www/website;
    index first.html index.htm;
    # Make site accessible from http://localhost/
    #server_name localhost;
    server_name www.komolei.cn ;
    location / {
    # Firstattempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ /index.html;
    # Uncomment to enable naxsi on this location
    # include /etc/nginx/naxsi.rules
    }
    }

    now,you can preview my website

    plan,stand a flag

    learn nginx ,and finish configuration file

    Guide :

    nginx
    jianshu
    useful file
    useful file1
    ipv6 test tool

    相关文章

      网友评论

          本文标题:Ghost and Use nginx on the Debia

          本文链接:https://www.haomeiwen.com/subject/apqejxtx.html