1 | # DEZE FILE WORD OVERSCHREVEN BIJ NIEUWE UPDATES! |
---|
2 | # Syn-3 apache configuratie voor usersites en webapplicaties |
---|
3 | # (C)2006 DatuX |
---|
4 | |
---|
5 | RewriteOptions inherit |
---|
6 | RewriteEngine on |
---|
7 | |
---|
8 | #RewriteLog /tmp/rewrite.log |
---|
9 | #RewriteLogLevel 9 |
---|
10 | |
---|
11 | ######################### Virtual hosts |
---|
12 | # Vertaling van http://hostname -> /nieuwpath |
---|
13 | # Dit gebeurd doormiddel van de verwijzingen in de rewrite map file. |
---|
14 | # urls met /syn3 word expres NIET vertaald, zodat je hier altijd bij kan. |
---|
15 | # /error word ook niet vertaald uiteraard |
---|
16 | RewriteMap syn3vhost txt:/etc/apache2/syn3vhost.map |
---|
17 | RewriteCond %{REQUEST_URI} !^/syn3/.* |
---|
18 | RewriteCond %{REQUEST_URI} !^/error/.* |
---|
19 | RewriteCond ${syn3vhost:%{HTTP_HOST}} (.+) |
---|
20 | RewriteRule (.*) %1$1 |
---|
21 | |
---|
22 | ######################### Home directory websites |
---|
23 | # Vertaling van /syn3/user naar /home/users/user/website |
---|
24 | # |
---|
25 | RewriteRule ^/syn3/user/([^/]*)(.*) /home/users/$1/website$2 |
---|
26 | |
---|
27 | <Directory /home/users/*/website> |
---|
28 | #edwin: disabled php for user websites, because of posibility of cookie stealing/session reading: |
---|
29 | RemoveType application/x-httpd-php .php |
---|
30 | |
---|
31 | php_admin_value safe_mode 1 |
---|
32 | |
---|
33 | AllowOverride AuthConfig Limit |
---|
34 | Options MultiViews Indexes SymLinksIfOwnerMatch |
---|
35 | |
---|
36 | <Limit GET POST OPTIONS> |
---|
37 | Order allow,deny |
---|
38 | Allow from all |
---|
39 | </Limit> |
---|
40 | <LimitExcept GET POST OPTIONS> |
---|
41 | Order deny,allow |
---|
42 | Deny from all |
---|
43 | </LimitExcept> |
---|
44 | </Directory> |
---|
45 | |
---|
46 | ######################### CGI-bin voor syn3 webapplicaties |
---|
47 | <Directory /var/www/htdocs/syn3/*/cgi-bin> |
---|
48 | Options ExecCGI |
---|
49 | SetHandler cgi-script |
---|
50 | </Directory> |
---|
51 | |
---|
52 | ######################### syn3 webapplication settings |
---|
53 | <Directory /var/www/htdocs/syn3> |
---|
54 | AllowOverride All |
---|
55 | </Directory> |
---|
56 | |
---|
57 | |
---|