Wednesday, June 25, 2008

The Web Server


Now that it is possible to have your PSP access the IP address of your choosing, it's time to set up a web server from which you can serve your custom web portal.

Like the DNS server, the first step is to install a web server on your computer. If you're using a Mac, you can turn on the preinstalled Apache web server by going into System Preferences, clicking the Sharing icon, and checking the box next to "Personal Web Sharing." If you're using Windows or Unix, you will need to install a web server such as Apache (Version 2 suggested). Apache is an open source web server that powers many commercial web sites. It can be downloaded at http://httpd.apache.org/download.cgi. If you're using Windows, you will want to download the .msi install package and follow the instructions that come with it. If installing Apache in a Unix environment, you may be able to find a precompiled install package for your distribution. Otherwise, you'll have to compile the source code yourself and continue installation from there.

Like DNS servers, there are many web servers available. Also, if you have one already installed, there is no reason to install another.

When the PSP makes a request from Wipeout Pure, it asks for the /wipeout/index.html file. So what we must now do is create a file named index.html and place it where the PSP can access it.

Use this html file

Next, you need to create a directory called "wipeout" in your web server's root directory. On a Mac, the root directory will be /Library/WebServer/Documents, so you will create the directory /Library/WebServer/Documents/wipeout (this is not to be confused with the Library folder in your home directory). If you installed Apache in Windows, you will want to create the directory in C:\Program Files\Apache Group\Apache2\htdocs. Then, simply place index.html in the wipeout directory.

If you are using Apache in Unix, or are using another web server, consult the server's documentation to identify the root folder from which web pages are being served.

That's it! Now you can test it using your PSP.

No comments: