Welcome! Log In Create A New Profile

Advanced

PHP + LOCATION: how to allow anyfile and php files

Posted by jamesjara 
PHP + LOCATION: how to allow anyfile and php files
September 03, 2010 01:19PM
HI.
I got this config
[code]
location ~ ^/presidents/(.*\.*)$ {
index index.php;
alias d:lalaal_especial_root/$1;
fastcgi_pass 127.0.0.1:7771;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
[/code]

So ican open php scripts, txt files, any file, but with IMAGES OR CSS, i got a mimetype: html/text , in the case of CSS the mime should be css, image:image/jpg, how can i do that? [b](.*\.*)[/b]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready