|
|
Line 1: |
Line 1: |
| Last login: Mon Sep 10 14:20:02 on ttys000
| |
| BiyideMacBook-Pro:~ Biyi$ ssh
| |
| usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
| |
| [-D [bind_address:]port] [-E log_file] [-e escape_char]
| |
| [-F configfile] [-I pkcs11] [-i identity_file]
| |
| [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
| |
| [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
| |
| [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
| |
| [user@]hostname [command]
| |
| BiyideMacBook-Pro:~ Biyi$ ssh pi@145.24.139.232
| |
| The authenticity of host '145.24.139.232 (145.24.139.232)' can't be established.
| |
| ECDSA key fingerprint is SHA256:t/TpqYklFD5RRiVRa5Cz4BCYQr2MvUA1QVHRUvhgb1E.
| |
| Are you sure you want to continue connecting (yes/no)? yes
| |
| Warning: Permanently added '145.24.139.232' (ECDSA) to the list of known hosts.
| |
| pi@145.24.139.232's password:
| |
| Linux xpi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
| |
| xpub pi
| |
| Last login: Mon Sep 17 11:57:15 2018 from 145.24.246.112
| |
|
| |
|
| SSH is enabled and the default password for the 'pi' user has not been changed.
| |
| This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
| |
|
| |
| pi@xpi:~ $ whatis ls
| |
| ls (1) - list directory contents
| |
| pi@xpi:~ $ whatis ne
| |
| ne (1) - A nice editor
| |
| pi@xpi:~ $ whatis whatis
| |
| whatis (1) - display one-line manual page descriptions
| |
| pi@xpi:~ $ whoami
| |
| pi
| |
| pi@xpi:~ $ exit
| |
| logout
| |
| Connection to 145.24.139.232 closed.
| |
| BiyideMacBook-Pro:~ Biyi$ ssh biyibiyibiyi@145.24.139.232
| |
| biyibiyibiyi@145.24.139.232's password:
| |
| Linux xpi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
| |
| xpub pi
| |
|
| |
| SSH is enabled and the default password for the 'pi' user has not been changed.
| |
| This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
| |
|
| |
| biyibiyibiyi@xpi:~ $ whoami
| |
| biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ whoami
| |
| biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ whereami
| |
| -bash: whereami: command not found
| |
| biyibiyibiyi@xpi:~ $ whatis
| |
| whatis what?
| |
| biyibiyibiyi@xpi:~ $ whatis biyibiyibiyi
| |
| biyibiyibiyi: nothing appropriate.
| |
| biyibiyibiyi@xpi:~ $ whatis siri
| |
| siri: nothing appropriate.
| |
| biyibiyibiyi@xpi:~ $ ifconfig
| |
| enxb827eb54db82: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
| |
| inet 145.24.139.232 netmask 255.255.255.0 broadcast 145.24.139.255
| |
| inet6 fe80::5a64:a743:7b9d:83a4 prefixlen 64 scopeid 0x20<link>
| |
| ether b8:27:eb:54:db:82 txqueuelen 1000 (Ethernet)
| |
| RX packets 39975 bytes 6180765 (5.8 MiB)
| |
| RX errors 0 dropped 11 overruns 0 frame 0
| |
| TX packets 1900 bytes 268477 (262.1 KiB)
| |
| TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
| |
|
| |
| lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
| |
| inet 127.0.0.1 netmask 255.0.0.0
| |
| inet6 ::1 prefixlen 128 scopeid 0x10<host>
| |
| loop txqueuelen 1000 (Local Loopback)
| |
| RX packets 0 bytes 0 (0.0 B)
| |
| RX errors 0 dropped 0 overruns 0 frame 0
| |
| TX packets 0 bytes 0 (0.0 B)
| |
| TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
| |
|
| |
| wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
| |
| ether b8:27:eb:01:8e:d7 txqueuelen 1000 (Ethernet)
| |
| RX packets 0 bytes 0 (0.0 B)
| |
| RX errors 0 dropped 0 overruns 0 frame 0
| |
| TX packets 0 bytes 0 (0.0 B)
| |
| TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
| |
|
| |
| biyibiyibiyi@xpi:~ $ whatis users
| |
| users (1) - print the user names of users currently logged in to t...
| |
| biyibiyibiyi@xpi:~ $ users
| |
| biyibiyibiyi biyibiyibiyi bo estragon outis paloma pedrosaclout pi rita simoon
| |
| biyibiyibiyi@xpi:~ $ users
| |
| biyibiyibiyi biyibiyibiyi bo estragon outis paloma pedrosaclout pi rita simoon
| |
| biyibiyibiyi@xpi:~ $ users
| |
| biyibiyibiyi biyibiyibiyi bo estragon outis paloma pedrosaclout pi rita simoon
| |
| biyibiyibiyi@xpi:~ $ users
| |
| biyibiyibiyi biyibiyibiyi bo estragon outis paloma pedrosaclout pi rita simoon
| |
| biyibiyibiyi@xpi:~ $ echo something
| |
| something
| |
| biyibiyibiyi@xpi:~ $ echo "something "
| |
| something
| |
| biyibiyibiyi@xpi:~ $ echo a hoy
| |
| a hoy
| |
| biyibiyibiyi@xpi:~ $ echo "a hoy "
| |
| a hoy
| |
| biyibiyibiyi@xpi:~ $ echo hello\hi\
| |
| > echo hello \\
| |
| hellohiecho hello \
| |
| biyibiyibiyi@xpi:~ $ echo hello\
| |
| >
| |
| hello
| |
| biyibiyibiyi@xpi:~ $
| |
| biyibiyibiyi@xpi:~ $ echo xpu \\ xpu \\
| |
| xpu \ xpu \
| |
| biyibiyibiyi@xpi:~ $ type > foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.txt
| |
| biyibiyibiyi@xpi:~ $ foo.jpg
| |
| -bash: foo.jpg: command not found
| |
| biyibiyibiyi@xpi:~ $ type > foo.jpg
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ ls /home/
| |
| biyibiyibiyi bo estragon outis paloma pedrosaclout pi rita simoon
| |
| biyibiyibiyi@xpi:~ $ ls /home/pi
| |
| books download-pad.sh foo.txt something.txt userlist.txt users.sh
| |
| biyibiyibiyi@xpi:~ $ ls /home/bo
| |
| biyibiyibiyi@xpi:~ $ ls /home/estragon
| |
| userlist.txt
| |
| biyibiyibiyi@xpi:~ $ pwd /home/pi
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ ls /home/simoon
| |
| biyibiyibiyi@xpi:~ $ ls /home/simoon
| |
| biyibiyibiyi@xpi:~ $ ls /home/biyibiyibiyi
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls /home/simoon
| |
| biyibiyibiyi@xpi:~ $ ls /home/simoon
| |
| biyibiyibiyi@xpi:~ $ whatis su
| |
| su (1) - change user ID or become superuser
| |
| biyibiyibiyi@xpi:~ $ su paloma
| |
| Password:
| |
| paloma@xpi:/home/biyibiyibiyi $ whoami
| |
| paloma
| |
| paloma@xpi:/home/biyibiyibiyi $ su biyibiyibiyi
| |
| Password:
| |
| biyibiyibiyi@xpi:~ $ whoami
| |
| biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ pas
| |
| passwd paste
| |
| biyibiyibiyi@xpi:~ $ passwd hihihi
| |
| passwd: user 'hihihi' does not exist
| |
| biyibiyibiyi@xpi:~ $ passwd biyibiyibiyi
| |
| Changing password for biyibiyibiyi.
| |
| (current) UNIX password:
| |
| hipasswd: Authentication token manipulation error
| |
| passwd: password unchanged
| |
| biyibiyibiyi@xpi:~ $ biyibiyibiyi
| |
| bash: biyibiyibiyi: command not found
| |
| biyibiyibiyi@xpi:~ $ passwd biyibiyibiyi
| |
| Changing password for biyibiyibiyi.
| |
| (current) UNIX password:
| |
| passwd: Authentication token manipulation error
| |
| passwd: password unchanged
| |
| biyibiyibiyi@xpi:~ $ passwd biyibiyibiyi
| |
| Changing password for biyibiyibiyi.
| |
| (current) UNIX password:
| |
| Enter new UNIX password:
| |
| Retype new UNIX password:
| |
| Bad: new password is too simple
| |
| Enter new UNIX password:
| |
| Retype new UNIX password:
| |
| passwd: password updated successfully
| |
| biyibiyibiyi@xpi:~ $ exit
| |
| exit
| |
| paloma@xpi:/home/biyibiyibiyi $ exit
| |
| exit
| |
| biyibiyibiyi@xpi:~ $ exit
| |
| logout
| |
| Connection to 145.24.139.232 closed.
| |
| BiyideMacBook-Pro:~ Biyi$ ssh biyibiyibiyi@145.24.139.232
| |
| biyibiyibiyi@145.24.139.232's password:
| |
| Permission denied, please try again.
| |
| biyibiyibiyi@145.24.139.232's password:
| |
| Linux xpi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
| |
| xpub pi
| |
| Last login: Mon Sep 17 12:12:31 2018 from 145.24.244.69
| |
|
| |
| SSH is enabled and the default password for the 'pi' user has not been changed.
| |
| This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
| |
|
| |
| biyibiyibiyi@xpi:~ $ ls home/biyibiyibiyi
| |
| ls: cannot access 'home/biyibiyibiyi': No such file or directory
| |
| biyibiyibiyi@xpi:~ $ ls /home/biyibiyibiyi/
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ passwd biyibiyibiyi
| |
| Changing password for biyibiyibiyi.
| |
| (current) UNIX password:
| |
| Enter new UNIX password:
| |
| Retype new UNIX password:
| |
| You must choose a longer password
| |
| Enter new UNIX password:
| |
| Retype new UNIX password:
| |
| You must choose a longer password
| |
| Enter new UNIX password:
| |
| Retype new UNIX password:
| |
| You must choose a longer password
| |
|
| |
| passwd: Authentication token manipulation error
| |
| passwd: password unchanged
| |
| biyibiyibiyi@xpi:~ $
| |
| biyibiyibiyi@xpi:~ $ ls /home/biyibiyibiyi
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ less userlist.txt
| |
| userlist.txt: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ less user
| |
| user: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ less users
| |
| users: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ less userlist.txt
| |
| userlist.txt: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ sudo find / -type
| |
|
| |
| We trust you have received the usual lecture from the local System
| |
| Administrator. It usually boils down to these three things:
| |
|
| |
| #1) Respect the privacy of others.
| |
| #2) Think before you type.
| |
| #3) With great power comes great responsibility.
| |
|
| |
| [sudo] password for biyibiyibiyi:
| |
| Sorry, try again.
| |
| [sudo] password for biyibiyibiyi:
| |
| biyibiyibiyi is not in the sudoers file. This incident will be reported.
| |
| biyibiyibiyi@xpi:~ $ man less
| |
| biyibiyibiyi@xpi:~ $ les --help
| |
| -bash: les: command not found
| |
| biyibiyibiyi@xpi:~ $ less --help
| |
| biyibiyibiyi@xpi:~ $ less allfiles
| |
| allfiles: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ less allfiles.txt
| |
| allfiles.txt: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ less allfiles.txt
| |
| allfiles.txt: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ cal
| |
| September 2018
| |
| Su Mo Tu We Th Fr Sa
| |
| 1
| |
| 2 3 4 5 6 7 8
| |
| 9 10 11 12 13 14 15
| |
| 16 17 18 19 20 21 22
| |
| 23 24 25 26 27 28 29
| |
| 30
| |
| biyibiyibiyi@xpi:~ $ echo "something else" > foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls /home/biyibiyibiyi
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ cat foo.txt
| |
| something else
| |
| biyibiyibiyi@xpi:~ $ echo "something on top of it" >> foo.txt
| |
| biyibiyibiyi@xpi:~ $ cat foo.txt
| |
| something else
| |
| something on top of it
| |
| biyibiyibiyi@xpi:~ $ ne foo.txt
| |
| biyibiyibiyi@xpi:~ $ cat foo.txt
| |
| something else
| |
| something on bottom of itbiyibiyibiyi@xpi:~ $ emacs
| |
| -bash: emacs: command not found
| |
| biyibiyibiyi@xpi:~ $ whatis emacs
| |
| emacs: nothing appropriate.
| |
| biyibiyibiyi@xpi:~ $ ls /
| |
| bin dev home lost+found mnt proc run srv tmp var
| |
| boot etc lib media opt root sbin sys usr
| |
| biyibiyibiyi@xpi:~ $ ls /home
| |
| biyibiyibiyi estragon paloma pi simoon
| |
| bo outis pedrosaclout rita welcome.txt
| |
| biyibiyibiyi@xpi:~ $ ls /home/rita
| |
| foo.txt ls
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ ls /home/bo/
| |
| foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ ls
| |
| foo.jpg foo.txt
| |
| biyibiyibiyi@xpi:~ $ /home/bo/
| |
| -bash: /home/bo/: Is a directory
| |
| biyibiyibiyi@xpi:~ $ home/bo
| |
| -bash: home/bo: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ ls /home/bo
| |
| foo.txt
| |
| biyibiyibiyi@xpi:~ $ cd /home/simoon/
| |
| biyibiyibiyi@xpi:/home/simoon $ cd /home/outis
| |
| biyibiyibiyi@xpi:/home/outis $ ls
| |
| append.txt ciao.txt
| |
| biyibiyibiyi@xpi:/home/outis $ cd /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ cd /home/pi
| |
| biyibiyibiyi@xpi:/home/pi $ ls
| |
| allfiles.txt download-pad.sh something.txt users.sh
| |
| books foo.txt userlist.txt
| |
| biyibiyibiyi@xpi:/home/pi $ ls
| |
| allfiles.txt download-pad.sh something.txt users.sh
| |
| books foo.txt userlist.txt
| |
| biyibiyibiyi@xpi:/home/pi $ ls
| |
| allfiles.txt download-pad.sh something.txt users.sh
| |
| books foo.txt userlist.txt
| |
| biyibiyibiyi@xpi:/home/pi $ cd ~
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ cd/
| |
| -bash: cd/: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ cd/home/bo
| |
| -bash: cd/home/bo: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ cd /home/bo
| |
| biyibiyibiyi@xpi:/home/bo $ pwd
| |
| /home/bo
| |
| biyibiyibiyi@xpi:/home/bo $ ~
| |
| -bash: /home/biyibiyibiyi: Is a directory
| |
| biyibiyibiyi@xpi:/home/bo $ cd ~
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ ~
| |
| -bash: /home/biyibiyibiyi: Is a directory
| |
| biyibiyibiyi@xpi:~ $ ~
| |
| -bash: /home/biyibiyibiyi: Is a directory
| |
| biyibiyibiyi@xpi:~ $ /
| |
| -bash: /: Is a directory
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ cd /
| |
| biyibiyibiyi@xpi:/ $ ls
| |
| bin dev home lost+found mnt proc run srv tmp var
| |
| boot etc lib media opt root sbin sys usr
| |
| biyibiyibiyi@xpi:/ $ cd ++
| |
| -bash: cd: ++: No such file or directory
| |
| biyibiyibiyi@xpi:/ $ cd ..
| |
| biyibiyibiyi@xpi:/ $ cd ../
| |
| biyibiyibiyi@xpi:/ $ cd
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ cd /
| |
| biyibiyibiyi@xpi:/ $ cd ../
| |
| biyibiyibiyi@xpi:/ $ cd ../
| |
| biyibiyibiyi@xpi:/ $ cd ../
| |
| biyibiyibiyi@xpi:/ $ cd ../bo
| |
| -bash: cd: ../bo: No such file or directory
| |
| biyibiyibiyi@xpi:/ $ cd ~
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ mkdir colors
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ cd /home/biyibiyibiyi/color
| |
| -bash: cd: /home/biyibiyibiyi/color: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ cd /home/biyibiyibiyi/colors
| |
| biyibiyibiyi@xpi:~/colors $ cd ../
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ cd ../
| |
| biyibiyibiyi@xpi:/home $ pwd
| |
| /home
| |
| biyibiyibiyi@xpi:/home $ ../estragon
| |
| -bash: ../estragon: No such file or directory
| |
| biyibiyibiyi@xpi:/home $ man ls
| |
| biyibiyibiyi@xpi:/home $ man ls
| |
| biyibiyibiyi@xpi:/home $ ls -a
| |
| . biyibiyibiyi estragon paloma pi simoon
| |
| .. bo outis pedrosaclout rita welcome.txt
| |
| biyibiyibiyi@xpi:/home $ /estragon/
| |
| -bash: /estragon/: No such file or directory
| |
| biyibiyibiyi@xpi:/home $ cd /estragon/home/
| |
| -bash: cd: /estragon/home/: No such file or directory
| |
| biyibiyibiyi@xpi:/home $ cd /estragon/home
| |
| -bash: cd: /estragon/home: No such file or directory
| |
| biyibiyibiyi@xpi:/home $ cd/estragon/home
| |
| -bash: cd/estragon/home: No such file or directory
| |
| biyibiyibiyi@xpi:/home $ cd /home/outis
| |
| biyibiyibiyi@xpi:/home/outis $ cd /home/estragon
| |
| biyibiyibiyi@xpi:/home/estragon $ pwd
| |
| /home/estragon
| |
| biyibiyibiyi@xpi:/home/estragon $ ls -t
| |
| music nicefood.txt drinks.txt userlist.txt
| |
| biyibiyibiyi@xpi:/home/estragon $ ls -1
| |
| drinks.txt
| |
| music
| |
| nicefood.txt
| |
| userlist.txt
| |
| biyibiyibiyi@xpi:/home/estragon $ ls al
| |
| ls: cannot access 'al': No such file or directory
| |
| biyibiyibiyi@xpi:/home/estragon $ ls -al
| |
| total 52
| |
| drwxr-xr-x 5 estragon estragon 4096 Sep 17 13:45 .
| |
| drwxr-xr-x 11 root root 4096 Sep 17 12:27 ..
| |
| -rw------- 1 estragon estragon 12 Sep 17 12:43 .bash_history
| |
| -rw-r--r-- 1 estragon estragon 220 Sep 17 12:01 .bash_logout
| |
| -rw-r--r-- 1 estragon estragon 3523 Sep 17 12:01 .bashrc
| |
| -rw-r--r-- 1 estragon estragon 39 Sep 17 13:10 drinks.txt
| |
| -rw------- 1 estragon estragon 66 Sep 17 13:45 .lesshst
| |
| drwxr-xr-x 2 estragon estragon 4096 Sep 17 13:39 music
| |
| drwxr-xr-x 2 estragon estragon 4096 Sep 17 13:08 .nano
| |
| drwx------ 2 estragon estragon 4096 Sep 17 13:06 .ne
| |
| -rw-r--r-- 1 estragon estragon 17 Sep 17 13:16 nicefood.txt
| |
| -rw-r--r-- 1 estragon estragon 675 Sep 17 12:01 .profile
| |
| -rw-r--r-- 1 estragon estragon 24 Sep 17 12:23 userlist.txt
| |
| biyibiyibiyi@xpi:/home/estragon $ sudo apt-get install apache2
| |
| [sudo] password for biyibiyibiyi:
| |
| biyibiyibiyi is not in the sudoers file. This incident will be reported.
| |
| biyibiyibiyi@xpi:/home/estragon $ cd/ home/biyibiyibiyi
| |
| -bash: cd/: No such file or directory
| |
| biyibiyibiyi@xpi:/home/estragon $ cd../
| |
| -bash: cd../: No such file or directory
| |
| biyibiyibiyi@xpi:/home/estragon $ cd ../
| |
| biyibiyibiyi@xpi:/home $ cd /biyibiyibiyi/
| |
| -bash: cd: /biyibiyibiyi/: No such file or directory
| |
| biyibiyibiyi@xpi:/home $ ls
| |
| biyibiyibiyi estragon paloma pi simoon
| |
| bo outis pedrosaclout rita welcome.txt
| |
| biyibiyibiyi@xpi:/home $ cd /home/biyibiyibiyi/
| |
| biyibiyibiyi@xpi:~ $ pwd
| |
| /home/biyibiyibiyi
| |
| biyibiyibiyi@xpi:~ $ apache install xx2
| |
| -bash: apache: command not found
| |
| biyibiyibiyi@xpi:~ $ sudo apt-get install xx2
| |
| [sudo] password for biyibiyibiyi:
| |
| biyibiyibiyi is not in the sudoers file. This incident will be reported.
| |
| biyibiyibiyi@xpi:~ $ exit
| |
| logout
| |
| Connection to 145.24.139.232 closed.
| |
| BiyideMacBook-Pro:~ Biyi$ ssh biyibiyibiyi@145.24.139.232
| |
| biyibiyibiyi@145.24.139.232's password:
| |
| Linux xpi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
| |
| xpub pi
| |
| Last login: Mon Sep 17 12:47:14 2018 from 145.24.167.201
| |
|
| |
| SSH is enabled and the default password for the 'pi' user has not been changed.
| |
| This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
| |
|
| |
| biyibiyibiyi@xpi:~ $ cd /var/www/html/index.html
| |
| -bash: cd: /var/www/html/index.html: Not a directory
| |
| biyibiyibiyi@xpi:~ $ cd/var/www/html/index
| |
| -bash: cd/var/www/html/index: No such file or directory
| |
| biyibiyibiyi@xpi:~ $ cd /var/www/html
| |
| biyibiyibiyi@xpi:/var/www/html $ cat indext.html
| |
| cat: indext.html: No such file or directory
| |
| biyibiyibiyi@xpi:/var/www/html $ ls
| |
| books download-pad.sh index.html
| |
| biyibiyibiyi@xpi:/var/www/html $ del index.html
| |
| -bash: del: command not found
| |
| biyibiyibiyi@xpi:/var/www/html $ cat index.html
| |
|
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| |
| <html xmlns="http://www.w3.org/1999/xhtml">
| |
| <head>
| |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| |
| <title>Apache2 Debian Default Page: It works</title>
| |
| <style type="text/css" media="screen">
| |
| * {
| |
| margin: 0px 0px 0px 0px;
| |
| padding: 0px 0px 0px 0px;
| |
| }
| |
|
| |
| body, html {
| |
| padding: 3px 3px 3px 3px;
| |
|
| |
| background-color: #D8DBE2;
| |
|
| |
| font-family: Verdana, sans-serif;
| |
| font-size: 11pt;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.main_page {
| |
| position: relative;
| |
| display: table;
| |
|
| |
| width: 800px;
| |
|
| |
| margin-bottom: 3px;
| |
| margin-left: auto;
| |
| margin-right: auto;
| |
| padding: 0px 0px 0px 0px;
| |
|
| |
| border-width: 2px;
| |
| border-color: #212738;
| |
| border-style: solid;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: center;
| |
| }
| |
|
| |
| div.page_header {
| |
| height: 99px;
| |
| width: 100%;
| |
|
| |
| background-color: #F5F6F7;
| |
| }
| |
|
| |
| div.page_header span {
| |
| margin: 15px 0px 0px 50px;
| |
|
| |
| font-size: 180%;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.page_header img {
| |
| margin: 3px 0px 0px 40px;
| |
|
| |
| border: 0px 0px 0px;
| |
| }
| |
|
| |
| div.table_of_contents {
| |
| clear: left;
| |
|
| |
| min-width: 200px;
| |
|
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item {
| |
| clear: left;
| |
|
| |
| width: 100%;
| |
|
| |
| margin: 4px 0px 0px 0px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| color: #000000;
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a {
| |
| margin: 6px 0px 0px 6px;
| |
| }
| |
|
| |
| div.content_section {
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.content_section_text {
| |
| padding: 4px 8px 4px 8px;
| |
|
| |
| color: #000000;
| |
| font-size: 100%;
| |
| }
| |
|
| |
| div.content_section_text pre {
| |
| margin: 8px 0px 8px 0px;
| |
| padding: 8px 8px 8px 8px;
| |
|
| |
| border-width: 1px;
| |
| border-style: dotted;
| |
| border-color: #000000;
| |
|
| |
| background-color: #F5F6F7;
| |
|
| |
| font-style: italic;
| |
| }
| |
|
| |
| div.content_section_text p {
| |
| margin-bottom: 6px;
| |
| }
| |
|
| |
| div.content_section_text ul, div.content_section_text li {
| |
| padding: 4px 8px 4px 16px;
| |
| }
| |
|
| |
| div.section_header {
| |
| padding: 3px 6px 3px 6px;
| |
|
| |
| background-color: #8E9CB2;
| |
|
| |
| color: #FFFFFF;
| |
| font-weight: bold;
| |
| font-size: 112%;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.section_header_red {
| |
| background-color: #CD214F;
| |
| }
| |
|
| |
| div.section_header_grey {
| |
| background-color: #9F9386;
| |
| }
| |
|
| |
| .floating_element {
| |
| position: relative;
| |
| float: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a,
| |
| div.content_section_text a {
| |
| text-decoration: none;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.table_of_contents_item a:link,
| |
| div.table_of_contents_item a:visited,
| |
| div.table_of_contents_item a:active {
| |
| color: #000000;
| |
| }
| |
|
| |
| div.table_of_contents_item a:hover {
| |
| background-color: #000000;
| |
|
| |
| color: #FFFFFF;
| |
| }
| |
|
| |
| div.content_section_text a:link,
| |
| div.content_section_text a:visited,
| |
| div.content_section_text a:active {
| |
| background-color: #DCDFE6;
| |
|
| |
| color: #000000;
| |
| }
| |
|
| |
| div.content_section_text a:hover {
| |
| background-color: #000000;
| |
|
| |
| color: #DCDFE6;
| |
| }
| |
|
| |
| div.validator {
| |
| }
| |
| </style>
| |
| </head>
| |
| <body>
| |
| <div class="main_page">
| |
| <div class="page_header floating_element">
| |
| <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_element"/>
| |
| <span class="floating_element">
| |
| Apache2 Debian Default Page
| |
| </span>
| |
| </div>
| |
| <!-- <div class="table_of_contents floating_element">
| |
| <div class="section_header section_header_grey">
| |
| TABLE OF CONTENTS
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#about">About</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#changes">Changes</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#scope">Scope</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#files">Config files</a>
| |
| </div>
| |
| </div>
| |
| -->
| |
| <div class="content_section floating_element">
| |
|
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| It works!
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| This is the default welcome page used to test the correct
| |
| operation of the Apache2 server after installation on Debian systems.
| |
| If you can read this page, it means that the Apache HTTP server installed at
| |
| this site is working properly. You should <b>replace this file</b> (located at
| |
| <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
| |
| </p>
| |
|
| |
|
| |
| <p>
| |
| If you are a normal user of this web site and don't know what this page is
| |
| about, this probably means that the site is currently unavailable due to
| |
| maintenance.
| |
| If the problem persists, please contact the site's administrator.
| |
| </p>
| |
|
| |
| </div>
| |
| <div class="section_header">
| |
| <div id="changes"></div>
| |
| Configuration Overview
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Debian's Apache2 default configuration is different from the
| |
| upstream default configuration, and split into several files optimized for
| |
| interaction with Debian tools. The configuration system is
| |
| <b>fully documented in
| |
| /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
| |
| documentation. Documentation for the web server itself can be
| |
| found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
| |
| package was installed on this server.
| |
|
| |
| </p>
| |
| <p>
| |
| The configuration layout for an Apache2 web server installation on Debian systems is as follows:
| |
| </p>
| |
| <pre>
| |
| /etc/apache2/
| |
| |-- apache2.conf
| |
| | `-- ports.conf
| |
| |-- mods-enabled
| |
| | |-- *.load
| |
| | `-- *.conf
| |
| |-- conf-enabled
| |
| | `-- *.conf
| |
| |-- sites-enabled
| |
| | `-- *.conf
| |
| </pre>
| |
| <ul>
| |
| <li>
| |
| <tt>apache2.conf</tt> is the main configuration
| |
| file. It puts the pieces together by including all remaining configuration
| |
| files when starting up the web server.
| |
| </li>
| |
|
| |
| <li>
| |
| <tt>ports.conf</tt> is always included from the
| |
| main configuration file. It is used to determine the listening ports for
| |
| incoming connections, and this file can be customized anytime.
| |
| </li>
| |
|
| |
| <li>
| |
| Configuration files in the <tt>mods-enabled/</tt>,
| |
| <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
| |
| particular configuration snippets which manage modules, global configuration
| |
| fragments, or virtual host configurations, respectively.
| |
| </li>
| |
|
| |
| <li>
| |
| They are activated by symlinking available
| |
| configuration files from their respective
| |
| *-available/ counterparts. These should be managed
| |
| by using our helpers
| |
| <tt>
| |
| a2enmod,
| |
| a2dismod,
| |
| </tt>
| |
| <tt>
| |
| a2ensite,
| |
| a2dissite,
| |
| </tt>
| |
| and
| |
| <tt>
| |
| a2enconf,
| |
| a2disconf
| |
| </tt>. See their respective man pages for detailed information.
| |
| </li>
| |
|
| |
| <li>
| |
| The binary is called apache2. Due to the use of
| |
| environment variables, in the default configuration, apache2 needs to be
| |
| started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
| |
| <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
| |
| default configuration.
| |
| </li>
| |
| </ul>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="docroot"></div>
| |
| Document Roots
| |
| </div>
| |
|
| |
| <div class="content_section_text">
| |
| <p>
| |
| By default, Debian does not allow access through the web browser to
| |
| <em>any</em> file apart of those located in <tt>/var/www</tt>,
| |
| <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
| |
| directories (when enabled) and <tt>/usr/share</tt> (for web
| |
| applications). If your site is using a web document root
| |
| located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
| |
| document root directory in <tt>/etc/apache2/apache2.conf</tt>.
| |
| </p>
| |
| <p>
| |
| The default Debian document root is <tt>/var/www/html</tt>. You
| |
| can make your own virtual hosts under /var/www. This is different
| |
| to previous releases which provides better security out of the box.
| |
| </p>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="bugs"></div>
| |
| Reporting Problems
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Please use the <tt>reportbug</tt> tool to report bugs in the
| |
| Apache2 package with Debian. However, check <a
| |
| href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=apache2;repeatmerged=0"
| |
| rel="nofollow">existing bug reports</a> before reporting a new bug.
| |
| </p>
| |
| <p>
| |
| Please report bugs specific to modules (such as PHP and others)
| |
| to respective packages, not to the web server itself.
| |
| </p>
| |
| </div>
| |
|
| |
|
| |
|
| |
|
| |
| </div>
| |
| </div>
| |
| <div class="validator">
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
| biyibiyibiyi@xpi:/var/www/html $ less cat
| |
| cat: No such file or directory
| |
| biyibiyibiyi@xpi:/var/www/html $ less cat index.html
| |
| cat: No such file or directory
| |
| biyibiyibiyi@xpi:/var/www/html $ less index.html
| |
| biyibiyibiyi@xpi:/var/www/html $ type >> hello
| |
| biyibiyibiyi@xpi:/var/www/html $ type >>hello index.html
| |
| -bash: type: index.html: not found
| |
| biyibiyibiyi@xpi:/var/www/html $ echo hello >>index.html
| |
| biyibiyibiyi@xpi:/var/www/html $ ne index.html
| |
| biyibiyibiyi@xpi:/var/www/html $ ne index.html
| |
| biyibiyibiyi@xpi:/var/www/html $ cat index.html
| |
|
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| |
| <html xmlns="http://www.w3.org/1999/xhtml">
| |
| <head>
| |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| |
| <title>Apache2 Debian Default Page: It works</title>
| |
| <style type="text/css" media="screen">
| |
| * {
| |
| margin: 100px 0px 0px 0px;
| |
| padding: 0px 0px 0px 0px;
| |
| }
| |
|
| |
| body, html {
| |
| padding: 30px 3px 3px 3px;
| |
|
| |
| background-color: #D8DBE2;
| |
|
| |
| font-family: Verdana, sans-serif;
| |
| font-size: 11pt;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.main_page {
| |
| position: relative;
| |
| display: table;
| |
|
| |
| width: 800px;
| |
|
| |
| margin-bottom: 3px;
| |
| margin-left: auto;
| |
| margin-right: auto;
| |
| padding: 0px 0px 0px 0px;
| |
|
| |
| border-width: 2px;
| |
| border-color: #212738;
| |
| border-style: solid;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: center;
| |
| }
| |
|
| |
| div.page_header {
| |
| height: 99px;
| |
| width: 100%;
| |
|
| |
| background-color: #F5F6F7;
| |
| }
| |
|
| |
| div.page_header span {
| |
| margin: 15px 0px 0px 50px;
| |
|
| |
| font-size: 180%;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.page_header img {
| |
| margin: 3px 0px 0px 40px;
| |
|
| |
| border: 0px 0px 0px;
| |
| }
| |
|
| |
| div.table_of_contents {
| |
| clear: left;
| |
|
| |
| min-width: 200px;
| |
|
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item {
| |
| clear: left;
| |
|
| |
| width: 100%;
| |
|
| |
| margin: 4px 0px 0px 0px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| color: #000000;
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a {
| |
| margin: 6px 0px 0px 6px;
| |
| }
| |
|
| |
| div.content_section {
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.content_section_text {
| |
| padding: 4px 8px 4px 8px;
| |
|
| |
| color: #000000;
| |
| font-size: 100%;
| |
| }
| |
|
| |
| div.content_section_text pre {
| |
| margin: 8px 0px 8px 0px;
| |
| padding: 8px 8px 8px 8px;
| |
|
| |
| border-width: 1px;
| |
| border-style: dotted;
| |
| border-color: #000000;
| |
|
| |
| background-color: #F5F6F7;
| |
|
| |
| font-style: italic;
| |
| }
| |
|
| |
| div.content_section_text p {
| |
| margin-bottom: 6px;
| |
| }
| |
|
| |
| div.content_section_text ul, div.content_section_text li {
| |
| padding: 4px 8px 4px 16px;
| |
| }
| |
|
| |
| div.section_header {
| |
| padding: 3px 6px 3px 6px;
| |
|
| |
| background-color: #8E9CB2;
| |
|
| |
| color: #FFFFFF;
| |
| font-weight: bold;
| |
| font-size: 112%;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.section_header_red {
| |
| background-color: #CD214F;
| |
| }
| |
|
| |
| div.section_header_grey {
| |
| background-color: #9F9386;
| |
| }
| |
|
| |
| .floating_element {
| |
| position: relative;
| |
| float: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a,
| |
| div.content_section_text a {
| |
| text-decoration: none;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.table_of_contents_item a:link,
| |
| div.table_of_contents_item a:visited,
| |
| div.table_of_contents_item a:active {
| |
| color: #000000;
| |
| }
| |
|
| |
| div.table_of_contents_item a:hover {
| |
| background-color: #000000;
| |
|
| |
| color: #FFFFFF;
| |
| }
| |
|
| |
| div.content_section_text a:link,
| |
| div.content_section_text a:visited,
| |
| div.content_section_text a:active {
| |
| background-color: #DCDFE6;
| |
|
| |
| color: #000000;
| |
| }
| |
|
| |
| div.content_section_text a:hover {
| |
| background-color: #FFF;
| |
|
| |
| color: #DCDFE6;
| |
| }
| |
|
| |
| div.validator {
| |
| }
| |
| </style>
| |
| </head>
| |
| <body>
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| HELLLLLLLOOOO!
| |
| </div>
| |
|
| |
| <div class="main_page">
| |
| <div class="page_header floating_element">
| |
| <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_element"/>
| |
| <span class="floating_element">
| |
| Apache2 Debian Default Page
| |
| </span>
| |
| </div>
| |
| <!-- <div class="table_of_contents floating_element">
| |
| <div class="section_header section_header_grey">
| |
| TABLE OF CONTENTS
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#about">About</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#changes">Changes</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#scope">Scope</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#files">Config files</a>
| |
| </div>
| |
| </div>
| |
| -->
| |
| <div class="content_section floating_element">
| |
|
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| It works!
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| This is the default welcome page used to test the correct
| |
| operation of the Apache2 server after installation on Debian systems.
| |
| If you can read this page, it means that the Apache HTTP server installed at
| |
| this site is working properly. You should <b>replace this file</b> (located at
| |
| <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
| |
| </p>
| |
|
| |
|
| |
| <p>
| |
| If you are a normal user of this web site and don't know what this page is
| |
| about, this probably means that the site is currently unavailable due to
| |
| maintenance.
| |
| If the problem persists, please contact the site's administrator.
| |
| </p>
| |
|
| |
| </div>
| |
| <div class="section_header">
| |
| <div id="changes"></div>
| |
| Configuration Overview
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Debian's Apache2 default configuration is different from the
| |
| upstream default configuration, and split into several files optimized for
| |
| interaction with Debian tools. The configuration system is
| |
| <b>fully documented in
| |
| /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
| |
| documentation. Documentation for the web server itself can be
| |
| found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
| |
| package was installed on this server.
| |
|
| |
| </p>
| |
| <p>
| |
| The configuration layout for an Apache2 web server installation on Debian systems is as follows:
| |
| </p>
| |
| <pre>
| |
| /etc/apache2/
| |
| |-- apache2.conf
| |
| | `-- ports.conf
| |
| |-- mods-enabled
| |
| | |-- *.load
| |
| | `-- *.conf
| |
| |-- conf-enabled
| |
| | `-- *.conf
| |
| |-- sites-enabled
| |
| | `-- *.conf
| |
| </pre>
| |
| <ul>
| |
| <li>
| |
| <tt>apache2.conf</tt> is the main configuration
| |
| file. It puts the pieces together by including all remaining configuration
| |
| files when starting up the web server.
| |
| </li>
| |
|
| |
| <li>
| |
| <tt>ports.conf</tt> is always included from the
| |
| main configuration file. It is used to determine the listening ports for
| |
| incoming connections, and this file can be customized anytime.
| |
| </li>
| |
|
| |
| <li>
| |
| Configuration files in the <tt>mods-enabled/</tt>,
| |
| <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
| |
| particular configuration snippets which manage modules, global configuration
| |
| fragments, or virtual host configurations, respectively.
| |
| </li>
| |
|
| |
| <li>
| |
| They are activated by symlinking available
| |
| configuration files from their respective
| |
| *-available/ counterparts. These should be managed
| |
| by using our helpers
| |
| <tt>
| |
| a2enmod,
| |
| a2dismod,
| |
| </tt>
| |
| <tt>
| |
| a2ensite,
| |
| a2dissite,
| |
| </tt>
| |
| and
| |
| <tt>
| |
| a2enconf,
| |
| a2disconf
| |
| </tt>. See their respective man pages for detailed information.
| |
| </li>
| |
|
| |
| <li>
| |
| The binary is called apache2. Due to the use of
| |
| environment variables, in the default configuration, apache2 needs to be
| |
| started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
| |
| <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
| |
| default configuration.
| |
| </li>
| |
| </ul>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="docroot"></div>
| |
| Document Roots
| |
| </div>
| |
|
| |
| <div class="content_section_text">
| |
| <p>
| |
| By default, Debian does not allow access through the web browser to
| |
| <em>any</em> file apart of those located in <tt>/var/www</tt>,
| |
| <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
| |
| directories (when enabled) and <tt>/usr/share</tt> (for web
| |
| applications). If your site is using a web document root
| |
| located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
| |
| document root directory in <tt>/etc/apache2/apache2.conf</tt>.
| |
| </p>
| |
| <p>
| |
| The default Debian document root is <tt>/var/www/html</tt>. You
| |
| can make your own virtual hosts under /var/www. This is different
| |
| to previous releases which provides better security out of the box.
| |
| </p>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="bugs"></div>
| |
| Reporting Problems
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Please use the <tt>reportbug</tt> tool to report bugs in the
| |
| Apache2 package with Debian. However, check <a
| |
| href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=apache2;repeatmerged=0"
| |
| rel="nofollow">existing bug reports</a> before reporting a new bug.
| |
| </p>
| |
| <p>
| |
| Please report bugs specific to modules (such as PHP and others)
| |
| to respective packages, not to the web server itself.
| |
| </p>
| |
| </div>
| |
|
| |
|
| |
|
| |
|
| |
| </div>
| |
| </div>
| |
| <div class="validator">
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
| biyibiyibiyi@xpi:/var/www/html $ cat index.html
| |
|
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| |
| <html xmlns="http://www.w3.org/1999/xhtml">
| |
| <head>
| |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| |
| <title>Apache2 Debian Default Page: It works</title>
| |
| <style type="text/css" media="screen">
| |
| * {
| |
| margin: 100px 0px 0px 0px;
| |
| padding: 0px 0px 0px 0px;
| |
| }
| |
|
| |
| body, html {
| |
| padding: 30px 3px 3px 3px;
| |
|
| |
| background-color: #D8DBE2;
| |
|
| |
| font-family: Verdana, sans-serif;
| |
| font-size: 11pt;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.main_page {
| |
| position: relative;
| |
| display: table;
| |
|
| |
| width: 800px;
| |
|
| |
| margin-bottom: 3px;
| |
| margin-left: auto;
| |
| margin-right: auto;
| |
| padding: 0px 0px 0px 0px;
| |
|
| |
| border-width: 2px;
| |
| border-color: #212738;
| |
| border-style: solid;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: center;
| |
| }
| |
|
| |
| div.page_header {
| |
| height: 99px;
| |
| width: 100%;
| |
|
| |
| background-color: #F5F6F7;
| |
| }
| |
|
| |
| div.page_header span {
| |
| margin: 15px 0px 0px 50px;
| |
|
| |
| font-size: 180%;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.page_header img {
| |
| margin: 3px 0px 0px 40px;
| |
|
| |
| border: 0px 0px 0px;
| |
| }
| |
|
| |
| div.table_of_contents {
| |
| clear: left;
| |
|
| |
| min-width: 200px;
| |
|
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item {
| |
| clear: left;
| |
|
| |
| width: 100%;
| |
|
| |
| margin: 4px 0px 0px 0px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| color: #000000;
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a {
| |
| margin: 6px 0px 0px 6px;
| |
| }
| |
|
| |
| div.content_section {
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.content_section_text {
| |
| padding: 4px 8px 4px 8px;
| |
|
| |
| color: #000000;
| |
| font-size: 100%;
| |
| }
| |
|
| |
| div.content_section_text pre {
| |
| margin: 8px 0px 8px 0px;
| |
| padding: 8px 8px 8px 8px;
| |
|
| |
| border-width: 1px;
| |
| border-style: dotted;
| |
| border-color: #000000;
| |
|
| |
| background-color: #F5F6F7;
| |
|
| |
| font-style: italic;
| |
| }
| |
|
| |
| div.content_section_text p {
| |
| margin-bottom: 6px;
| |
| }
| |
|
| |
| div.content_section_text ul, div.content_section_text li {
| |
| padding: 4px 8px 4px 16px;
| |
| }
| |
|
| |
| div.section_header {
| |
| padding: 3px 6px 3px 6px;
| |
|
| |
| background-color: #8E9CB2;
| |
|
| |
| color: #FFFFFF;
| |
| font-weight: bold;
| |
| font-size: 112%;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.section_header_red {
| |
| background-color: #CD214F;
| |
| }
| |
|
| |
| div.section_header_grey {
| |
| background-color: #9F9386;
| |
| }
| |
|
| |
| .floating_element {
| |
| position: relative;
| |
| float: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a,
| |
| div.content_section_text a {
| |
| text-decoration: none;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.table_of_contents_item a:link,
| |
| div.table_of_contents_item a:visited,
| |
| div.table_of_contents_item a:active {
| |
| color: #000000;
| |
| }
| |
|
| |
| div.table_of_contents_item a:hover {
| |
| background-color: #000000;
| |
|
| |
| color: #FFFFFF;
| |
| }
| |
|
| |
| div.content_section_text a:link,
| |
| div.content_section_text a:visited,
| |
| div.content_section_text a:active {
| |
| background-color: #DCDFE6;
| |
|
| |
| color: #000000;
| |
| }
| |
|
| |
| div.content_section_text a:hover {
| |
| background-color: #FFF;
| |
|
| |
| color: #DCDFE6;
| |
| }
| |
|
| |
| div.validator {
| |
| }
| |
| </style>
| |
| </head>
| |
| <body>
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| HELLLLLLLOOOO!
| |
| </div>
| |
|
| |
| <div class="main_page">
| |
| <div class="page_header floating_element">
| |
| <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_element"/>
| |
| <span class="floating_element">
| |
| Apache2 Debian Default Page
| |
| </span>
| |
| </div>
| |
| <!-- <div class="table_of_contents floating_element">
| |
| <div class="section_header section_header_grey">
| |
| TABLE OF CONTENTS
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#about">About</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#changes">Changes</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#scope">Scope</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#files">Config files</a>
| |
| </div>
| |
| </div>
| |
| -->
| |
| <div class="content_section floating_element">
| |
|
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| It works!
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| This is the default welcome page used to test the correct
| |
| operation of the Apache2 server after installation on Debian systems.
| |
| If you can read this page, it means that the Apache HTTP server installed at
| |
| this site is working properly. You should <b>replace this file</b> (located at
| |
| <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
| |
| </p>
| |
|
| |
|
| |
| <p>
| |
| If you are a normal user of this web site and don't know what this page is
| |
| about, this probably means that the site is currently unavailable due to
| |
| maintenance.
| |
| If the problem persists, please contact the site's administrator.
| |
| </p>
| |
|
| |
| </div>
| |
| <div class="section_header">
| |
| <div id="changes"></div>
| |
| Configuration Overview
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Debian's Apache2 default configuration is different from the
| |
| upstream default configuration, and split into several files optimized for
| |
| interaction with Debian tools. The configuration system is
| |
| <b>fully documented in
| |
| /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
| |
| documentation. Documentation for the web server itself can be
| |
| found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
| |
| package was installed on this server.
| |
|
| |
| </p>
| |
| <p>
| |
| The configuration layout for an Apache2 web server installation on Debian systems is as follows:
| |
| </p>
| |
| <pre>
| |
| /etc/apache2/
| |
| |-- apache2.conf
| |
| | `-- ports.conf
| |
| |-- mods-enabled
| |
| | |-- *.load
| |
| | `-- *.conf
| |
| |-- conf-enabled
| |
| | `-- *.conf
| |
| |-- sites-enabled
| |
| | `-- *.conf
| |
| </pre>
| |
| <ul>
| |
| <li>
| |
| <tt>apache2.conf</tt> is the main configuration
| |
| file. It puts the pieces together by including all remaining configuration
| |
| files when starting up the web server.
| |
| </li>
| |
|
| |
| <li>
| |
| <tt>ports.conf</tt> is always included from the
| |
| main configuration file. It is used to determine the listening ports for
| |
| incoming connections, and this file can be customized anytime.
| |
| </li>
| |
|
| |
| <li>
| |
| Configuration files in the <tt>mods-enabled/</tt>,
| |
| <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
| |
| particular configuration snippets which manage modules, global configuration
| |
| fragments, or virtual host configurations, respectively.
| |
| </li>
| |
|
| |
| <li>
| |
| They are activated by symlinking available
| |
| configuration files from their respective
| |
| *-available/ counterparts. These should be managed
| |
| by using our helpers
| |
| <tt>
| |
| a2enmod,
| |
| a2dismod,
| |
| </tt>
| |
| <tt>
| |
| a2ensite,
| |
| a2dissite,
| |
| </tt>
| |
| and
| |
| <tt>
| |
| a2enconf,
| |
| a2disconf
| |
| </tt>. See their respective man pages for detailed information.
| |
| </li>
| |
|
| |
| <li>
| |
| The binary is called apache2. Due to the use of
| |
| environment variables, in the default configuration, apache2 needs to be
| |
| started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
| |
| <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
| |
| default configuration.
| |
| </li>
| |
| </ul>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="docroot"></div>
| |
| Document Roots
| |
| </div>
| |
|
| |
| <div class="content_section_text">
| |
| <p>
| |
| By default, Debian does not allow access through the web browser to
| |
| <em>any</em> file apart of those located in <tt>/var/www</tt>,
| |
| <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
| |
| directories (when enabled) and <tt>/usr/share</tt> (for web
| |
| applications). If your site is using a web document root
| |
| located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
| |
| document root directory in <tt>/etc/apache2/apache2.conf</tt>.
| |
| </p>
| |
| <p>
| |
| The default Debian document root is <tt>/var/www/html</tt>. You
| |
| can make your own virtual hosts under /var/www. This is different
| |
| to previous releases which provides better security out of the box.
| |
| </p>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="bugs"></div>
| |
| Reporting Problems
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Please use the <tt>reportbug</tt> tool to report bugs in the
| |
| Apache2 package with Debian. However, check <a
| |
| href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=apache2;repeatmerged=0"
| |
| rel="nofollow">existing bug reports</a> before reporting a new bug.
| |
| </p>
| |
| <p>
| |
| Please report bugs specific to modules (such as PHP and others)
| |
| to respective packages, not to the web server itself.
| |
| </p>
| |
| </div>
| |
|
| |
|
| |
|
| |
|
| |
| </div>
| |
| </div>
| |
| <div class="validator">
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
| biyibiyibiyi@xpi:/var/www/html $ cat index.html
| |
|
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| |
| <html xmlns="http://www.w3.org/1999/xhtml">
| |
| <head>
| |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| |
| <title>Apache2 Debian Default Page: It works</title>
| |
| <style type="text/css" media="screen">
| |
| * {
| |
| margin: 100px 0px 0px 0px;
| |
| padding: 0px 0px 0px 0px;
| |
| }
| |
|
| |
| body, html {
| |
| padding: 30px 3px 3px 3px;
| |
|
| |
| background-color: #D8DBE2;
| |
|
| |
| font-family: Verdana, sans-serif;
| |
| font-size: 11pt;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.main_page {
| |
| position: relative;
| |
| display: table;
| |
|
| |
| width: 800px;
| |
|
| |
| margin-bottom: 3px;
| |
| margin-left: auto;
| |
| margin-right: auto;
| |
| padding: 0px 0px 0px 0px;
| |
|
| |
| border-width: 2px;
| |
| border-color: #212738;
| |
| border-style: solid;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: center;
| |
| }
| |
|
| |
| div.page_header {
| |
| height: 99px;
| |
| width: 100%;
| |
|
| |
| background-color: #F5F6F7;
| |
| }
| |
|
| |
| div.page_header span {
| |
| margin: 15px 0px 0px 50px;
| |
|
| |
| font-size: 180%;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.page_header img {
| |
| margin: 3px 0px 0px 40px;
| |
|
| |
| border: 0px 0px 0px;
| |
| }
| |
|
| |
| div.table_of_contents {
| |
| clear: left;
| |
|
| |
| min-width: 200px;
| |
|
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item {
| |
| clear: left;
| |
|
| |
| width: 100%;
| |
|
| |
| margin: 4px 0px 0px 0px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| color: #000000;
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a {
| |
| margin: 6px 0px 0px 6px;
| |
| }
| |
|
| |
| div.content_section {
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.content_section_text {
| |
| padding: 4px 8px 4px 8px;
| |
|
| |
| color: #000000;
| |
| font-size: 100%;
| |
| }
| |
|
| |
| div.content_section_text pre {
| |
| margin: 8px 0px 8px 0px;
| |
| padding: 8px 8px 8px 8px;
| |
|
| |
| border-width: 1px;
| |
| border-style: dotted;
| |
| border-color: #000000;
| |
|
| |
| background-color: #F5F6F7;
| |
|
| |
| font-style: italic;
| |
| }
| |
|
| |
| div.content_section_text p {
| |
| margin-bottom: 6px;
| |
| }
| |
|
| |
| div.content_section_text ul, div.content_section_text li {
| |
| padding: 4px 8px 4px 16px;
| |
| }
| |
|
| |
| div.section_header {
| |
| padding: 3px 6px 3px 6px;
| |
|
| |
| background-color: #8E9CB2;
| |
|
| |
| color: #FFFFFF;
| |
| font-weight: bold;
| |
| font-size: 112%;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.section_header_red {
| |
| background-color: #CD214F;
| |
| }
| |
|
| |
| div.section_header_grey {
| |
| background-color: #9F9386;
| |
| }
| |
|
| |
| .floating_element {
| |
| position: relative;
| |
| float: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a,
| |
| div.content_section_text a {
| |
| text-decoration: none;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.table_of_contents_item a:link,
| |
| div.table_of_contents_item a:visited,
| |
| div.table_of_contents_item a:active {
| |
| color: #000000;
| |
| }
| |
|
| |
| div.table_of_contents_item a:hover {
| |
| background-color: #000000;
| |
|
| |
| color: #FFFFFF;
| |
| }
| |
|
| |
| div.content_section_text a:link,
| |
| div.content_section_text a:visited,
| |
| div.content_section_text a:active {
| |
| background-color: #DCDFE6;
| |
|
| |
| color: #000000;
| |
| }
| |
|
| |
| div.content_section_text a:hover {
| |
| background-color: #FFF;
| |
|
| |
| color: #DCDFE6;
| |
| }
| |
|
| |
| div.validator {
| |
| }
| |
| </style>
| |
| </head>
| |
| <body>
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| HELLLLLLLOOOO!
| |
| </div>
| |
|
| |
| <div class="main_page">
| |
| <div class="page_header floating_element">
| |
| <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_element"/>
| |
| <span class="floating_element">
| |
| Apache2 Debian Default Page
| |
| </span>
| |
| </div>
| |
| <!-- <div class="table_of_contents floating_element">
| |
| <div class="section_header section_header_grey">
| |
| TABLE OF CONTENTS
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#about">About</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#changes">Changes</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#scope">Scope</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#files">Config files</a>
| |
| </div>
| |
| </div>
| |
| -->
| |
| <div class="content_section floating_element">
| |
|
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| It works!
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| This is the default welcome page used to test the correct
| |
| operation of the Apache2 server after installation on Debian systems.
| |
| If you can read this page, it means that the Apache HTTP server installed at
| |
| this site is working properly. You should <b>replace this file</b> (located at
| |
| <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
| |
| </p>
| |
|
| |
|
| |
| <p>
| |
| If you are a normal user of this web site and don't know what this page is
| |
| about, this probably means that the site is currently unavailable due to
| |
| maintenance.
| |
| If the problem persists, please contact the site's administrator.
| |
| </p>
| |
|
| |
| </div>
| |
| <div class="section_header">
| |
| <div id="changes"></div>
| |
| Configuration Overview
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Debian's Apache2 default configuration is different from the
| |
| upstream default configuration, and split into several files optimized for
| |
| interaction with Debian tools. The configuration system is
| |
| <b>fully documented in
| |
| /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
| |
| documentation. Documentation for the web server itself can be
| |
| found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
| |
| package was installed on this server.
| |
|
| |
| </p>
| |
| <p>
| |
| The configuration layout for an Apache2 web server installation on Debian systems is as follows:
| |
| </p>
| |
| <pre>
| |
| /etc/apache2/
| |
| |-- apache2.conf
| |
| | `-- ports.conf
| |
| |-- mods-enabled
| |
| | |-- *.load
| |
| | `-- *.conf
| |
| |-- conf-enabled
| |
| | `-- *.conf
| |
| |-- sites-enabled
| |
| | `-- *.conf
| |
| </pre>
| |
| <ul>
| |
| <li>
| |
| <tt>apache2.conf</tt> is the main configuration
| |
| file. It puts the pieces together by including all remaining configuration
| |
| files when starting up the web server.
| |
| </li>
| |
|
| |
| <li>
| |
| <tt>ports.conf</tt> is always included from the
| |
| main configuration file. It is used to determine the listening ports for
| |
| incoming connections, and this file can be customized anytime.
| |
| </li>
| |
|
| |
| <li>
| |
| Configuration files in the <tt>mods-enabled/</tt>,
| |
| <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
| |
| particular configuration snippets which manage modules, global configuration
| |
| fragments, or virtual host configurations, respectively.
| |
| </li>
| |
|
| |
| <li>
| |
| They are activated by symlinking available
| |
| configuration files from their respective
| |
| *-available/ counterparts. These should be managed
| |
| by using our helpers
| |
| <tt>
| |
| a2enmod,
| |
| a2dismod,
| |
| </tt>
| |
| <tt>
| |
| a2ensite,
| |
| a2dissite,
| |
| </tt>
| |
| and
| |
| <tt>
| |
| a2enconf,
| |
| a2disconf
| |
| </tt>. See their respective man pages for detailed information.
| |
| </li>
| |
|
| |
| <li>
| |
| The binary is called apache2. Due to the use of
| |
| environment variables, in the default configuration, apache2 needs to be
| |
| started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
| |
| <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
| |
| default configuration.
| |
| </li>
| |
| </ul>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="docroot"></div>
| |
| Document Roots
| |
| </div>
| |
|
| |
| <div class="content_section_text">
| |
| <p>
| |
| By default, Debian does not allow access through the web browser to
| |
| <em>any</em> file apart of those located in <tt>/var/www</tt>,
| |
| <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
| |
| directories (when enabled) and <tt>/usr/share</tt> (for web
| |
| applications). If your site is using a web document root
| |
| located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
| |
| document root directory in <tt>/etc/apache2/apache2.conf</tt>.
| |
| </p>
| |
| <p>
| |
| The default Debian document root is <tt>/var/www/html</tt>. You
| |
| can make your own virtual hosts under /var/www. This is different
| |
| to previous releases which provides better security out of the box.
| |
| </p>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="bugs"></div>
| |
| Reporting Problems
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Please use the <tt>reportbug</tt> tool to report bugs in the
| |
| Apache2 package with Debian. However, check <a
| |
| href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=apache2;repeatmerged=0"
| |
| rel="nofollow">existing bug reports</a> before reporting a new bug.
| |
| </p>
| |
| <p>
| |
| Please report bugs specific to modules (such as PHP and others)
| |
| to respective packages, not to the web server itself.
| |
| </p>
| |
| </div>
| |
|
| |
|
| |
|
| |
|
| |
| </div>
| |
| </div>
| |
| <div class="validator">
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
| biyibiyibiyi@xpi:/var/www/html $ cat index
| |
| cat: index: No such file or directory
| |
| biyibiyibiyi@xpi:/var/www/html $ cat index.html
| |
|
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| |
| <html xmlns="http://www.w3.org/1999/xhtml">
| |
| <head>
| |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| |
| <title>Apache2 Debian Default Page: It works</title>
| |
| <style type="text/css" media="screen">
| |
| * {
| |
| margin: 100px 0px 0px 0px;
| |
| padding: 0px 0px 0px 0px;
| |
| }
| |
|
| |
| body, html {
| |
| padding: 30px 3px 3px 3px;
| |
|
| |
| background-color: #D8DBE2;
| |
|
| |
| font-family: Verdana, sans-serif;
| |
| font-size: 11pt;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.main_page {
| |
| position: relative;
| |
| display: table;
| |
|
| |
| width: 800px;
| |
|
| |
| margin-bottom: 3px;
| |
| margin-left: auto;
| |
| margin-right: auto;
| |
| padding: 0px 0px 0px 0px;
| |
|
| |
| border-width: 2px;
| |
| border-color: #212738;
| |
| border-style: solid;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: center;
| |
| }
| |
|
| |
| div.page_header {
| |
| height: 99px;
| |
| width: 100%;
| |
|
| |
| background-color: #F5F6F7;
| |
| }
| |
|
| |
| div.page_header span {
| |
| margin: 15px 0px 0px 50px;
| |
|
| |
| font-size: 180%;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.page_header img {
| |
| margin: 3px 0px 0px 40px;
| |
|
| |
| border: 0px 0px 0px;
| |
| }
| |
|
| |
| div.table_of_contents {
| |
| clear: left;
| |
|
| |
| min-width: 200px;
| |
|
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item {
| |
| clear: left;
| |
|
| |
| width: 100%;
| |
|
| |
| margin: 4px 0px 0px 0px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| color: #000000;
| |
| text-align: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a {
| |
| margin: 6px 0px 0px 6px;
| |
| }
| |
|
| |
| div.content_section {
| |
| margin: 3px 3px 3px 3px;
| |
|
| |
| background-color: #FFFFFF;
| |
|
| |
| text-align: left;
| |
| }
| |
|
| |
| div.content_section_text {
| |
| padding: 4px 8px 4px 8px;
| |
|
| |
| color: #000000;
| |
| font-size: 100%;
| |
| }
| |
|
| |
| div.content_section_text pre {
| |
| margin: 8px 0px 8px 0px;
| |
| padding: 8px 8px 8px 8px;
| |
|
| |
| border-width: 1px;
| |
| border-style: dotted;
| |
| border-color: #000000;
| |
|
| |
| background-color: #F5F6F7;
| |
|
| |
| font-style: italic;
| |
| }
| |
|
| |
| div.content_section_text p {
| |
| margin-bottom: 6px;
| |
| }
| |
|
| |
| div.content_section_text ul, div.content_section_text li {
| |
| padding: 4px 8px 4px 16px;
| |
| }
| |
|
| |
| div.section_header {
| |
| padding: 3px 6px 3px 6px;
| |
|
| |
| background-color: #8E9CB2;
| |
|
| |
| color: #FFFFFF;
| |
| font-weight: bold;
| |
| font-size: 112%;
| |
| text-align: center;
| |
| }
| |
|
| |
| div.section_header_red {
| |
| background-color: #CD214F;
| |
| }
| |
|
| |
| div.section_header_grey {
| |
| background-color: #9F9386;
| |
| }
| |
|
| |
| .floating_element {
| |
| position: relative;
| |
| float: left;
| |
| }
| |
|
| |
| div.table_of_contents_item a,
| |
| div.content_section_text a {
| |
| text-decoration: none;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| div.table_of_contents_item a:link,
| |
| div.table_of_contents_item a:visited,
| |
| div.table_of_contents_item a:active {
| |
| color: #000000;
| |
| }
| |
|
| |
| div.table_of_contents_item a:hover {
| |
| background-color: #000000;
| |
|
| |
| color: #FFFFFF;
| |
| }
| |
|
| |
| div.content_section_text a:link,
| |
| div.content_section_text a:visited,
| |
| div.content_section_text a:active {
| |
| background-color: #DCDFE6;
| |
|
| |
| color: #000000;
| |
| }
| |
|
| |
| div.content_section_text a:hover {
| |
| background-color: #FFF;
| |
|
| |
| color: #DCDFE6;
| |
| }
| |
|
| |
| div.validator {
| |
| }
| |
| </style>
| |
| </head>
| |
| <body>
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| HELLLLLLLOOOO!
| |
| </div>
| |
|
| |
| <div class="main_page">
| |
| <div class="page_header floating_element">
| |
| <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_element"/>
| |
| <span class="floating_element">
| |
| Apache2 Debian Default Page
| |
| </span>
| |
| </div>
| |
| <!-- <div class="table_of_contents floating_element">
| |
| <div class="section_header section_header_grey">
| |
| TABLE OF CONTENTS
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#about">About</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#changes">Changes</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#scope">Scope</a>
| |
| </div>
| |
| <div class="table_of_contents_item floating_element">
| |
| <a href="#files">Config files</a>
| |
| </div>
| |
| </div>
| |
| -->
| |
| <div class="content_section floating_element">
| |
|
| |
|
| |
| <div class="section_header section_header_red">
| |
| <div id="about"></div>
| |
| It works!
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| This is the default welcome page used to test the correct
| |
| operation of the Apache2 server after installation on Debian systems.
| |
| If you can read this page, it means that the Apache HTTP server installed at
| |
| this site is working properly. You should <b>replace this file</b> (located at
| |
| <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
| |
| </p>
| |
|
| |
|
| |
| <p>
| |
| If you are a normal user of this web site and don't know what this page is
| |
| about, this probably means that the site is currently unavailable due to
| |
| maintenance.
| |
| If the problem persists, please contact the site's administrator.
| |
| </p>
| |
|
| |
| </div>
| |
| <div class="section_header">
| |
| <div id="changes"></div>
| |
| Configuration Overview
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Debian's Apache2 default configuration is different from the
| |
| upstream default configuration, and split into several files optimized for
| |
| interaction with Debian tools. The configuration system is
| |
| <b>fully documented in
| |
| /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
| |
| documentation. Documentation for the web server itself can be
| |
| found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
| |
| package was installed on this server.
| |
|
| |
| </p>
| |
| <p>
| |
| The configuration layout for an Apache2 web server installation on Debian systems is as follows:
| |
| </p>
| |
| <pre>
| |
| /etc/apache2/
| |
| |-- apache2.conf
| |
| | `-- ports.conf
| |
| |-- mods-enabled
| |
| | |-- *.load
| |
| | `-- *.conf
| |
| |-- conf-enabled
| |
| | `-- *.conf
| |
| |-- sites-enabled
| |
| | `-- *.conf
| |
| </pre>
| |
| <ul>
| |
| <li>
| |
| <tt>apache2.conf</tt> is the main configuration
| |
| file. It puts the pieces together by including all remaining configuration
| |
| files when starting up the web server.
| |
| </li>
| |
|
| |
| <li>
| |
| <tt>ports.conf</tt> is always included from the
| |
| main configuration file. It is used to determine the listening ports for
| |
| incoming connections, and this file can be customized anytime.
| |
| </li>
| |
|
| |
| <li>
| |
| Configuration files in the <tt>mods-enabled/</tt>,
| |
| <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
| |
| particular configuration snippets which manage modules, global configuration
| |
| fragments, or virtual host configurations, respectively.
| |
| </li>
| |
|
| |
| <li>
| |
| They are activated by symlinking available
| |
| configuration files from their respective
| |
| *-available/ counterparts. These should be managed
| |
| by using our helpers
| |
| <tt>
| |
| a2enmod,
| |
| a2dismod,
| |
| </tt>
| |
| <tt>
| |
| a2ensite,
| |
| a2dissite,
| |
| </tt>
| |
| and
| |
| <tt>
| |
| a2enconf,
| |
| a2disconf
| |
| </tt>. See their respective man pages for detailed information.
| |
| </li>
| |
|
| |
| <li>
| |
| The binary is called apache2. Due to the use of
| |
| environment variables, in the default configuration, apache2 needs to be
| |
| started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
| |
| <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
| |
| default configuration.
| |
| </li>
| |
| </ul>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="docroot"></div>
| |
| Document Roots
| |
| </div>
| |
|
| |
| <div class="content_section_text">
| |
| <p>
| |
| By default, Debian does not allow access through the web browser to
| |
| <em>any</em> file apart of those located in <tt>/var/www</tt>,
| |
| <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
| |
| directories (when enabled) and <tt>/usr/share</tt> (for web
| |
| applications). If your site is using a web document root
| |
| located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
| |
| document root directory in <tt>/etc/apache2/apache2.conf</tt>.
| |
| </p>
| |
| <p>
| |
| The default Debian document root is <tt>/var/www/html</tt>. You
| |
| can make your own virtual hosts under /var/www. This is different
| |
| to previous releases which provides better security out of the box.
| |
| </p>
| |
| </div>
| |
|
| |
| <div class="section_header">
| |
| <div id="bugs"></div>
| |
| Reporting Problems
| |
| </div>
| |
| <div class="content_section_text">
| |
| <p>
| |
| Please use the <tt>reportbug</tt> tool to report bugs in the
| |
| Apache2 package with Debian. However, check <a
| |
| href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=apache2;repeatmerged=0"
| |
| rel="nofollow">existing bug reports</a> before reporting a new bug.
| |
| </p>
| |
| <p>
| |
| Please report bugs specific to modules (such as PHP and others)
| |
| to respective packages, not to the web server itself.
| |
| </p>
| |
| </div>
| |
|
| |
|
| |
|
| |
|
| |
| </div>
| |
| </div>
| |
| <div class="validator">
| |
| </div>
| |
| </body>
| |
| </html>
| |
|
| |
| biyibiyibiyi@xpi:/var/www/html $ ne index.html
| |
| biyibiyibiyi@xpi:/var/www/html $ wget https://pad.xpub.nl/p/xpi-html/export/txt
| |
| --2018-09-17 14:33:27-- https://pad.xpub.nl/p/xpi-html/export/txt
| |
| Resolving pad.xpub.nl (pad.xpub.nl)... 54.37.11.227
| |
| Connecting to pad.xpub.nl (pad.xpub.nl)|54.37.11.227|:443... connected.
| |
| The certificate's owner does not match hostname ‘pad.xpub.nl’
| |
| biyibiyibiyi@xpi:/var/www/html $ man wget
| |
| biyibiyibiyi@xpi:/var/www/html $ wget --no-check-certificate https://pad.xpub.nl/p/xpi-html/export/txt
| |
| --2018-09-17 14:35:18-- https://pad.xpub.nl/p/xpi-html/export/txt
| |
| Resolving pad.xpub.nl (pad.xpub.nl)... 54.37.11.227
| |
| Connecting to pad.xpub.nl (pad.xpub.nl)|54.37.11.227|:443... connected.
| |
| The certificate's owner does not match hostname ‘pad.xpub.nl’
| |
| HTTP request sent, awaiting response... 200 OK
| |
| Length: 56 [text/plain]
| |
| Saving to: ‘txt.1’
| |
|
| |
| txt.1 100%[===================>] 56 --.-KB/s in 0s
| |
|
| |
| 2018-09-17 14:35:18 (666 KB/s) - ‘txt.1’ saved [56/56]
| |
|
| |
| biyibiyibiyi@xpi:/var/www/html $
| |