Changeset 61 in Main for trunk/Server
- Timestamp:
- Sep 18, 2024, 9:45:02 PM (2 months ago)
- Location:
- trunk/Server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/config.c
r39 r61 233 233 current->sslcert = cm_strdup(r[1]); 234 234 } 235 } else if(cm_strcaseequ(r[0], "ServerRoot")) { 236 if(r[1] == NULL) { 237 cm_log("Config", "Missing path at line %d", ln); 238 stop = 1; 239 } else { 240 chdir(r[1]); 241 } 235 242 } else if(cm_strcaseequ(r[0], "DocumentRoot")) { 236 243 if(r[1] == NULL) { -
trunk/Server/install.nsi
r60 r61 14 14 CreateDirectory "$INSTDIR\www" 15 15 CreateDirectory "$INSTDIR\www\icons" 16 CreateDirectory "$INSTDIR\modules" 16 17 CreateDirectory "$INSTDIR\bin" 18 SetOutPath "$INSTDIR" 19 File /oname=LICENSE.txt "../LICENSE" 17 20 SetOutPath "$INSTDIR\bin" 18 21 File "tewi.exe" 22 SetOutPath "$INSTDIR\modules" 23 File "../Module/*.dll" 19 24 SetOutPath "$INSTDIR\etc" 20 File /oname=tewi.conf.default "../example-win.conf" 25 SetOverWrite off 26 File /oname=tewi.conf "../example-win.conf" 21 27 SetOutPath "$INSTDIR\www" 22 28 File /oname=index.html "../itworks.html" 23 29 SetOutPath "$INSTDIR\www\icons" 24 30 File "../Icons/*.png" 31 SetOverWrite on 25 32 26 33 CreateDirectory "$SMPROGRAMS\Tewi HTTPd" 34 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\License.lnk" "$INSTDIR\LICENSE.txt" "" 27 35 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" "" 28 36 CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd (verbose).lnk" "$INSTDIR\bin\tewi.exe" "-v" … … 33 41 34 42 WriteUninstaller "$INSTDIR\uninstall.exe" 35 36 MessageBox MB_ICONEXCLAMATION|MB_OK "Example config is installed as $INSTDIR\etc\tewi.conf.default,$\r$\nBut Tewi HTTPd will try to use $INSTDIR\etc\tewi.conf."37 43 SectionEnd 38 44 -
trunk/Server/server.c
r60 r61 483 483 } else if(S_ISDIR(st.st_mode)) { 484 484 if(req.path[strlen(req.path) - 1] != '/') { 485 cm_log("Server", "Accessing directory without the slash at the end"); 485 486 char* headers[3] = {"Location", cm_strcat(req.path, "/"), NULL}; 486 487 _tw_process_page(s, sock, tw_http_status(308), NULL, NULL, NULL, 0, headers, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.