Changes between Version 19 and Version 20 of NikySandbox/WebExample
- Timestamp:
- 07/06/12 07:25:20 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NikySandbox/WebExample
v19 v20 24 24 [[Image(WebsrvExampleSliver.png, 50%)]] 25 25 26 In this setup, there is one host acting as a web server. To test that the webserver is up visit the web page of the Server host. To do this 26 In this setup, there is one host acting as a web server. To test that the webserver is up visit the web page of the Server host. To do this: 27 27 * either press on the (i) button in Flack and then press the Visit button 28 28 * or open a web browser and go to the webpage !http://<pcname>.emulab.net, in the above example this would be !http://pc484.emulab.net). … … 61 61 HTTP request sent, awaiting response... 200 OK 62 62 Length: 548 [text/html] 63 Saving to: “index.html .1”63 Saving to: “index.html” 64 64 65 65 100%[======================================>] 548 --.-K/s in 0s 66 66 67 2012-07-06 04:59:09 (120 MB/s) - “index.html .1” saved [548/548]67 2012-07-06 04:59:09 (120 MB/s) - “index.html” saved [548/548] 68 68 }}} 69 69 '''Note:''' In the above command we used `http://server` instead of `http://pc484.emulab.net` so that we can contact the web server over the private connection we have created, instead of the server's public interface. The private connections are the ones that are represented with lines between hosts in Flack. 70 70 71 * The above command only downloads the `index.html` file from the webserver. As we are going to see later a web page m ight consist of multiple web pages or other objects such as pictures, videos etc. In order to force wget to download all dependencies of a page use the following options :71 * The above command only downloads the `index.html` file from the webserver. As we are going to see later a web page may include other web pages or objects such as images, videos etc. In order to force wget to download all dependencies of a page use the following options : 72 72 {{{ 73 73 [inki@Client1 ~]$ wget -m -p http://server 74 74 }}} 75 This will produce a directory with the followin data structure, run:75 This will produce a directory, `server`, with the following data structure. Run: 76 76 {{{ 77 77 [inki@Client1 ~]$ ls server/