summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2011-04-05 20:24:56 +0100
committerdakkar <dakkar@thenautilus.net>2011-04-05 20:24:56 +0100
commit34fa2dcb582ce9907f79da260737ec2847298877 (patch)
treefd7f035099165d45bb68ce340e14b437a1049d94
parentmoving stuff (diff)
downloadMyShorten-34fa2dcb582ce9907f79da260737ec2847298877.tar.gz
MyShorten-34fa2dcb582ce9907f79da260737ec2847298877.tar.bz2
MyShorten-34fa2dcb582ce9907f79da260737ec2847298877.zip
apache conf
-rw-r--r--confs/apache36
1 files changed, 36 insertions, 0 deletions
diff --git a/confs/apache b/confs/apache
new file mode 100644
index 0000000..956fd31
--- /dev/null
+++ b/confs/apache
@@ -0,0 +1,36 @@
+<VirtualHost *:80>
+ DocumentRoot "/usr/local/shorten/htdocs"
+
+ <Directory "/usr/local/shorten/htdocs">
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ RewriteEngine On
+
+ RewriteCond %{HTTPS} off
+ RewriteRule ^/add$ https://xn--yet.cc/add [R=301,L]
+
+ RewriteCond %{HTTPS} off
+ RewriteRule ^/$ https://xn--yet.cc/ [R=301,L]
+
+ RewriteCond %{HTTPS} on
+ RewriteRule ^/add$ /usr/local/shorten/cgi/shorten.pl/add [H=cgi-script,L]
+
+ RewriteCond %{HTTPS} on
+ RewriteRule ^/$ /usr/local/shorten/htdocs/form.html [L]
+
+ RewriteRule ^/(.*)$ /usr/local/shorten/cgi/shorten.pl/$1 [H=cgi-script,L]
+
+
+ <IfModule peruser.c>
+ # this must match a Processor
+ ServerEnvironment apache apache
+
+ # these are optional - defaults to the values specified in httpd.conf
+ MinSpareProcessors 4
+ MaxProcessors 20
+ </IfModule>
+
+</VirtualHost>