home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / share / os2 / varios / apache / localtes.os2 < prev    next >
Encoding:
Text File  |  1996-03-23  |  1.9 KB  |  50 lines

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