tailieunhanh - Webmaster's Guide to the Wireless Internet part 38

Webmaster's Guide to the Wireless Internet part 38. The Webmaster’s Guide to the Wireless Internet provides the Wireless Webmaster with all of the tools necessary to build the next generation Internet. Packed with the essential information they need to design, develop, and secure robust, e-commerce enabled wireless Web sites. This book is written for advanced Webmasters who are experienced with conventional Web site design and are now faced with the challenge of creating sites that fit on the display of a Web enabled phone or PDA | 342 Chapter 8 Wireless Enabling Your Big Bandwidth Site Adding to the File To add wireless MIME types to this Apache configuration file you first need to locate . On a Linux UNIX system the file will typically be located in usr local apache conf. On a win32 system the default Apache Web server installation will place the file in C Apache conf. Open the file using a text editor such as vi or Notepad and add the following lines text .wml application .wmlc text .wmls application .wmlsc image .wbmp text x-hdml .hdml Save your changes and then restart the Web should now be able to see your hello world WML document when you request http wap using a WML browser. Adding to the File The configuration file is used to configure many or in some cases all of the options available within the server environment. Adding the MIME types to this file allows us more flexibility as far as defining the MIME types for any individual VirtualHost running on our server. You must add the types using the AddType directive according to the following syntax AddType t ext .wml AddType application .wmlc AddType t ext .wmls AddType application .wmlsc AddType i mage .wbmp AddType text x-hdml .hdml The AddType directive can be added to any Directory or VirtualHost defined in . Appending the entries to accomplishes the same effect as adding them to . Save your changes and then restart the Web should now be able to see your WML document when you request http wap using a WML browser. Wireless Enabling Your Big Bandwidth Site Chapter 8 343 Using the .htaccess File In the event that you do not have root access to the Web server as is often the case in shared hosting environments you can define the .

TỪ KHÓA LIÊN QUAN