Recent Changes

2021-07-26
2021-03-17
2021-03-08
2021-03-03
2021-01-22
2021-01-21

Details on Project Web Server

This document consists of a list of modules that are installed on project web server, details on how they are configured configuration, and what to look out for when using a project web server.

DocumentRoot for Each Project

Management and building of a project web server are done on shell server (shell.osdn.net). On project web server, the following directories of the shell server will be released.

Directories that will be releasedShell Server Directory
http://<project name>.osdn.jp//home/groups/<the first letter of the project Unix name>/<the first and the second letters of the project UNIX name>/<project UNIX name>/htdocs/
http://<project name>.osdn.jp/cgi-bin//home/groups/<the first letter of the project Unix name>/<the first and the second letters of the project UNIX name>/<project UNIX name>/cgi-bin/

Installed Script Languages and Versions

On a project web server, you can use the following script languages for CGI exectution environment,.

  • perl 5.10.1
  • python 2.6.6
  • php 5.3.3
  • ruby 1.8.7

Applicable .htaccess Directives

By applying .htaccess file to each directory, you can customize the operations of the web server. You can use any directive for .htaccess except options directives.

If you want to learn how to use .httaccess file, please read Apache Tutorial.

List of Installed Apache Modules

Project web server is installed with the the following Apache modules.

  • mod_access
  • mod_actions
  • mod_alias
  • mod_auth
  • mod_autoindex
  • mod_cgi
  • mod_dir
  • mod_env
  • mod_include
  • mod_mime
  • mod_negotiation
  • mod_rewrite
  • mod_setenvif

To learn how to apply them, please read Official Documents on apache.org. Below, we'll supplement on the configuration when applied on OSDN.

mod_cgi

Please view the Dynamic Contents of Project Web Page.

mod_rewrite

Mod_rewrite is an extremely strong URL mapping tool, but there are a few things you need to be aware of when using within .htaccess.

First of all, the rewriting engine is not enabled by standard, therefore it needs to be enabled for every directory. Also, for URL rewriting within the directory, the “RewriteBase” needs to be configured all together. Please also read the apache.org Official Documents (especially the RewriteBase section.)

Here, we'll show your some simple samples.

  • Mapping http://YOURPROJ.osdn.jp/foo.html to index.html within the same diretory.

Configure .htaccess which is right under /htdocs to look like below.

RewriteEngine on
RewriteBase /
RewriteRule foo.html index.html

  • From http://yourproj.osdn.jp/docsa/ and under, even when accessed for .htm, it will show the content of .html with the same name.

Configure .htaccess of htdocs/docs to look like below.

RewriteEngine on
RewriteBase /docs
RewriteRule ^([^.]+).htm$ $1.html

  • Say there's a bulletin board that can access the target article with "/cgi-bin/bbs/bbs.cgi?no=NNN", and you want to make the article appear with the URL “/cgi-bin/bbs/articleNNN”.
RewriteEngine on
RewriteBase /cgi-bin/bbs
RewriteRule ^article([0-9]+)$ bbs.cgi?no=$1