Jump to content
BulForum.com

Apache2 HEADER.php vmesto HEADER.html


exo

Recommended Posts

Zdraveite :)

 

Iskam da nakaram Apache-to da izpolzva vmesto html fail za header-a v auto index - da polzva php script.

 

Za sega opitah po niakolko nachina - bez uspeh:

 

<Directory "/files/others">

AddType application/x-httpd-php .php

Options Indexes Includes MultiViews

HeaderName HEADER.php

Order allow,deny

Allow from all

</Directory>

 

po tozi nachin ne stava - otkazva kategorichno da izpalni script-a

 

<Directory "/files/others">

AddType text/html .php

Options Indexes Includes MultiViews

HeaderName HEADER.php

Order allow,deny

Allow from all

</Directory>

 

po tozi nachin ne stava - otkazva kategorichno da izpalni script-a

 

<Directory "/files/others">

AddType text/html .php

AddOutputFilter INCLUDES .php

Options Indexes Includes MultiViews

HeaderName HEADER.php

Order allow,deny

Allow from all

</Directory>

 

po tozi nachin ne stava - vkluchva scripta kato obiknoven tekstov fail

 

Ne sam siguren dali triabva da korigiram neshto i v opciite na mod_auto_index i kakvo ?

 

Shte sam vi mnogo blagodaren ako mi pomognete kak da resha tozi problem ...

Link to comment
Share on other sites

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.php index.phtml

При мен така захапва и .хтмл .пхп

Link to comment
Share on other sites

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.php index.phtml

При мен така захапва и .хтмл .пхп

 

Mai neshto ne sam obqsnil kakto trqbva.

To e qsno che taka shte sloja index fail na direktoriata. No moiata cel e druga. Az iskam da si polzvam auto index modula i toi sam da si index-ira directoriata, no sashto taka da izpolzvam opciata che vav vsqka avtomatichno index-irana direktoria moje da se vkluchi Custom Header fail s koito naprimer da se promeni fona na stranicata cvetat na linkovete i taka natatyk.

Samo che tozi fail po princip e edna HTML stranica, a az iskam da go nakaram vmesto HTML stranica (HEADER.html) da izpalni edin PHP script (HEADER.php)

Nadqvam se sega da sam go obqsnil po-qsno :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...