rsync -avzhe ssh --progress /data1/vhosts/domain.com [email protected]:/var/www/html/sub.domain.com/public_html
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/domain.com [email protected]:/home/test.domain.com
rsync -avz --rsh='ssh -p2222' --progress /data/vhosts/multi-sites/domain.com [email protected]:/home/test.domain.com
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/domain.com [email protected]:/home/test.domain.com
///LỆNH COPY DATA TỪ VPS A -> VPS B///
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/domain.com [email protected]:/home/test.domain.com
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/domain.sql.gz [email protected]:/home/test.domain.com
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/sub.domain.org/memcached [email protected]:/home/domain.com/public_html/mem
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/sub.domain.org [email protected]:/home/sub.domain.org
rsync -avzhe "ssh -p 2222" --progress /data/vhosts/multi-sites/sub.domain.org.sql.gz [email protected]:/home/sub.domain.org
///lỆNH ĐỒNG BỘ VPS A -> VPS B///
rsync -aurzW --delete --force -e "ssh -p 2222 " /data/vhosts/thu_muc [email protected]:/home
"ssh -p 2222 /root/.ssh/id_dsa_vps_a" [email protected]
/////backup
mysqldump -u root -p aff_network | gzip -9 > sub.domain.org.sql.gz
/////restore
gunzip < sub.domain.org.sql.gz | mysql -u afflady9or88a05 -p sub_domainname_o_88a05
<VirtualHost *:80>
ServerName ct8.domain.com
ServerAlias www.ct8.domain.com
DocumentRoot /var/www/html/ct8.domain.com/public_html
<Directory /var/www/html/ct8.domain.com/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/ct8.domain.com.com-error.log
CustomLog /var/log/httpd/ct8.domain.com.com-access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName sub.domain.com
ServerAlias www.sub.domain.com
DocumentRoot /var/www/html/sub.domain.com/public_html
<Directory /var/www/html/sub.domain.com/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/sub.domain.com.com-error.log
CustomLog /var/log/httpd/sub.domain.com.com-access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName sub.domain.com
ServerAlias www.sub.domain.com
DocumentRoot /var/www/html/sub.domain.com/public_html
<Directory /var/www/html/sub.domain.com/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/sub.domain.com.com-error.log
CustomLog /var/log/httpd/sub.domain.com.com-access.log combined
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/html/sub.domain.com/public_html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# CUSTOM STUFF NEEDED FOR SSL PROXY
SSLEngine On
SSLProxyEngine on
SSLProxyCheckPeerCN off
# this needs to be off because cert does not match server name
SSLProxyCheckPeerName off
# MAKE SURE THE CERTS ARE GENERATED AND AT THE CORRECT PATH
#SSLCertificateFile /home/myuser/certs/mysitename.crt
#SSLCertificateKeyFile /home/myuser/certs/mysitename.key
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / https://localhost:4430/
ProxyPassReverse / https://localhost:4430/
</VirtualHost>