home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / sokwatch.zip / apache.cmd < prev    next >
OS/2 REXX Batch file  |  2002-01-30  |  445b  |  16 lines

  1. /* REXX batch for starting apache */
  2.  
  3. /* The type is either 'normal' or 'ssl' */
  4. type='ssl'
  5. if type='ssl' then switch = '-D SSL'
  6. else switch = ''
  7. 'E:'
  8. 'cd \os2httpd'
  9. emxopt = value('EMXOPT',,'OS2ENVIRONMENT')
  10. if pos('-!', emxopt)=0 then 'SET EMXOPT=' || emxopt '-!0x800'
  11. 'SET TELNET.PASSWORD.ID='
  12. 'SET PASSWD='
  13. 'del logs\ssl_* >nul 2>&1'
  14. 'copy .' || type || '\*'
  15. 'E:\OS2HTTPD\HTTPD.EXE -fE:/os2httpd/conf/httpd-hroch.conf' switch
  16.