Displaying 11 results from an estimated 11 matches for "filesmatch".
2018 Nov 30
1
Php script not running
Hi All, I have centos 7. Apache and php are installed.
CGI runs fine - php does not seem to run.
I have the /etc/httpd/conf.d/php.conf file
php.conf
#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
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 lines to allow PHP to pretty...
2019 Dec 09
4
PHP handler for .html files - C7
..._core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
</Files>
AddType text/html .php .htm .html
DirectoryIndex index.php
<IfModule mod_php7.c>
<FilesMatch \.(php|phar|htm|hml)$>
SetHandler application/x-httpd-php
</FilesMatch>
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
</IfModule&g...
2009 Nov 14
4
php config security concern for c5
...an issue is web
apps that allow uploads into the webspace for images, pdfs, etc. if the
app assumes that anything.jpg is safe, this addhandler feature will
surprise it.
a fix is to replace two lines in /etc/httpd/conf.d/php.conf:
AddHandler php5-script .php
AddType text/html .php
with:
<FilesMatch \.php$>
SetHandler php5-script
ForceType text/html
</FilesMatch>
i have reported this upstream. hopefully they will see it as a problem
and address it.
2014 Jul 07
0
enable caching in apache
...xt/html; charset=UTF-8
Content-Length: 55548
Accept-Ranges: bytes
Date: Mon, 07 Jul 2014 20:46:32 GMT
X-Varnish: 594446632
Age: 0
Via: 1.1 varnish
Connection: close
I've tried setting these cache related directives but so far had no luck in
getting the site to be cache enabled:
#48 Hours
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
# 2 HOURS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
Head...
2008 Oct 07
6
https problems
I''m having a problem but don''t know what is causing it so I don''t know
exactly where to post, please bear with me.
I''m trying to set up https access however whenever I go to https://url_for_site
the root route renders but the url is rewritten to http://url_for_site.
The ssl request shows in the apache logs but obviously no further ssl
requests show up.
2019 Dec 09
0
PHP handler for .html files - C7
...lt;/IfModule>
> <IfModule !mod_authz_core.c>
> Order allow,deny
> Deny from all
> Satisfy All
> </IfModule>
> </Files>
> AddType text/html .php .htm .html
> DirectoryIndex index.php
> <IfModule mod_php7.c>
> <FilesMatch \.(php|phar|htm|hml)$>
> SetHandler application/x-httpd-php
> </FilesMatch>
> php_value session.save_handler "files"
> php_value session.save_path "/var/lib/php/session"
> php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache&q...
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
...er/
ProxyPassReverse / balancer://hotcluster/
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateKeyFile "/home/sasi/test.key"
SSLCACertificateFile "/home/sasi/test.cer"
SSLCertificateChainFile "/home/sasi/test1.cer"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/usr/local/apache2/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 forc...
2007 Jul 17
3
.htaccess problems..... Using Drupal
...--------------------------------------------/web/files
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
---------------------------------------/web or domain root
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch
"(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xt
mpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic...
2017 Aug 08
2
Troubleshooting php-fpm with apache on Centos 7
...;/var/webs/wwwgreekgeo/www">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Files ~ "^\.ht">
Require all denied
</Files>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
ErrorLog /var/webs/wwwgreekgeo/log/error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\"" combined...
2019 Dec 09
0
PHP handler for .html files - C7
...>
> <IfModule !mod_authz_core.c>
> Order allow,deny
> Deny from all
> Satisfy All
> </IfModule>
> </Files>
> AddType text/html .php .htm .html
> DirectoryIndex index.php
> <IfModule mod_php7.c>
> <FilesMatch \.(php|phar|htm|hml)$>
Typo: ^^^^^?
--
Leon
2007 Feb 10
3
How to prevent reading of an xml in a particular directory from browser in apache on Centos4.4
hi friends,
I have configured a HelpDesk Ticketing System on Centos4.4. The
problem I am facing is that there is a file called "site.xml" which
contains the information about database connections and I don't want
ppl to be able to read that file through browser. As per the
readme.htm of that software if the below entries will be put in
.htaccess then nobody can read the xml through