Topic: nginx sub-directory
==== Required information ====
- iRedMail version: 0.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: centos 6.6 php-5.4.37
- Related log if you're reporting an issue:
====
Hi Guys
I wanna add a sub-directory doc inside /var/www , and here is my configuration .it can not display any php file
can everyone help?
any help will be greatly appreciated
location /doc/ {
alias /var/www/doc/;
#root /var/www/;
index index.php index.html index.htm ;
autoindex on;
}
location ~ /doc/.+\.php.*$ {
# if ($fastcgi_script_name ~ /doc/(.+\.php.*)$) {
# set $valid_fastcgi_script_name $1;
# }
include fastcgi_params;
# fastcgi_pass php_workers;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /var/www/doc/$valid_fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.