You are not logged in.

#1 2014-06-07 21:56:26

mfaridi
Member
Registered: 2010-12-15
Posts: 192

nginx swf dir and forbidden error

I use arch linux and install nginx from arch repo , every thing is OK, I want use nginx for use play flash game and swf game , i download many swf files and make swf directory in

/usr/share/nginx/html

and put all swf files in swf directory and after that I set 755 for swf directory and set 644 for all swf files , but when I type in browser like firefox type


http://127.0.0.1/swf

I see this error
403 Forbidden
and I can not play swf game
but when I type
http://127.0.0.1/swf/pacman.swf
every thing is good and I can flash game
what is problem ?
I set 777 ,for folder and all swf but I see that problem again and I see
403 Forbidden

Offline

#2 2014-06-08 06:38:39

slaykovsky
Member
From: Russia, Irkutsk
Registered: 2014-06-07
Posts: 3

Re: nginx swf dir and forbidden error

Hi!
Try to add

location /sfw {
    autoindex on;
}

in your nginx config.

Offline

#3 2014-06-08 21:05:17

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: nginx swf dir and forbidden error

slaykovsky wrote:

Hi!
Try to add

location /sfw {
    autoindex on;
}

in your nginx config.

I put that but I see that error again

in nginx where I must make swf directory .
I make swf directory in this path

/usr/share/nginx/html/swf

Do I have to make it in this new path

/usr/share/nginx/swf

Offline

Board footer

Powered by FluxBB