Welcome! Log In Create A New Profile

Advanced

symlink in nginx problem

January 07, 2011 02:35AM
I use symlink in my perl script.
e.p.
[code]
symlink("$c->{upload_dir}/$dx/$file_code","$c->{htdocs_dir}/$rand/$file_name") || &Send("ERROR:sym_create_failed");
[/code]


It runs smooth in apache.But it aways get 500 or 504 in nginx.
here is my nginx configuration:
[code]
location ~ .*\.cgi$ {
gzip off;
fastcgi_pass 127.0.0.1:8999;
fastcgi_index index.cgi;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /home/www/website$fastcgi_script_name;
include scgi_params;
[/code]


I made my perl cgi run under www:www.
And my perl script also under www:www.

But why i always return 500 or 504 ? Is that mean symlink can't run in nginx?

Please help,best regards.
Subject Author Posted

symlink in nginx problem

soogoomoo January 07, 2011 02:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
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