archive_web_service:admin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| archive_web_service:admin [2009/04/08 23:24] – SSL Certs _dcoles | archive_web_service:admin [2026/09/27 04:06] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ====== SSL Certificate ====== | ||
| - | |||
| - | For SSL certificates there are 4 options | ||
| - | - Self signed (what Tardis has previously done) | ||
| - | - University of Edinburgh signed | ||
| - | - JANET server certificate service | ||
| - | - Other commercial CA | ||
| - | |||
| - | |||
| - | ===== JANET server certificate service ===== | ||
| - | |||
| - | Probably the best option is the [[http:// | ||
| - | |||
| - | |||
| - | ===== In progress CSR configuration file ===== | ||
| - | |||
| - | | ||
| - | # Certificate Signing Request Configuration for Tardis | ||
| - | # Based of https:// | ||
| - | # David Coles, 2009 | ||
| - | | ||
| - | [ req ] | ||
| - | default_bits = 2048 | ||
| - | prompt = no | ||
| - | encrypt_key = no | ||
| - | default_md = sha1 | ||
| - | distinguished_name = dn | ||
| - | | ||
| - | [ dn ] | ||
| - | # Country - MANDATORY | ||
| - | C = UK | ||
| - | # State/ | ||
| - | ST = Midlothian | ||
| - | # Locality - OPTIONAL | ||
| - | L = Edinburgh | ||
| - | # insert your institution name -MANDATORY | ||
| - | O = The University of Edinburgh | ||
| - | # Organisational Unit - OPTIONAL | ||
| - | OU = Tardis Project | ||
| - | # FQDN of servers - MANDATORY | ||
| - | 0.CN = tardis.ed.ac.uk. | ||
| - | 1.CN = www.tardis.ed.ac.uk. | ||
| - | 2.CN = wiki.tardis.ed.ac.uk. | ||
| - | |||
| - | |||
| - | |||
| - | ====== mod_perl ====== | ||
| - | |||
| - | '' | ||
| - | |||
| - | //We shall see...// | ||
| - | |||
| - | |||
| - | ===== Process ===== | ||
| - | |||
| - | //(for the purposes of undoing the damage)// | ||
| - | apache-modconf apache disable mod_perl | ||
| - | Also, some lines were commented out in ''/ | ||
| - | | ||
| - | ... | ||
| - | < | ||
| - | # No mod_perl available, just use CGI | ||
| - | #Action mason_example http:// | ||
| - | #< | ||
| - | #SetHandler mason_example | ||
| - | #</ | ||
| - | </ | ||
| - | ... | ||
| - | |||
| - | |||
| - | ====== Server config ====== | ||
| - | |||
| - | | ||
| - | Server version: Apache/ | ||
| - | Server built: | ||
| - | Server' | ||
| - | Server compiled with.... | ||
| - | -D EAPI | ||
| - | -D HAVE_MMAP | ||
| - | -D HAVE_SHMGET | ||
| - | -D USE_SHMGET_SCOREBOARD | ||
| - | -D USE_MMAP_FILES | ||
| - | -D HAVE_FCNTL_SERIALIZED_ACCEPT | ||
| - | -D HAVE_SYSVSEM_SERIALIZED_ACCEPT | ||
| - | -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT | ||
| - | -D DYNAMIC_MODULE_LIMIT=64 | ||
| - | -D HARD_SERVER_LIMIT=4096 | ||
| - | -D HTTPD_ROOT="/ | ||
| - | -D SUEXEC_BIN="/ | ||
| - | -D DEFAULT_PIDLOG="/ | ||
| - | -D DEFAULT_SCOREBOARD="/ | ||
| - | -D DEFAULT_LOCKFILE="/ | ||
| - | -D DEFAULT_ERRORLOG="/ | ||
| - | -D TYPES_CONFIG_FILE="/ | ||
| - | -D SERVER_CONFIG_FILE="/ | ||
| - | -D ACCESS_CONFIG_FILE="/ | ||
| - | -D RESOURCE_CONFIG_FILE="/ | ||
| - | |||
| - | |||
| - | |||
| - | ====== Tardisification stuff ====== | ||
| - | |||
| - | |||
| - | We've got a silly directory structure, so that we don't need users homedirs mounted on the webserver. Unfortunately this breaks the default debian way of doing things. To get round this we've our own apache package. | ||
| - | |||
| - | < | ||
| - | apt-get update | ||
| - | mkdir / | ||
| - | cd / | ||
| - | apt-get build-dep apache | ||
| - | apt-get source apache | ||
| - | cd apache-< | ||
| - | vim debian/ | ||
| - | </ | ||
| - | |||
| - | Then change the config args as follows (note the tardis bit, and the last line): | ||
| - | |||
| - | < | ||
| - | CONFARGS = --target=apache --with-layout=Debian \ | ||
| - | --enable-suexec --suexec-caller=www-data \ | ||
| - | --suexec-docroot=/ | ||
| - | --without-confadjust --without-execstrip \ | ||
| - | --enable-shared=max --enable-rule=SHARED_CHAIN \ | ||
| - | --enable-module=most --enable-module=status \ | ||
| - | --enable-module=auth_digest --enable-module=log_referer \ | ||
| - | --enable-module=log_agent --enable-module=auth_db \ | ||
| - | $(EXTRA_CONFARGS) \ | ||
| - | --activate-module=src/ | ||
| - | --suexec-userdir=cgi-bin | ||
| - | </ | ||
| - | Then: | ||
| - | | ||
| - | :wq | ||
| - | tardis-buildpkg publish all | ||
| - | tardis-buildrep | ||
| - | apt-get update | ||
| - | apt-get upgrade | ||
| - | |||
| - | |||
| - | |||
| - | ====== Mutex-related crashes ====== | ||
| - | |||
| - | |||
| - | We kept seeing crashes where the master apache process would die. The children would stay around answering requests for a while afterwards, making diagnosis more difficult. | ||
| - | | ||
| - | [Fri Feb 3 06:34:11 2006] [notice] SIGUSR1 received. | ||
| - | accept_mutex_on: | ||
| - | |||
| - | before the rollover, and | ||
| - | | ||
| - | [Fri Feb 3 06:34:14 2006] [error] (2)No such file or directory: mod_mime_magic: | ||
| - | [Fri Feb 3 06:34:14 2006] [notice] Apache/ | ||
| - | [Fri Feb 3 06:34:14 2006] [notice] suEXEC mechanism enabled (wrapper: / | ||
| - | [Fri Feb 3 06:34:14 2006] [notice] Accept mutex: sysvsem (Default: sysvsem) | ||
| - | [Fri Feb 3 06:34:14 2006] [alert] Child 15864 returned a Fatal error... \nApache is exiting! | ||
| - | |||
| - | afterwards. | ||
| - | |||
| - | |||
| - | |||
| - | |||
archive_web_service/admin.1239233088.txt.gz · Last modified: (external edit)
