Fala pessoal…
bom, to alterando um site feio basicamente com html e shtml…o shtml contem varias informacoes e dah um include no html q tem o conteudo da pagina…
instalei aki o IBM HTTP Server p/ rodar o site, mas qdo tento abrir no browser a pagina shtml, ele mostra o codigo fonte…mas qdo acesso o site atual, lah do servidor interno, abre normal a pagina…
alguem jah mexeu com isso??
valew
_fs
Outubro 15, 2004, 11:32am
#2
O codigo fonte é aberto porque o server não foi instruído de como parsear arquivos com essa extensão.
Mas como fazer isso nesse server que está usando não faço a menor idéia hehe
como vc faria no servidor HTTP da Apache??
_fs
Outubro 15, 2004, 12:16pm
#4
Não faço a menor idéia cara
Pra http só usei IIS na minha vida
thingol
Outubro 15, 2004, 12:22pm
#5
Google de “ibm http server” shtml configuration retornou vários links, inclusive este:
http://www.web400.com/download/HTTPServer/SixCoolThings.html
Esta página é para o AS/400 mas como a interface administrativa é semelhante…
Luca
Outubro 15, 2004, 12:27pm
#6
Olá
Edite o httpd.conf. Procurando por shtml vc encontra:[code]#
Filters allow you to process content before it is sent to the client.
To parse .shtml files for server-side includes (SSI):
(You will also need to add "Includes" to the "Options" directive.)
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml[/code]
Provavelmente no seu arquivo é preciso descomentar as 2 últimas linhas.
[]s
Luca
Luca, alterei o arquivo httpd.conf, descomentando as 2 linhas…
reiniciei o servidor, mas nao funfou…
o browser continua mostrando o source do arquivo…
mais alguma ideia??
valew
Luca
Outubro 15, 2004, 2:23pm
#8
Olá
Sim, me esqueci de dizer que precisa também incluir Includes na linha Options
Exemplo (DirectoryRoot = /var/www/html):[list]<Directory “/var/www/html”>
Possible values for the Options directive are “None”, “All”,
or any combination of:
Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Note that “MultiViews” must be named explicitly — “Options All”
doesn’t give it to you.
The Options directive is both complicated and important. Please see
for more information.
Options Indexes FollowSymLinks [b]Includes[/b]
AllowOverride controls what directives may be placed in .htaccess files.
It can be “All”, “None”, or any combination of the keywords:
Options FileInfo AuthConfig Limit
AllowOverride None
Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>[/list]E verificar se há .shtml na linha (isto não causa o problema):
AddIcon /icons/layout.gif .html .shtml .htm .pdf
[]s
Luca
valew Luca…
adicionai o Includes e funfou agora…
ate mais.