summarylogtreecommitdiffstats
path: root/httpd-spip.conf
blob: 12101322fc014122cb4df6962bebf7b7591e70f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#This is an example apache file for system-located spip website. The database
#and images will be located in /srv/spip/<name>, while config file will be in
#/etc/webapps/spip/<name>
# To setup the database go to http://spip.example.com/ecrire/
<VirtualHost *:80>
    ServerAdmin spip@example.com
    DocumentRoot "/usr/share/webapps/spip"
    ServerName spip.example.com
    <Directory /usr/share/webapps/spip>
      DirectoryIndex index.php index.htm index.html
      Options Indexes FollowSymLinks MultiViews Includes
      php_value open_basedir /usr/share/webapps/:/usr/lib/:/etc/webapps/spip:/srv/spip/
      AllowOverride All
      Require all granted
#If you want to have subfolders like
#http://spip.example.com/first_site/
#http://spip.example.com/second_site/
#add something like that:
#    RewriteEngine On
#    RewriteRule ^(first_site|second_site)$ /$1/ [R,L]
#    RewriteRule ^(first_site|second_site)/(.*) /$2 [QSA,L]

#A generic not garanteed (untested) catch-all:
#    RewriteCond %{REQUEST_URI} !^/(config|ecrire|IMG|prive|plugins|plugins-dist|sites|squelettes-dist|squelettes|tmp|lib|local|mutualisation)/(.*)
#    RewriteRule ^[^/]+/(.*) /$1 [QSA,L]
    </Directory>
</VirtualHost>