WWW и FTP сервер для MS-DOS


Для настройки WWW и FTP сервера необходимо настроить всего несколько основных файлов.

Настраиваем HTTPD.BAT


В файле прописываем драйвер своей сетевой карты

@echo off
REM set up ethernet
d:\jnos\nos\bin\pcntpk INT=0x60 BUSTYPE=PCI IOADDR=0
rem \nos\bin\Hppclanp 0x62
REM start server
c:\jnos\nos\bin\nos.exe -fc:\jnos\nos\nos.cfg
REM when the server exits, shutdown the net
rem lh c:\jnos\nos\bin\termin 0x60
echo\

Настраиваем Autoexec.nos


в этом файле прописываем сетевой адрес и остальные параметры нашего сервера.

rem start server
hostname azsN
ip address 192.168.1.11
tcp mss 1460
tcp window 4096
tcp syn off
tcp maxwait 60000
tcp irtt 1000
tcp timer linear
ip ttl 50
isat 1
attach packet 0x60 en0 5 1500
route add 192.168.1/24 en0
rem route add 192.168.0/24 192.168.1.220
route add default en0 192.168.1.220

domain addserver 192.168.1.15
ftype image
ftptdisc 900
ftpmax 10
start ftp
в принципе и все наш сервер готов к работе.

JNOS