home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / APACH113.ARJ / APACH113 / APACH113.ZIP / apache_1.1.3 / testing.os2 < prev   
Encoding:
Text File  |  1997-02-04  |  1.9 KB  |  61 lines

  1. Apache for OS/2 and Local Testing
  2.  
  3. For TCP/IP 2.0 or greater
  4. =========================
  5.  
  6. (including TCP/IP included with OS/2 Warp Connect or OS/2 Warp Version 4)
  7.  
  8. To do local server testing, you need to have a OS/2 TCP/IP Stack installed
  9. on your system. To set up the loopback interface you will need to execute
  10. the following:
  11.  
  12. ifconfig lo 127.0.0.1
  13.  
  14. optionally you may also need
  15.  
  16. route add default 127.0.0.1 0
  17.  
  18. Also modify your \tcpip\etc\hosts file to contain the following:
  19.  
  20. 127.0.0.1 localhost
  21.  
  22. Make sure you have 'SET ETC=\TCPIP\ETC' statement in your config.sys file.
  23.  
  24. NOTE: If you are using MPTS the steps above should reference the mptn directory
  25. instead of the tcpip directory.
  26.  
  27. Once this setup is configured, you should be able to do a 'ping 127.0.0.1'
  28. or a 'ping localhost' and get an immediate response. Once the 'ping localhost'
  29. command works, you should be able to start the Apache Web Server and use any
  30. browser running on the same machine to access Apache. Just use 'http://localhost/'
  31. as the URL.
  32.  
  33. NOTE: For TCP/IP 3.0 it may also be necessary to turn on "Look through HOSTS
  34. list before going to nameserver" on the second page of the HOSTNAMES tab in the TCP/IP
  35. Configuration notebook.
  36.  
  37. For the Internet Access Kit (IAK)
  38. =================================
  39.  
  40. (included in OS/2 Warp's Bonus Pack)
  41.  
  42. To do local server testing, you need to have the IAK installed on your system
  43. from the Bonus Pack floppies or CD-ROM. To set up the loopback interface you
  44. will need to execute the following:
  45.  
  46. ifconfig lo 127.0.0.1
  47.  
  48. optionally you may also need
  49.  
  50. route add default 127.0.0.1 0
  51.  
  52. Make sure your "ServerName" directive in HTTPD.CONF file is:
  53.  
  54. ServerName 127.0.0.1
  55.  
  56. Once this setup is configured, you should be able to do a 'ping 127.0.0.1'
  57. and get an immediate response. You should be able to start the Apache
  58. Web Server and use any browser running on the same machine to access
  59. Apache. Just use 'http://127.0.0.1/' as the URL.
  60.  
  61.