User Tools

Site Tools


django_con_apache_y_mod_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
django_con_apache_y_mod_python [10/07/2008 17:47]
fernando
django_con_apache_y_mod_python [02/05/2009 00:00] (current)
Line 63: Line 63:
  
 **NOTA:** El artículo [[http://​articles.slicehost.com/​2007/​9/​18/​apache-virtual-hosts-permissions|Apache Virtual Hosts - permissions]] explica de manera sencilla el tema de configuración de permisos en el contexto de un host virtual de Apache. Aún no entiendo bien por qué el usuario principal (es decir, el dueño de los archivos de Catalis) debería agregarse al grupo //​www-data//​. **NOTA:** El artículo [[http://​articles.slicehost.com/​2007/​9/​18/​apache-virtual-hosts-permissions|Apache Virtual Hosts - permissions]] explica de manera sencilla el tema de configuración de permisos en el contexto de un host virtual de Apache. Aún no entiendo bien por qué el usuario principal (es decir, el dueño de los archivos de Catalis) debería agregarse al grupo //​www-data//​.
 +
 +
 +
  
  
Line 81: Line 84:
 **NOTA 1:** debe reemplazarse **''/​PATH/​TO/​CATALIS''​** por el path que corresponda. **NOTA 1:** debe reemplazarse **''/​PATH/​TO/​CATALIS''​** por el path que corresponda.
  
-**NOTA 2:** El uso del puerto ​81 es sólo a modo de ejemplo. Si se opta por usar un puerto alternativo para el virtual host, posiblemente la directiva ''​Listen''​ deba moverse al archivo de configuración ''​ports.conf''​.+**NOTA 2:** El uso del puerto ​8080 es sólo a modo de ejemplo. Si se opta por usar un puerto alternativo para el virtual host, posiblemente la directiva ''​Listen''​ deba moverse al archivo de configuración ''​ports.conf'' ​(sólo aplicable a Debian/​Ubuntu?​).
  
  
Line 90: Line 93:
 # See http://​catalis.uns.edu.ar/​doku/​doku.php/​django_con_apache_y_mod_python # See http://​catalis.uns.edu.ar/​doku/​doku.php/​django_con_apache_y_mod_python
  
-Listen ​81 +Listen ​8080 
-NameVirtualHost *:81+NameVirtualHost *:8080
  
-<​VirtualHost *:81>+<​VirtualHost *:8080>
  
     # ------------------------------------------------------     # ------------------------------------------------------
     # Optional directives     # Optional directives
     # ------------------------------------------------------     # ------------------------------------------------------
-    ​#ServerName 127.0.0.1 ​(correct as appropriate)+    ServerName 127.0.0.1
     #​DocumentRoot (not needed!)     #​DocumentRoot (not needed!)
     #CustomLog     #CustomLog
Line 116: Line 119:
         # Specify which settings file is used         # Specify which settings file is used
         SetEnv DJANGO_SETTINGS_MODULE settings         SetEnv DJANGO_SETTINGS_MODULE settings
- 
-        # Change this to '​Off'​ in a production environment 
-        PythonDebug On 
  
         # Add the directory where the settings live         # Add the directory where the settings live
         PythonPath "​['/​PATH/​TO/​CATALIS/​django_files'​] + sys.path"​         PythonPath "​['/​PATH/​TO/​CATALIS/​django_files'​] + sys.path"​
 +
 +        # Change this to '​Off'​ in a production environment
 +        PythonDebug On
     </​Location>​     </​Location>​
  
Line 151: Line 154:
     </​Location>​     </​Location>​
     # Restrict access only to clients running on the same machine.     # Restrict access only to clients running on the same machine.
-    <​Directory "/​PATH/​TO/​CATALIS/​cgi-bin/">+    <​Directory "/​PATH/​TO/​CATALIS/​cgi-bin">​
         Order Deny,Allow         Order Deny,Allow
         Deny from all         Deny from all
Line 159: Line 162:
 </​VirtualHost>​ </​VirtualHost>​
 </​code>​ </​code>​
- 
- 
  
 ===== Testeo de la configuración ===== ===== Testeo de la configuración =====
  
 **TO-DO:** agregar algo aquí, p.ej. verificar que no se pueda acceder a wxis desde afuera, pero sí en forma local. **TO-DO:** agregar algo aquí, p.ej. verificar que no se pueda acceder a wxis desde afuera, pero sí en forma local.
 +
 +
  
  
Line 185: Line 188:
  
 <code apache> <code apache>
-LoadModule python_module modules/​mod_python.so''​+LoadModule python_module modules/​mod_python.so
 </​code>​ </​code>​
  
-  * Configuracion ​de Apache: ​copiar la config. sugerida en ''​conf/​extra/​catalis.conf''​; agregar ​esta linea al final de ''​conf/​httpd.conf'':​+  * Configuración ​de Apache: ​crear un archivo ​''​conf/​extra/​catalis.conf'' ​y pegar allí la configuración sugerida más arriba (haciendo los cambios apropiados). Agregar ​esta línea ​al final de ''​conf/​httpd.conf'':​
  
 <code apache> <code apache>
 Include conf/​extra/​catalis.conf Include conf/​extra/​catalis.conf
 </​code>​ </​code>​
 +
 +{{tag>​catalis desarrollo django apache}}
django_con_apache_y_mod_python.1215722834.txt.gz · Last modified: 10/07/2008 00:00 (external edit)