LOCALGATE LOCAL FILESYSTEM -> WWW GATEWAY ============================================================================= Copyright (C) 1997 Michael Chu This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ============================================================================= Compiling: ---------- 1) Try to compile LocalGate: ./makelocalgate This will try to detect whether or not the -lsocket option is necessary. Starting Server: ---------------- 1) Start the server: ./localgate 2) It should say: Server listening on server port [8888] 3) If it says it has an error binding to the address, try specifying a different port: Example: ./localgate 9999 This should bind to port 9999 4) Keep trying until you find a successful port. 5) Remember the port number you used. 6) NOTE: If you stop the server either by Control-C or killing it, you may have to wait a minute for the port to free itself (in the mean time it will say error binding to the address). If you do not wish to wait, you can simply specify another port. Using the Server: ----------------- 1) Remember the hostname of the machine you ran the server on. Example: mmchu.wco.com 2) Remember the port number from above. Example: 8888 2) From the client, execute a query: Example: http://mmchu.wco.com:8888/home/mmchu/public_html/index.html NOTE: This example will get the file: /home/mmchu/public_html/index.html as if I were on the server machine executing the query: file:/home/mmchu/public_html/index.html NOTE: Please use FULL PATHNAME! No ~mmchu, etc. ! Further Questions? ------------------ Email: mmchu@pobox.com