source: npl/internetserver/apache_conf/root/etc/apache2/conf.d/syn3.conf

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# DEZE FILE WORD OVERSCHREVEN BIJ NIEUWE UPDATES!
2# Syn-3 apache configuratie voor usersites en webapplicaties
3# (C)2006 DatuX
4
5RewriteOptions inherit
6RewriteEngine 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
16RewriteMap syn3vhost txt:/etc/apache2/syn3vhost.map
17RewriteCond %{REQUEST_URI} !^/syn3/.*
18RewriteCond %{REQUEST_URI} !^/error/.*
19RewriteCond ${syn3vhost:%{HTTP_HOST}} (.+)
20RewriteRule (.*) %1$1
21
22######################### Home directory websites
23# Vertaling van /syn3/user naar /home/users/user/website
24#
25RewriteRule ^/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                                                       
Note: See TracBrowser for help on using the repository browser.