Commits

Juan BC committed 6ff2c55

new structure

Comments (0)

Files changed (8)

apache-config/trex

+<VirtualHost 127.0.0.7:80>
+
+    DocumentRoot /var/www/trex/
+
+    # Configuración del core de WSGI
+    WSGIDaemonProcess python user=www-data group=www-data processes=1 threads=25
+
+    # Definición del dispacher o aplicación de WSGI
+    WSGIScriptAlias / /var/www/trex/dispatcher.py
+
+    WSGIReloadMechanism Process
+
+    <Directory /var/www/trex>
+        AddHandler wsgi-script .py
+        #Order allow,deny
+        #Allow from all
+    </Directory>
+
+    AddDefaultCharset utf-8
+    ServerSignature On
+    LogLevel info
+
+    ErrorLog /var/www/trex/logs/error.log
+
+</VirtualHost>
+
+<!--
+        sin título.html
+
+        Copyright 2011 JB Cabral <juan@tarado>
+
+        This program is free software; you can redistribute it and/or modify
+        it under the terms of the GNU General Public License as published by
+        the Free Software Foundation; either version 2 of the License, or
+        (at your option) any later version.
+
+        This program is distributed in the hope that it will be useful,
+        but WITHOUT ANY WARRANTY; without even the implied warranty of
+        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+        GNU General Public License for more details.
+
+        You should have received a copy of the GNU General Public License
+        along with this program; if not, write to the Free Software
+        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+        MA 02110-1301, USA.
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+
+<head>
+    <title>sin título</title>
+    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
+    <meta name="generator" content="Geany 0.20" />
+    <python id="dddd">
+        echo("dd")
+    </python> jjj
+</head>
+
+<body>
+
+        <python id="1">
+            <python></python>
+            import random
+            import datetime
+            echo(random.randint(0, 99))
+            print("hola")
+            #APP.algo = 1
+        </python>
+
+        <python>
+            # 2
+            #echo(APP.algo)
+            echo(random)
+            class A:
+                pass
+            echo( A())
+
+
+        </python>
+        <br/>
+        <br/>
+        Son las <python> echo(datetime.datetime.now().strftime("%H:%M:%S")) </python> HS
+
+</body>
+
+</html>
+<h1>It Works</h1>

trex/apache-config/trex

-<VirtualHost 127.0.0.7:80>
-
-    DocumentRoot /var/www/trex/
-
-    # Configuración del core de WSGI
-    WSGIDaemonProcess python user=www-data group=www-data processes=1 threads=25
-
-    # Definición del dispacher o aplicación de WSGI
-    WSGIScriptAlias / /var/www/trex/dispatcher.py
-
-    WSGIReloadMechanism Process
-
-    <Directory /var/www/trex>
-        AddHandler wsgi-script .py
-        #Order allow,deny
-        #Allow from all
-    </Directory>
-
-    AddDefaultCharset utf-8
-    ServerSignature On
-    LogLevel info
-
-    ErrorLog /var/www/trex/logs/error.log
-
-</VirtualHost>
-

trex/logs/error.log

-

trex/test/coso.html

-<!--
-        sin título.html
-
-        Copyright 2011 JB Cabral <juan@tarado>
-
-        This program is free software; you can redistribute it and/or modify
-        it under the terms of the GNU General Public License as published by
-        the Free Software Foundation; either version 2 of the License, or
-        (at your option) any later version.
-
-        This program is distributed in the hope that it will be useful,
-        but WITHOUT ANY WARRANTY; without even the implied warranty of
-        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-        GNU General Public License for more details.
-
-        You should have received a copy of the GNU General Public License
-        along with this program; if not, write to the Free Software
-        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-        MA 02110-1301, USA.
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-
-<head>
-    <title>sin título</title>
-    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
-    <meta name="generator" content="Geany 0.20" />
-    <python id="dddd">
-        echo("dd")
-    </python> jjj
-</head>
-
-<body>
-
-        <python id="1">
-            <python></python>
-            import random
-            import datetime
-            echo(random.randint(0, 99))
-            print("hola")
-            #APP.algo = 1
-        </python>
-
-        <python>
-            # 2
-            #echo(APP.algo)
-            echo(random)
-            class A:
-                pass
-            echo( A())
-
-
-        </python>
-        <br/>
-        <br/>
-        Son las <python> echo(datetime.datetime.now().strftime("%H:%M:%S")) </python> HS
-
-</body>
-
-</html>

trex/test/index.html

-<h1>It Works</h1>