PVF Server

The best server written in Java

SourceForge.net Logo

PVFServer > Users Guide | Developers Guide | Links

 

Home

 Users

 

What is PVFServer?

 

Downloads

 

User FAQ

 

Support

 Web Developers

 

General info

 

Documentation

 

Web Developer FAQ

 Server Developers

 

General info

 

Documentation

 

Server Developer FAQ

 Site Info

 

Recent News

 

Release Notes

 

Advertising

 

Submit links & news

 

License

 

Logos

HTTP Server

     The Hyper Text Transfer Protocol is used to allow other people access to your website. That's why the HTTP Server is also known as "Web Server". There are a lot of options available for configuring an HTTP Server. However here are the most important ones:

  • port : This is where people must connect to gain access to your site. The default is 80.
  • root : Here you must enter the folder that contain your site. This folder must be recognized by your operating system. Usually it is a directory in your local file system, but you can also used a network folder mapped in your local system (if your operating system support this).
  • default file : this is used to specify the file that will be send if the visitor is trying to access a folder. Think that you don't write an address like "http://www.comp.com/index.htm" instead you just write "http://www.comp.com" this means that you try to access the root folder. The server must know what file to send in this case. In the example above the default file will be "index.htm". You can enter here multiple files separated by "," . In this case the server will look for them in the order they were entered.

     This HTTP Server also supports scripts. You can use any scripts if you have a compiler or interpreter for that script. You can use standard scripting languages (like perl or php) or other nonstandard scripting languages (like bat files or sh files). For this you must create an object called "scripts" in your server and then add script handlers for all the file types that should be considered scripts.
     At this moment you can use java classes as scripts provided that they extend the "pvf.site.PVFSite" base class. At this time, support for javax.servlet was not added, but it will be added soon, without affecting the ability to run PVFSite classes.
     The server supports virtual hosts (i.e. multiple domain names mapping to the same IP address). For using this you must add to a running server an object with the name of you domain. Then you will see that you can add to that object all the options that were available to you server. Also you should know that all unknown requests will be controlled by the base server.
     Virtual directories can be used to specify directories that are mapped to other physical locations that they were expected normally or to specify security restrictions. For example you can set a virtual directory to be "private". This will cause the server to send an "Error 404" message if someone is trying to access that folder or any of its sub-folders!

 Recommended Links Recommended Links

 

      If you like PVF Server you should also visit my site http://pvf.cbi.ro.
     Here you can find some more information regarding this project, and also some things about my other projects.

Home | Users | Developers | News | Links