This section shows how to request an XHTML document from the Apache HTTP server. In the Apache HTTP server directory structure, XHTML documents must be saved in the htdocs directory. On Windows platforms, the htdocs directory resides in C:Program FilesApache GroupApache2. On Linux platforms, the htdocs directory resides in the /usr/local/httpd directory.[3] Copy the test.html document from the Chapter 19 examples directory on the book's CD-ROM into the htdocs directory. To request the document, launch a Web browser, such as Internet Explorer or Netscape, and enter the URL in the Address field (i.e., http://localhost/test.html). Figure 19.3 shows the result of requesting test.html. [Note: In Apache, the root directory of the Web server refers to the default directory, htdocs, so we do not enter the directory name before the file name (i.e., test.html) in the Address field.]
[3] Linux users may already have Apache installed by default. The htdocs directory may be found in a number of places, depending on the Linux distribution.
Figure 19.3. Requesting test.html from Apache.
Introduction to Computers, the Internet and World Wide Web
Introduction to C++ Programming
Introduction to Classes and Objects
Control Statements: Part 1
Control Statements: Part 2
Functions and an Introduction to Recursion
Arrays and Vectors
Pointers and Pointer-Based Strings
Classes: A Deeper Look, Part 1
Classes: A Deeper Look, Part 2
Operator Overloading; String and Array Objects
Object-Oriented Programming: Inheritance
Object-Oriented Programming: Polymorphism
Templates
Stream Input/Output
Exception Handling
File Processing
Class string and String Stream Processing
Web Programming
Searching and Sorting
Data Structures
Bits, Characters, C-Strings and structs
Standard Template Library (STL)
Other Topics
Appendix A. Operator Precedence and Associativity Chart
Appendix B. ASCII Character Set
Appendix C. Fundamental Types
Appendix D. Number Systems
Appendix E. C Legacy Code Topics
Appendix F. Preprocessor
Appendix G. ATM Case Study Code
Appendix H. UML 2: Additional Diagram Types
Appendix I. C++ Internet and Web Resources
Appendix J. Introduction to XHTML
Appendix K. XHTML Special Characters
Appendix L. Using the Visual Studio .NET Debugger
Appendix M. Using the GNU C++ Debugger
Bibliography