Requirement
- To do this homework , you need 2 domain name.
- http://twbbs.org/
- http://www.nctucs.net/
- You need two hostnames use same IP address.
- When access http://yourdomain1, it will show the php information.
- When access http://yourdomain1/sademo.html, it will show the text “This page is for sa demo.”.
- Notice that user can use both http and https portocal to access this page.
- When access http://yourdomain1/private/, user need enter id "nctucs" and password "sahw4" which is implemented by .htaccess. And it will show the text “It’s my secret.”
- System user sysadm can put file at ~/WWW/ and others can access it by visiting http://yourdomain1/~sysadm/. sysadm's password is your student id.
- Your git website url is http://yourdomain2/gitweb
- For demo, you need to put a git repository named “sademo.git”. And it’s decription is “This repository is for sa demo.”.
- On your website, enter the sademo.git will show URL information, it’s URL is http://yourdomain2/gitweb/sademo.git.
- You can clone and push your repository by http://yourdomain2/gitweb/sademo.git and password is your student id.
- Users use cookie authentication when access your phpMyAdmin site http://yourdomain1/phpMyAdmin/
- (You need to add a MySQL user for authentication).
- Create another user with limited privilege
- And notice that if others access http://yourdomain2/phpMyAdmin/, they can not access it.
- Only 140.113.*.* can access it
- But 140.113.235.* can’t access it
- Redirect http://yourdomain1/ILoveSA to http://help.cs.nctu.edu.tw/
- But http://yourdomain2/ILoveSA will not redirect .