Remote Login
Ssh-P 5108 root @ 52. **. 173.202
The authenticity of host' [52.215.173.202]: 5108 ([52.215.173.202]: 5108) 'Can't be established.
RSA key fingerprint is 88: F9: C9: D7: 65: 29: 65: 3C: 41: C1: 50: 74: 7b: 14: 74: CE.
Are you sure you want to continue connecting (Yes/No )?Yes
Warning: Permanently added '[52.215.173.202]: 100' (RSA) to the list of known hosts.
Root@52.215.173.202's password:******
Welcome to Ubuntu 12.04 lts (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Tue Apr 23 17:37:14 2013 from 180.172.53.43
Root @ SNDA-192-168-15-106 :~ #PWD
/Root
Root @ SNDA-192-168-15-106 :~ #CD/etc/apache2/sites-available
Copy one copy
Root @ SNDA-192-168-15-106:/etc/apache2/sites-available #CP default yoursite.com
Root @ SNDA-192-168-15-106:/etc/apache2/sites-available # ls
Default default-SSLYoursite_ Com
Root @ SNDA-192-168-15-106:/etc/apache2 #CD sites-enabled/
Root @ SNDA-192-168-15-106:/etc/apache2/sites-enabled # ls
000-Default
Create Link
root @ SNDA-192-168-15-106: /etc/apache2/sites-enabled # ln-s .. /sites-available/ yoursite _ COM.
root @ SNDA-192-168-15-106: /etc/apache2/sites-enabled # ll
total 8
drwxr-XR-x 2 root Root 4096 Apr 25 :09. /
drwxr-XR-x 7 Root 4096 Apr 3 .. /
lrwxrwxrwx 1 Root 26 Apr 1 18:10 000-default-> .. /sites-available/default
lrwxrwxrwx 1 Root 31 Apr 25 :09 yoursite _ com-> .. /sites-available/ yoursite _ com
Root @ SNDA-192-168-15-106:/etc/apache2/sites-available # ls
Default default-SSLYoursite_ Com
Transfer files and deployment
The P must be capitalized.
Root @Root-M68MT-S2P:/var/WWW $SCP-P5108 project_201302.16.tar.gz root@52.215.173.202:/root/
Root@52.215.173.202's password:******
Project_201302.16.tar.gz 100% 912kb 911.9kb/s
Compressed before transmission
Root @ Root -M68MT-S2P:/var/WWW $ CPProject _ 201302.16. SQL/tmp/
Root @ Root -M68MT-S2P:/var/WWW $ CD/tmp/
Root @ Root -M68MT-S2P:/tmp $ tar CZF Project _ 20130425. SQL. tgzProject _ 201302.16. SQL
Root @ Root -M68MT-S2P:/var/WWW $ SCP-P 5108/tmp/ Project _ 20130425. SQL. tgz root@52.215.173.202:/root/
Root@52.215.173.202's password:
Project _ 20130425. SQL. tgz 100% 666kb 666.5kb/s
Root @ Root -M68MT-S2P:/var/WWW $
Edit yoursite _ Com
1 <virtualhost *: 80>
2 servername Yoursite . Com
3 serveralias www. Yoursite . Com
4 serveradmin webmaster @ localhost
5
6 redirect/Dian/CC? Login = cc
7 redirect/Wen/CC? Login = PP
8 proxypass/CC http: // localhost: 9088
9
10 DocumentRoot/var/www/Drupal/
11 <directory/>
12 options followsymlinks
13 AllowOverride all
14 </directory>
15 <directory/var/www/Drupal/>
16 options indexes followsymlinks Multiviews
17 AllowOverride all
18 order allow, deny
19 allow from all
20 </directory>
21
22 ScriptAlias/cgi-bin // usr/lib/cgi-bin/
23 <directory "/usr/lib/cgi-bin">
24 AllowOverride all
25 options + execcgi-Multiviews + symlinksifownermatch
26 order allow, deny
27 allow from all
28 </directory>
29
30 errorlog $ {apache_log_dir}/error. Log
31
32 # possible values include: Debug, info, notice, warn, error, crit,
33 # Alert, emerg.
34 loglevel warn
35
36 customlog $ {apache_log_dir}/access. Log combined
37
38 alias/doc/"/usr/share/doc /"
39 <directory "/usr/share/doc/">
40 options indexes Multiviews followsymlinks
41 AllowOverride all
42 Order deny, allow
43 deny from all
44 allow from 127.0.0.0/255.0.0.0: 1/128
45 </directory>
46
47 </virtualhost>