Mudanças entre as edições de "Instalação do APACHE"
Ir para navegação
Ir para pesquisar
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada) | |||
Linha 8: | Linha 8: | ||
*Abrir arquivo: | *Abrir arquivo: | ||
#vi /etc/httpd/conf/httpd.conf | #vi /etc/httpd/conf/httpd.conf | ||
− | + | *Editar a seguinte linha: | |
− | ServerName www.exemplo.com | + | ServerName www.exemplo.com |
− | para | + | para |
− | ServerName maquina.dominio.extensão | + | ServerName maquina.dominio.extensão |
− | ex | + | ex |
− | ServerName maverick.berbigao.sj.cefetsc.edu.br | + | ServerName maverick.berbigao.sj.cefetsc.edu.br |
− | + | *Acrescentar no fim do arquivo | |
− | <IfModule mod_userdir.c> | + | <IfModule mod_userdir.c> |
UserDir public_html | UserDir public_html | ||
− | </IfModule> | + | </IfModule> |
− | loadmodule userdir_module modules/mod_userdir.so | + | loadmodule userdir_module modules/mod_userdir.so |
− | <Directory /home/*/public_html> | + | <Directory /home/*/public_html> |
AllowOverride FileInfo AuthConfig Limit | AllowOverride FileInfo AuthConfig Limit | ||
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec | Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec | ||
Linha 34: | Linha 34: | ||
Deny from all | Deny from all | ||
</LimitExcept> | </LimitExcept> | ||
− | </Directory> | + | </Directory> |
+ | |||
+ | *Iniciar, Parar e reiniciar o serviço | ||
+ | service httpd start | ||
+ | service httpd stop | ||
+ | service httpd restart |
Edição atual tal como às 21h07min de 1 de abril de 2007
Instalando o serviço Apache
- Para instalar o serviço Apache, digitar:
#urpmi apache
Editando o arquivo de configuração do serviço Apache
Editando o arquivo "httpd.conf"
- Abrir arquivo:
#vi /etc/httpd/conf/httpd.conf
- Editar a seguinte linha:
ServerName www.exemplo.com para ServerName maquina.dominio.extensão ex ServerName maverick.berbigao.sj.cefetsc.edu.br
- Acrescentar no fim do arquivo
<IfModule mod_userdir.c> UserDir public_html </IfModule>
loadmodule userdir_module modules/mod_userdir.so
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory>
- Iniciar, Parar e reiniciar o serviço
service httpd start service httpd stop service httpd restart