Apache (httpd.conf)
Configuração com vhosts
Categoria: Apache
Software: Apache
[ Hits: 38.700 ]
Por: Delcimar Martins
Estou postando a configuração do Apache compilado sem nenhum acréscimo. Com essa configuração você tem 3 páginas armazenadas no mesmo servidor.
##httpd.conf ServerRoot "/usr/local/apache2" Listen 80 # Dynamic Shared Object (DSO) Support #LoadModule php5_module modules/libphp5.so //ativa php se voce compilou o apache com o php <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> User uezoweb Group httpd </IfModule> </IfModule> # 'Main' server configuration #ServerName www.example.com:80 <IfModule dir_module> DirectoryIndex index.html index.htm index.php </IfModule> <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> ErrorLog "/mnt/armazena/log/apache2/error_log" LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog "/mnt/armazena/log/apache2/access_log" common </IfModule> <IfModule alias_module> ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/" </IfModule> <IfModule cgid_module> #Scriptsock logs/cgisock </IfModule> <Directory "/usr/local/apache2/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> DefaultType text/plain <IfModule mime_module> TypesConfig /etc/httpd/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz </IfModule> MIMEMagicFile /etc/httpd/magic AddType application/x-httpd-php-source phps AddType application/x-httpd-php .php .phps .html .htm # Multi-language error messages Include /etc/httpd/extra/httpd-multilang-errordoc.conf # Virtual hosts Include /etc/httpd/extra/httpd-vhosts.conf <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> ##httpd-vhosts.conf # Virtual Hosts NameVirtualHost *:80 <VirtualHost *:80> ServerName www.comp.com.br ServerAlias www.comp.br web DocumentRoot /mnt/armazena/www </VirtualHost> <VirtualHost *:80> ServerName sistema.comp.com.br ServerAlias sistema sistema.comp.com.br DocumentRoot /mnt/armazena/sistema </VirtualHost> <VirtualHost *:80> ServerName phl8.comp.com.br ServerAlias phl8 phl8.comp.com.br DocumentRoot /mnt/armazena/phl8 </VirtualHost>
Nenhum comentário foi encontrado.
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando e usando o Dconf Editor, o "regedit" para Linux
Como instalar o navegador TOR no seu Linux
Instalando Zoom Client no Ubuntu 24.04 LTS
Jogar jogos do Win 10 no Ubuntu (7)
Em que pasta/arquivo ficam as configurações das janelas em derivados d... (3)
validando quandidade de leitura no read[DUVIDA] (2)
Qual a relevancia dos valores de bogomips com os Mhz e Ghz[DUVIDA] (4)
Som parou de funcionar depois de atualizar o kernel do Slackware 15 (1)