web_service
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| web_service [2009/05/16 19:57] – Quick htaccess tricks _dcoles | web_service [2026/09/26 23:56] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | // | ||
| - | |||
| - | |||
| - | ====== Usage Information ====== | ||
| - | |||
| - | The web service currently runs on [[mara]], which also hosts the disks with the web content. | ||
| - | You can find your webspace at: ''/ | ||
| - | |||
| - | This should contain two directories: | ||
| - | |||
| - | Pages can be externally accessed via http:// | ||
| - | |||
| - | **NOTE**: CGI in user directories is presently broken due to a combination of suEXEC and a non-standard hosting path. It will be fixed when we have our new webserver with Lenny installed (which comes with the apache2-suexec-custom package). | ||
| - | |||
| - | |||
| - | ===== Note on installing web applications ===== | ||
| - | |||
| - | |||
| - | Tardis is frequently crawled by web-indexing services, and hence sites hosted on Tardis are very visible to the outside world, often unexpectedly. Unmaintained galleries, blogs, etc. are frequent targets for spammers. | ||
| - | |||
| - | If you install a web-facing applicaions (eg. Gallery, etc), you **MUST**: | ||
| - | * Keep all web-facing applications on Tardis updated with the latest security patches. Subscribe to the relevant security mailing lists. | ||
| - | * Disable anonymous user input or use effective CAPTCHAs (A good option is [[http:// | ||
| - | |||
| - | While we will disable insecure applications if we find them, we cannot guarantee to. Security of Tardis services is the responsibility of **all** of the project members, and the existence of insecure applications may jeopardise the project' | ||
| - | |||
| - | |||
| - | ====== Supported Software ====== | ||
| - | |||
| - | |||
| - | |||
| - | ===== PHP ===== | ||
| - | |||
| - | Tardis (grudgingly) runs PHP4/5, and we can install extensions if you require them. | ||
| - | |||
| - | |||
| - | ===== Python ===== | ||
| - | |||
| - | There are two options for running Python scripts, **mod_python** and **mod_wsgi**. | ||
| - | |||
| - | ==== mod_python ==== | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | To enable the Publisher hander add the following to a < | ||
| - | AddHandler mod_python .py | ||
| - | PythonHandler mod_python.publisher | ||
| - | |||
| - | To enable [[http:// | ||
| - | AddHandler mod_python .psp | ||
| - | PythonHandler mod_python.psp | ||
| - | |||
| - | |||
| - | ==== mod_wsgi ==== | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | < | ||
| - | AddHandler wsgi-script .wsgi | ||
| - | </ | ||
| - | |||
| - | ===== Ruby ===== | ||
| - | |||
| - | Ruby scripts can be run using **mod_ruby**. To enable interpreting of files add the following to a < | ||
| - | |||
| - | < | ||
| - | RubyRequire apache/ | ||
| - | AddHandler ruby-object rbx | ||
| - | RubyHandler Apache:: | ||
| - | </ | ||
| - | All files that end with .rbx will now be interpreted with Ruby. | ||
| - | **NB:** The .rbx file must have the Execute bit set or else a 403 Forbidden error will occur. | ||
| - | |||
| - | |||
| - | ===== Databases ===== | ||
| - | |||
| - | MySQL and PostgreSQL are available. See: [[database_service]]. | ||
| - | |||
| - | |||
| - | ===== Web Applications ===== | ||
| - | |||
| - | Currently there are some packages which are installed site-wide on the webserver which you should be able to make use of. For these, see their individual pages for details. Any other popular Webapps should probably be manage globally if at all possible. | ||
| - | |||
| - | * [[wiki_service]] | ||
| - | * [[blog_service]] | ||
| - | |||
| - | |||
| - | ====== Useful Tricks ====== | ||
| - | |||
| - | If you're lazy and don't like case sensitivity you can add this to your < | ||
| - | # Be lenient about case | ||
| - | CheckSpelling On | ||
| - | CheckCaseOnly On | ||
| - | |||
| - | Redirecting a URL to a new location: | ||
| - | Redirect / | ||
| - | |||
| - | |||
| - | |||
| - | |||
web_service.1242503871.txt.gz · Last modified: (external edit)
