Difference between revisions of "Wii Web Server"

From WiiBrew
Jump to: navigation, search
m (Quitting)
(Changelog)
Line 114: Line 114:
 
|Very basic admin page (not yet worth looking at) at /admin<br>
 
|Very basic admin page (not yet worth looking at) at /admin<br>
 
More stable<br>
 
More stable<br>
Started to develop and intergrate [[User:Cboomf/LibHTTP]]
+
Started to develop and intergrate [[User:Cboomf/LibHTTP]]<br>
 +
Added ability to use a custom error page for any errors
 
|-
 
|-
 
|[http://downloads.sourceforge.net/wiiwebserver/wiiwebserver093.dol?use_mirror=osdn alpha v0.93]
 
|[http://downloads.sourceforge.net/wiiwebserver/wiiwebserver093.dol?use_mirror=osdn alpha v0.93]

Revision as of 15:44, 28 May 2009

Template:Infobox homebrewapp

Dev time: 82 Hours

HBC

Icon Designer
WiiWeb.png Twilt
Icon WebServer.png Vibestar
Lines WiiWebServer.png Lines

meta.xml Example

File:Wiiwebserver.zip - ZIP containing the meta.xml for alpha v0.73 and an icon.png

README

Boot using normal methods *cough* HBC *cough*. Once running, will run itself.

Quitting

To quit, press home on wiimote 1.
press yellow fret on quitar.
press c on nunchuk connected to wiimote 1.
press home on classic controller.
press A on wiimote 1.

wiiweb.xml for version alpha v0.81 - alpha v0.90

If no wiiweb.xml is found then the old method of using the wiimote can still be used.

Place your html files in /data/web/ on the root of your sd card, must be inserted before the app is loaded. Use data.zip for demo files.

In verions alpha v0.81 - alpha v0.90, in the xml (link below) a custom error page can be specified by

<?xml version="1.0"?>
<settings
404="/four04.html"
500="/five00.html"
>
</settings>

If no file is needed just put "nofile" in the place of the file path

Custom error pages

On the SD, create a folder called "error" in the /data/web folder and create pages called XXX.html where XXX is the error number for the custom page to replace, such as 404 for page not found and 500 for server errors

Directory Listing

There is no directory listing and your homepage must be called "index.html"

USB Storage

Put files on in the same directories as you would on the sd card, i.e in usb://data/web/

If, for example, your file is usb://data/web/index.html, then the link to it is /usb/index.html,
if it is linked to as /index.html, then wii web server will load the index off of the sd card in sd://data/web/index.html

HELP WANTED

I am in need of help in order to advance the wii web server to alpha v1.0
A list of things that i need help with are below :

  • Fixing undone things in the bugs section
  • A decent graphical front-end
  • A decent index-page that is automatically generated if no index.html or index.htm can be found
  • More file type support

How to submit

Because i use windblows, i am unable to use .patch files, so instead, a source file like below should be sent to me at the address listed in the bugs section, or by posting it here. It MUST be in C

/** 
Name (to be put in the credits)
What lines the fix applies to
Any notes
**/

// Start line number

Fixed code

// End line number

Note

When included in the source you will be credited on your user talk page (if exists) and the /** **/ section will be included in the source file

Changelog

Version Changes
alpha v1.00 Very basic admin page (not yet worth looking at) at /admin

More stable
Started to develop and intergrate User:Cboomf/LibHTTP
Added ability to use a custom error page for any errors

alpha v0.93 Less junk

More options of quitting to allow for more hardware choices
Now re-enabled custom 404 and 505 error pages, use is described above in readme

alpha v0.92 Can now use usb flash sticks (detailed in the readme above)
alpha v0.91 Vast speed improvements

Increased stability when using 404 and 500 errors
?? Temporarily disabled custom error pages ??
Changed from fat0:// to sd:// to fit in with new Libfat
Moved source from sourceforge cvs to sourceforge svn
More supported file types Fixed directoried ending in / not going to /index.html

alpha v0.9

wiiweb.xml v rc1

Recompiled for HBC 9 beta

Now has a sane download name

alpha v0.82

wiiweb.xml v rc1

New stipped down wiiweb.xml

Removed buggy //quit (might return later)
Now use the same method of quitting as ftpii and wiihttpd
using a threaded home button detection routine
Small code improvements and removed unused code

alpha v0.81

wiiweb.xml v b3

Uses new wiiweb.xml which causes less crashes

and //quit?password works 99% of the time.
Various bug fixes from the table below

alpha v0.8

wiiweb.xml v b2

Added threading support and management

SD code tweaks

alpha v0.77

wiiweb.xml v b2

Added custom 404 error page

Added custom 500 error page
Added custom denied error page
More //quit security checks
Solved two stability issues Uses the new wiiweb.xml

alpha v0.76

wiiweb.xml v b1

Added the option of a custom password to shut

the server remotely using //quit?password (see README)
Removed /img (old)

alpha v0.75 Removed /tux and /yak.jpg (old and deprecated)

Minor speed improvements
Date and time in the header

alpha v0.74 When //quit is requested it has to be approved by pressing A or B

Slightly shortened the time it takes to be ready after each request
Bugfixes

alpha v0.73 Security bugfixes

Added "HEAD" method support
Added space in file name support
Fixed disallowance of ../ or ./ for security
Added .bin file support
Sends server version in header

alpha v0.72 Bugfixes
alpha v0.71 Adds .wmv support

Added error 500 for server errors

alpha v0.7 Doesn't exception out when a file or page cannot be found

Will now serve a "404 Page not found" page

alpha v0.62 Fixed the infinite recursion
alpha v0.61 Removed the /a and the old testpages since they are no longer needed.

Smaller code.

alpha v0.6 Can now send any file size (thanks to joedj's ftpii write_exact function)

Ditched GRRLib to make the server smaller in size
Cleaned up the sources

alpha v0.5 Can now load any file type (those listed below) from FrontSD
alpha v0.4 Front SD html only, loading support XD (finally !!)
alpha v0.31 Favicon added
alpha v0.3 Added wiimote support

Added image support
Added /img image test link

alpha v0.24b Bug fixes for 0.24a

//a is now back to /a, but //quit is still there for other reasons

alpha v0.24a Fixed the main page hyperlink to //a
alpha v0.24 Changed /a to //a and /quit to //quit to avoid conflicts

Request parser rewritten, now quicker and more streamlined

alpha v0.23 Now doesn't have to restart the server to serve more than one page
(i.e pressing B then A)

Quitting the server is from a server path of "/quit"

alpha v0.22 Handles links
alpha v0.21 Now detects the HTTP/1.x version as requested by the browser
alpha v0.2 Now serves a built in test page

No longer needs telnet
Forced use of HTTP/1.1

alpha v0.11 Serves html to telnet (lack of http headers)

Can accept multiple connections (not at once)

alpha v0.1 Added Gamecube control menu control

Added GRRLIB logo
Added return to loader
Opens port 80
Opens a socket and allows for connection
Accepts connection on open socket at port 80

Bug fixing

If anyone has an idea or a fix then a patch (not in a .patch file) could be submitted to me by any means !!!
Preferebly @ luke dot bridges at gmail dot com

Bug Status How Fixed Priority
Directories without an ending / is not redirected to

the same url, but with a slash

Waiting Medium

File types

The following file types have proper mime types associated with them.

URL of the header file containing the file extensions supported : http://code.google.com/p/wiilibhttp/source/browse/trunk/mimes.h

Credits

This is almost community based !! :-)

Cboomf - Main code
Felix123 - SD card code
Teknecal - Threading basis, %20 handling, HEAD method routine, time in headers
Joedj - the write_exact function from ftpii
Muzer - pre-release testing
Henke37 - advise and help

Twiizers - starting the ball rolling