]> Creatis software - creaWT.git/blobdiff - wt/data/infoConf_server_fcgi/fastcgi-wt.conf
#Fast CGI configuration
[creaWT.git] / wt / data / infoConf_server_fcgi / fastcgi-wt.conf
diff --git a/wt/data/infoConf_server_fcgi/fastcgi-wt.conf b/wt/data/infoConf_server_fcgi/fastcgi-wt.conf
new file mode 100644 (file)
index 0000000..573ba11
--- /dev/null
@@ -0,0 +1,29 @@
+<IfModule mod_fcgid.c>
+    NameVirtualHost *:80
+    # [+] For debugging.
+    FcgidMaxProcesses 30
+    # [-] For debugging.
+    <VirtualHost *:80>
+        # Add this servername into the /etc/hosts file.
+        ServerName www.testwtdbg.com
+        ServerAlias testwtdbg.com
+        DocumentRoot /var/www/testwtdbg/docroot
+        AddHandler fcgid-script wt
+        DirectoryIndex testwtdbg.wt
+        <Directory /var/www/testwtdbg/docroot>
+            Order Deny,Allow
+            Allow from all
+            Options +ExecCGI -Indexes
+        </Directory>
+        FcgidInitialEnv WT_APP_ROOT /var/www/testwtdbg/approot/
+
+        # [+] For debugging.
+        # Increase timeout of application process for debugging.
+        FcgidIOTimeout 300
+        FcgidConnectTimeout 300
+        # Reduce the number of processes spawned to 1 so that it is easy for debugging.
+        FcgidMaxProcessesPerClass 1
+        FcgidMinProcessesPerClass 1
+        # [-] For debugging.
+    </VirtualHost>
+</IfModule>