Zend Framework - don't have permission to access file in public -


that iframe:

<iframe allowtransparency="true" class="igm" src="/flash/dewplayer-vol.xml& amp;container=enterprise&amp;view=default&amp;lang=en&amp;country=all&amp;sanitize=0& amp;v=cb90d5949f2275bc&amp;up_ccol=%23d1dae3&amp;up_start=no& amp;up_mp3=http://www.youtube-mp3.org/get?video_id=z0fertqhwhs& h=6a29a4973a0431d2638ba3f5a1aecfeb&r=1373776845504&amp;up_loop=no& amp;libs=analytics:core:flash&amp;mid=55&amp;rpctoken=-1666220716119396559"  frameborder="0" height="400" scrolling="yes" width="500"></iframe> 

but when open page appears:

forbidden

you don't have permission access /flash/dewplayer-vol.xml&container=enterprise&view=default&lang=en&country=all&sanitize=0&v=cb90d5949f2275bc&up_ccol=#d1dae3&up_start=no&up_mp3=http://www.youtube-mp3.org/get on server.

apache/2.2.8 (win32) php/5.2.6 server @ 212.43.43.254 port 80

that httpd.conf file:

namevirtualhost *:80 <virtualhost *:80> documentroot c:\appserv\www\site\public  </virtualhost>  <directory "c:/appserv/www/site/public"> options indexes multiviews followsymlinks allowoverride order allow,deny allow </directory> 

there several step have follow in web server go throw this

1. find httpd.conf file (usually find in folder called conf, config or along lines)

2. inside httpd.conf file uncomment line loadmodule rewrite_module modules/mod_rewrite.so (remove pound '#' sign in front of line)

also find line clearmodulelist uncommented find , make sure line addmodule mod_rewrite.c not commented out.

and still have more query go link

also

if set virtual host default way, i.e.

<virtualhost *:80>    documentroot "d:/users/user/www/yourwebsite.dev/public"    servername .local     # should omitted in production environment    setenv application_env development     <directory "d:/users/user/www/yourwebsite.dev/public">        options indexes multiviews followsymlinks        allowoverride        order allow,deny        allow    </directory>  </virtualhost> 

you may access public dir, by:

http://yourwebsite.dev/ , files in public dir by:

http://yourwebsite.dev/filename.ext

it documentroot.

i hope sure you.


Comments