static files with .php extension...
Added by jdmls over 14 years ago
Hi,
I have an issue with static files with .php extension...
I have one lighttpd (1.4.22-2) that keeps returning a 403 when I try to download a .php file.
I just installed a new lighttpd (1.4.28-1) on another server and it works fine (I can download the .php file)...
Here's the conf from the one that returns 403s:
server.modules = ( "mod_access", "mod_accesslog" ) server.document-root = "/VOLUME" index-file.names = ( "index.html" ) mimetype.assign = ( ".rpm" => "application/x-rpm", ".pdf" => "application/pdf", ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", ".class" => "application/octet-stream", ".ps" => "application/postscript", ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", ".gz" => "application/x-gzip", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", ".zip" => "application/zip", ".mp3" => "audio/mpeg", ".m3u" => "audio/x-mpegurl", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", ".ogg" => "application/ogg", ".wav" => "audio/x-wav", ".gif" => "image/gif", ".jar" => "application/x-java-archive", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", ".cpp" => "text/plain", ".log" => "text/plain", ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", ".php" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml", ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", ".avi" => "video/x-msvideo", ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", ".wmv" => "video/x-ms-wmv", ".bz2" => "application/x-bzip", ".tbz" => "application/x-bzip-compressed-tar", ".tar.bz2" => "application/x-bzip-compressed-tar", # default mime type "" => "application/octet-stream", ) server.errorlog = "/LOG/lighttpd/error.log" accesslog.filename = "/LOG/lighttpd/access.log" #url.access-deny = ( "~", ".inc" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } server.port = 888 server.pid-file = "/var/run/lighttpd.pid" server.username = "nobody" server.groupname = "nobody"
I tried adding php to the mime section, but no luck...
Is it a version issue?
Which parameters should I check/add...?
Thx,
JD
Replies (2)
RE: static files with .php extension... - Added by icy over 14 years ago
The static-file.exclude-extensions setting by default includes ".php" to prevent sending out the sourcecode, a security feature.
RE: static files with .php extension... - Added by jdmls over 14 years ago
Found out the reload option was not working...
A restart solved the problem.