GithubHelp home page GithubHelp logo

johnroyer / central Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moztw/central

0.0 3.0 0.0 260.97 MB

MozTW Websites

Home Page: http://moztw.org/

Shell 0.01% Perl 0.09% C 0.04% PHP 95.01% CSS 1.12% JavaScript 3.60% Ruby 0.01% Python 0.05% D 0.01% OCaml 0.07%

central's Introduction

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.

central's People

Contributors

abev66 avatar anfauglir avatar bcbcarl avatar bobchao avatar bootleq avatar chonhan avatar chyuaner avatar cqd avatar dwchiang avatar hungte avatar irvin avatar j100002ben avatar johnroyer avatar kidwm avatar kourge avatar littlebtc avatar medicalwei avatar mingtsay avatar mouse170 avatar orinx avatar othree avatar petercpg avatar plumbercat avatar poying avatar rjhsiao avatar thomasysliu avatar timdream avatar tobyooo avatar toomore avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.