Configurar Mas de un Proyecto
De CidesaWiki
(Diferencias entre revisiones)
m |
|||
| Línea 1: | Línea 1: | ||
| - | Para configurar un nuevo proyecto, para que trabaje en conjunto con el principal debes agregar la siguiente configuración en el http.conf | + | Para configurar un nuevo proyecto, para que trabaje en conjunto con el principal debes agregar la siguiente configuración en el http.conf, reemplazar los datos a continuacion dependiendo del cliente donde se vaya a instalar: |
| + | |||
| + | ip_server: 192.168.0.10 | ||
| + | dir : Iniciales del Nombre del Cliente (de) | ||
<pre> | <pre> | ||
| - | + | ServerName cidesa.sl | |
| - | + | ServerName localhost | |
| + | ServerName ip_server | ||
| + | CheckSpelling on | ||
| - | + | <VirtualHost * > | |
| - | + | ||
| - | # | + | ServerName ip_server |
| - | <Directory "/ | + | ServerName cidesa.sl |
| + | # ServerName localhost | ||
| + | |||
| + | DocumentRoot "/var/www/cidesa/dir/web" | ||
| + | DirectoryIndex autenticacion.php index.php | ||
| + | |||
| + | ########### | ||
| + | # Symfony # | ||
| + | ########### | ||
| + | Alias /sf /usr/share/php/data/symfony/web/sf | ||
| + | <Directory "/usr/share/php/data/symfony/web/sf"> | ||
AllowOverride All | AllowOverride All | ||
Allow from All | Allow from All | ||
</Directory> | </Directory> | ||
| - | + | #################### | |
| - | <Directory "/var/www/ | + | # Siga (Principal) # |
| + | #################### | ||
| + | <Directory "/var/www/cidesa/dir/web/"> | ||
| + | Options FollowSymLinks | ||
AllowOverride All | AllowOverride All | ||
Allow from All | Allow from All | ||
</Directory> | </Directory> | ||
| + | |||
| + | ####### | ||
| + | # www # | ||
| + | ####### | ||
| + | # Alias /www "/var/www/" | ||
| + | # <Directory "/var/www/"> | ||
| + | # Options Indexes MultiViews | ||
| + | # AllowOverride None | ||
| + | # Order allow,deny | ||
| + | # Allow from all | ||
| + | # </Directory> | ||
| + | |||
| + | ##################################### | ||
| + | # Presupuesto y Contabilidad (Demo) # | ||
| + | ##################################### | ||
| + | # Alias /contabilidadpresupuesto /var/www/cidesa/de_cp/ | ||
| + | # <Directory "/var/www/cidesa/de_cp/"> | ||
| + | # AllowOverride All | ||
| + | # Allow from All | ||
| + | # </Directory> | ||
| + | |||
| + | ############ | ||
| + | # REPORTES # | ||
| + | ############ | ||
| + | Alias /reportes "/var/www/cidesa/dir_reportes/" | ||
| + | <Directory "/var/www/cidesa/dir_reportes/"> | ||
| + | Options Indexes MultiViews | ||
| + | AllowOverride None | ||
| + | Order allow,deny | ||
| + | Allow from all | ||
| + | </Directory> | ||
| + | |||
| + | </VirtualHost> | ||
</pre> | </pre> | ||
Revisión de 17:27 26 sep 2007
Para configurar un nuevo proyecto, para que trabaje en conjunto con el principal debes agregar la siguiente configuración en el http.conf, reemplazar los datos a continuacion dependiendo del cliente donde se vaya a instalar:
ip_server: 192.168.0.10 dir : Iniciales del Nombre del Cliente (de)
ServerName cidesa.sl
ServerName localhost
ServerName ip_server
CheckSpelling on
<VirtualHost * >
ServerName ip_server
ServerName cidesa.sl
# ServerName localhost
DocumentRoot "/var/www/cidesa/dir/web"
DirectoryIndex autenticacion.php index.php
###########
# Symfony #
###########
Alias /sf /usr/share/php/data/symfony/web/sf
<Directory "/usr/share/php/data/symfony/web/sf">
AllowOverride All
Allow from All
</Directory>
####################
# Siga (Principal) #
####################
<Directory "/var/www/cidesa/dir/web/">
Options FollowSymLinks
AllowOverride All
Allow from All
</Directory>
#######
# www #
#######
# Alias /www "/var/www/"
# <Directory "/var/www/">
# Options Indexes MultiViews
# AllowOverride None
# Order allow,deny
# Allow from all
# </Directory>
#####################################
# Presupuesto y Contabilidad (Demo) #
#####################################
# Alias /contabilidadpresupuesto /var/www/cidesa/de_cp/
# <Directory "/var/www/cidesa/de_cp/">
# AllowOverride All
# Allow from All
# </Directory>
############
# REPORTES #
############
Alias /reportes "/var/www/cidesa/dir_reportes/"
<Directory "/var/www/cidesa/dir_reportes/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>