Diferencia entre revisiones de «VirtualHost»
De enunpimpam
(Página creada con «Category:Linux <syntaxhighlight lang="bash"> <VirtualHost *:80> ServerAdmin nacho@espaiformacio.com DocumentRoot /var/www/pimpamwiki/ ServerName wiki.enu…») |
|||
Línea 3: | Línea 3: | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerAdmin nacho@espaiformacio.com | ServerAdmin nacho@espaiformacio.com | ||
− | DocumentRoot /var/www/ | + | DocumentRoot /var/www/pimpa/ |
− | ServerName | + | ServerName tom.enunpimpam.com |
− | ServerAlias www. | + | ServerAlias www.tom.enunpimpam.com |
− | Alias / | + | Alias /pimpa "/var/www/pimpa/" |
− | <Directory /var/www/ | + | <Directory /var/www/pimpa/> |
Options +FollowSymlinks | Options +FollowSymlinks | ||
AllowOverride All | AllowOverride All | ||
Línea 15: | Línea 15: | ||
Dav off | Dav off | ||
</IfModule> | </IfModule> | ||
− | SetEnv HOME /var/www/ | + | SetEnv HOME /var/www/pimpa |
− | SetEnv HTTP_HOME /var/www/ | + | SetEnv HTTP_HOME /var/www/pimpa |
</Directory> | </Directory> | ||
− | ErrorLog ${APACHE_LOG_DIR}/ | + | ErrorLog ${APACHE_LOG_DIR}/pimpa.error.log |
− | CustomLog ${APACHE_LOG_DIR}/ | + | CustomLog ${APACHE_LOG_DIR}/pimpa.access.log combined |
</VirtualHost> </syntaxhighlight> | </VirtualHost> </syntaxhighlight> |
Revisión del 15:12 11 may 2020
<VirtualHost *:80> ServerAdmin nacho@espaiformacio.com DocumentRoot /var/www/pimpa/ ServerName tom.enunpimpam.com ServerAlias www.tom.enunpimpam.com Alias /pimpa "/var/www/pimpa/" <Directory /var/www/pimpa/> Options +FollowSymlinks AllowOverride All Require all granted <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/pimpa SetEnv HTTP_HOME /var/www/pimpa </Directory> ErrorLog ${APACHE_LOG_DIR}/pimpa.error.log CustomLog ${APACHE_LOG_DIR}/pimpa.access.log combined </VirtualHost>