This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
django_con_apache_y_mod_python [10/07/2008 18:54] 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 82: | 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'' (sólo aplicable a Debian/Ubuntu?). | + | **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 91: | 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 117: | 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 152: | 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 160: | Line 162: | ||
</VirtualHost> | </VirtualHost> | ||
</code> | </code> | ||
- | |||
- | |||
===== Testeo de la configuración ===== | ===== Testeo de la configuración ===== | ||
Line 196: | Line 196: | ||
Include conf/extra/catalis.conf | Include conf/extra/catalis.conf | ||
</code> | </code> | ||
+ | |||
+ | {{tag>catalis desarrollo django apache}} |