Skip to content

moztw/base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository of moztw.org

This is the git repository of moztw.org web sites, including static pages, forum and wiki. If you are willing to contribute, feel free to fork, modify, and send pull request.

Static Pages Local Installation

It's easy to set up static pages including home page, event pages, contribution pages, etc.

Only one requirement:

  • SSI (Server Side Include)-supported web server with Virtual Hosts enabled

Apache 2

To enable SSI on Apache is very easy on most OSes. Take Ubuntu for example, just execute a2enmod include. Then you have a SSI-ready Aapche.

The 2nd step is adding virtual host configs to your Apache configuration:

<VirtualHost *:80>
    ServerName moztw.yourdomain.name
    ServerAdmin [email protected]

    DocumentRoot /path/to/moztw/central/htdocs/
    <Directory /path/to/moztw/central/htdocs>
        Options FollowSymLinks Includes
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Restart Apache and open your browser, open http://moztw.yourdomain.name. You should now see the MozTW homepage.

Nginx

Example of site configuration with SSI module enabled:

server {
  listen 80;
  server_name moztw.yourdomain.name;

  location / {
    root /path/to/moztw/central/htdocs/;
    ssi on;
    ssi_types text/shtml;
    index index.html index.htm index.shtml index.php;
  }
}

Note that we're not running Nginx server online for now, you might encounter some problems, e.g., .htaccess feature was not supported.

Coding Style

  • Please always use LF on line ending, and set 2/4 space characters as indent according to the original style of each files.
  • Please take Mozilla Coding Style as reference.

Forum Installation

Wiki Installation

Folder Structure & Production Environment

Please refer to old README file.

About

Server configurations and automatic scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published