Fórum cPanel: Aprendendo a usar o SSH - Fórum cPanel

Ir para


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Aprendendo a usar o SSH Pergunta básica

#1 Membro offline   PR 

  • Esse é irmão!!
  • PipPipPipPipPipPip
  • Grupo: Membros
  • Posts: 342
  • Cadastrado: 11-maio 06

Posted 04 maio 2007 - 06:56

Olá,
Preciso inserir um linha no httpd.conf
Como nunca usei isto tenho uma dúvida muitooo básica.

Para isso acessei o servidor pelo SSH, editei o arquivo usando o Pico.

Preciso inserir isto:

<Directory "/home/USUARIO/public_html/loja/includes">
AllowOverride Limit
Order allow,deny
</Directory>

Então localizei a linha correspondente ao usuario no httpd.conf

<VirtualHost xxx.xx.xxx.xxx>
ServerAlias xxxxxxxxx.com
ServerAdmin webmaster@xxxxxxx.com
DocumentRoot /home/USUARIO/public_html
BytesLog domlogs/xxxxxxxxx.com-bytes_log
ServerName www.xxxxxxxxx.com
ScriptAlias /cgi-bin/ /home/USUARIO/public_html/cgi-bin/

User wwwxxxxxxxxx
Group wwwxxxxxxxxx
CustomLog /usr/local/apache/domlogs/xxxxxxxxx.com combined
</VirtualHost>

Minha Pergunta:

Devo inserir o conteúdo com < ou sem os >

<VirtualHost xxx.xx.xxx.xxx>
ServerAlias xxxxxxxxx.com
ServerAdmin webmaster@xxxxxxx.com
DocumentRoot /home/USUARIO/public_html
BytesLog domlogs/xxxxxxxxx.com-bytes_log
ServerName www.xxxxxxxxx.com
ScriptAlias /cgi-bin/ /home/USUARIO/public_html/cgi-bin/

User wwwxxxxxxxxx
Group wwwxxxxxxxxx
CustomLog /usr/local/apache/domlogs/xxxxxxxxx.com combined

<Directory "/home/USUARIO/public_html/loja/includes">
AllowOverride Limit
Order allow,deny
</Directory>
</VirtualHost>


ou assim :


<VirtualHost xxx.xx.xxx.xxx>
ServerAlias xxxxxxxxx.com
ServerAdmin webmaster@xxxxxxx.com
DocumentRoot /home/USUARIO/public_html
BytesLog domlogs/xxxxxxxxx.com-bytes_log
ServerName www.xxxxxxxxx.com
ScriptAlias /cgi-bin/ /home/USUARIO/public_html/cgi-bin/

User wwwxxxxxxxxx
Group wwwxxxxxxxxx
CustomLog /usr/local/apache/domlogs/xxxxxxxxx.com combined

Directory "/home/USUARIO/public_html/loja/includes"
AllowOverride Limit
Order allow,deny
Directory
</VirtualHost>

Obrigado
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 membro(s), 1 visitante(s), 0 membro(s) anônimo(s)