File: apache2

package info (click to toggle)
onak 0.4.1-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,096 kB
  • sloc: ansic: 9,703; perl: 277; sh: 217; makefile: 152; sql: 21
file content (23 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Brett's rough guide to onak and Apache2 on Debian:

1) create a new virtual host for apache2 as the config snippet below in
	/etc/apache2/sites-available/keyserver and symlink it in
	/etc/apache2/sites-enabled/
2) edit the /etc/apache2/ports.conf file and add Listen 11371
3) edit the /etc/apache2/sites-available/default file and change the
	NameVirtualHost and VirtualHost directives to only play with
	port 80
4) make sure that suexec is *NOT* enabled in apache2 (remove the
	suexec.load symlink from /etc/apache2/mods-enabled/ if it
	exists), this is because suexec will not run the cgi scripts
	located in the /usr/lib/cgi-bin/pks directory.
5) apache2ctl graceful
6) marvel as it all works.

Apache2 config snippet:
	<VirtualHost *:11371>
		DocumentRoot /var/lib/onak
		ScriptAlias /pks /usr/lib/cgi-bin/pks
		CustomLog /var/log/apache2/keyserver-access.log combined
		ErrorLog /var/log/apache2/keyserver-error.log
	</VirtualHost>