root@av:~# cd /etc/apache2/sites-available/ root@av:/etc/apache2/sites-available# mv default default.orig root@av:/etc/apache2/sites-available#別のサーバから default を持ってくる
root@av:/etc/apache2/sites-available# ftp ts Connected to ts.yamasita.jp. 220 www.yamasita.jp FTP server (GNU inetutils 1.5) ready. Name (ts:yasunari): 331 Password required for yasunari. Password: 230- Linux tswxl 2.6.22.18-mv78100 #134 Thu Feb 4 11:14:40 JST 2010 armv5tejl 230- 230- The programs included with the Debian GNU/Linux system are free software; 230- the exact distribution terms for each program are described in the 230- individual files in /usr/share/doc/*/copyright. 230- 230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent 230- permitted by applicable law. 230 User yasunari logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd /etc/apache2/sites-available/ 250 CWD command successful. ftp> get default local: default remote: default 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'default' (1042 bytes). 226 Transfer complete. 1042 bytes received in 0.00 secs (2850.4 kB/s) ftp> bye 221 Goodbye. root@av:/etc/apache2/sites-available# ls -al total 20 drwxr-xr-x 2 root root 57 Mar 1 15:53 . drwxr-xr-x 7 root root 4096 Mar 1 15:39 .. -rw-r--r-- 1 root root 1042 Mar 1 15:53 default -rw-r--r-- 1 root root 7469 Feb 6 06:41 default-ssl -rw-r--r-- 1 root root 950 Feb 6 06:41 default.orig root@av:/etc/apache2/sites-available#
root@av:/etc/apache2/sites-available# vi default : : root@av:/etc/apache2/sites-available# grep 8880 default <VirtualHost *:8880> root@av:/etc/apache2/sites-available# root@av:/etc/apache2/sites-available# cd .. root@av:/etc/apache2# mv ports.conf{,.orig} root@av:/etc/apache2# cp ports.conf.orig ports.conf root@av:/etc/apache2# vi ports.conf : : root@av:/etc/apache2# diff ports.conf.orig ports.conf 8,9c8,9 < NameVirtualHost *:80 < Listen 80 --- > NameVirtualHost *:8880 > Listen 8880 root@av:/etc/apache2#こんなところか??
root@av:/etc/apache2# /etc/init.d/apache2 restart Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.5 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.5 for ServerName . root@av:/etc/apache2#うーん。
root@av:/etc/apache2# grep ServerName * */* sites-available/default: ServerName www.yamasita.jp sites-enabled/000-default: ServerName www.yamasita.jp root@av:/etc/apache2#ちゃんとかいてあるのになぁ、、、
root@av:/etc/apache2# cat /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 192.168.1.5 av.yamasita.jp av www.yamasita.jp root@av:/etc/apache2# /etc/init.d/apache2 restart Restarting web server: apache2 ... waiting . root@av:/etc/apache2#
|
← apache のインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ssh サーバのインストール |