diff options
author | Immae | 2014-06-06 15:38:01 +0200 |
---|---|---|
committer | Immae | 2014-06-06 15:38:01 +0200 |
commit | 0227afb11eb1b31d8829a07033b296b77ee35077 (patch) | |
tree | 094b33715134a539c13ae6c8958e140406e3c1e0 /httpd-spip.conf | |
download | aur-0227afb11eb1b31d8829a07033b296b77ee35077.tar.gz |
spip
Diffstat (limited to 'httpd-spip.conf')
-rw-r--r-- | httpd-spip.conf | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/httpd-spip.conf b/httpd-spip.conf new file mode 100644 index 000000000000..c9acc84d4b6e --- /dev/null +++ b/httpd-spip.conf @@ -0,0 +1,29 @@ +#This is an example apache file for system-located spip website. The database +#and images will be located in /var/lib/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:/var/lib/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> + + |