Portál AbcLinuxu, 15. července 2025 01:34
# # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # LoadModule php5_module modules/libphp5.so # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following line to allow PHP to pretty-print .phps # files as PHP source code: # #AddType application/x-httpd-php-source .phpsPotřebuju, aby se mi soubory .php.html chovaly jako běžné html soubory. Jedná se totiž o html dokumentaci k PHP programu. Předem děkuji za vaše rady.
Řešení dotazu:
DirectoryIndex index.php index.php.html index.htmlBrano v poradi, bere prvni co nalezne.. NN
Filenames may have multiple extensions and the extension argument will be compared against each of them.Takže asi jedině přejmenovat soubory.
Nebo zkusit tohle: http://httpd.apache.org/docs/2.2/mod/mod_mime.html#multipleext
<FilesMatch \.cgi$> SetHandler cgi-script </FilesMatch>
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.