Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch add log path output at add of nginx vhost creation

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 17, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:28 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:28 AM
    Nginx 1.13.x
    MariaDB 5.5
    example at end of domain1.com nginx vhost creation
    Code (Text):
    vhost for domain1.com created successfully
    vhost ssl for domain1.com created successfully
    
    domain: https://domain1.com
    vhost ssl conf file for domain1.com created: /usr/local/nginx/conf/conf.d/domain1.com.ssl.conf
    /usr/local/nginx/conf/ssl_include.conf created
    Self-signed SSL Certificate: /usr/local/nginx/conf/ssl/domain1.com/domain1.com.crt
    SSL Private Key: /usr/local/nginx/conf/ssl/domain1.com/domain1.com.key
    SSL CSR File: /usr/local/nginx/conf/ssl/domain1.com/domain1.com.csr
    Backup SSL Private Key: /usr/local/nginx/conf/ssl/domain1.com/domain1.com-backup.key
    Backup SSL CSR File: /usr/local/nginx/conf/ssl/domain1.com/domain1.com-backup.csr
    
    upload files to /home/nginx/domains/domain1.com/public
    vhost log files directory is /home/nginx/domains/domain1.com/log
    
    -------------------------------------------------------------
    Current vhost listing at: /usr/local/nginx/conf/conf.d/
    
    Jun 1   13:44   1.1K   demodomain.com.conf
    Jun 1   13:44   845    ssl.conf
    Jun 1   13:54   1.6K   virtual.conf
    Jun 17  12:24   3.7K   domain1.com.ssl.conf
    
    -------------------------------------------------------------
    Current vhost ssl files listing at: /usr/local/nginx/conf/ssl/domain1.com
                           
    Jun 17  12:23   1.7K   domain1.com.key
    Jun 17  12:23   952    domain1.com.csr
    Jun 17  12:23   1.1K   domain1.com.crt
    Jun 17  12:23   1.7K   domain1.com-backup.key
    Jun 17  12:23   952    domain1.com-backup.csr
    Jun 17  12:23   45     hpkp-info-primary-pin.txt
    Jun 17  12:23   45     hpkp-info-secondary-pin.txt
    Jun 17  12:24   424    dhparam.pem
    
    -------------------------------------------------------------
    Commands to remove domain1.com
    
     pure-pw userdel ftpuser02
     rm -rf /usr/local/nginx/conf/conf.d/domain1.com.ssl.conf
     rm -rf /usr/local/nginx/conf/ssl/domain1.com/domain1.com.crt
     rm -rf /usr/local/nginx/conf/ssl/domain1.com/domain1.com.key
     rm -rf /usr/local/nginx/conf/ssl/domain1.com/domain1.com.csr
     rm -rf /usr/local/nginx/conf/ssl/domain1.com
     rm -rf /home/nginx/domains/domain1.com
     service nginx restart
    
    -------------------------------------------------------------
    vhost for domain1.com setup successfully
    domain1.com setup info log saved at: 
    /root/centminlogs/centminmod_170616-122251_nginx_addvhost_nv.log
    -------------------------------------------------------------