Trabalhando com .shtml

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

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??

Não faço a menor idéia cara :expressionless:

Pra http só usei IIS na minha vida :expressionless:

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…

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

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

http://httpd.apache.org/docs-2.0/mod/core.html#options

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.