Show quoted text 20 lines
re: source - yes I am using the same source files. I removed all of my previous files and used just the contents from the file I supplied plus the additional lines you suggested.
Explanations are good, because I do not have a good idea how this works and there is little documentation on http server application. RegisterFileLocation, AllowDefaultModule and AllowDefaultModule are not found in the chm help files and googling for them does not find anything useful. If any documentation exists, please provide a link. I would love to RTFM ("read the FINE manual").
Assuming that one module is better than two, I removed the RegisterHTTPModule('Main', TMain); &
Application.DefaultModuleName:='main'; lines, but that did not help. I was unable to get the http server to provide anything.
For this simple example, should I have two modules or should I only the default module? If using only the default module is acceptable, how would I use it?
re: the images directory - once I get this working (making an assumption), I want to have all of my images located in a secondary directory and all of my html files in the main (server root) directory.
Eventually: ImageDir := GetCurrentDir + DirectorySeparator + 'image';
Do you (or anyone) have a working example of one or two http server applications, preferable with images on the web page?
