Welcome! Log In Create A New Profile


problem moving to nginx

Posted by flambunch 
problem moving to nginx
July 20, 2016 12:36AM
Hi all , just getting my head around Nginx

i have just moved some pages from a apachi hosted server onto my nginx install

one page contains the php code

<div id="sectionB">
<object data="<?echo $row->doc;?>"

in the apachi server this would open a frame and display the pdf file for which the URL was in $row (offsite url if thats significant)

in nginx .... nothing , no content, no frame , nada

do i maby need some lines in sites-availiable or something?

Thanks for any light anyone can shed on possible reasons :)
Re: problem moving to nginx
July 20, 2016 07:04PM
hi again : just refining the problem a bit

Nginx is serving the pdf's fine if they are in there in the folder
<object data="foo.pdf"

but refuses to do this
<object data="http//:somevalidoffsiteurl.com/foo.pdf"

so howcome?
the code worked fine on the apachi server and everything else works good
there are no relevant errors in server-errors.log


Edited 2 time(s). Last edit at 07/20/2016 07:06PM by flambunch.
Re: problem moving to nginx
July 21, 2016 02:29AM
There must be something in the nginx logs or php logs, sounds like a nginx root setting or php root/base setting.

nginx for Windows http://nginx-win.ecsds.eu/
Re: problem moving to nginx
July 23, 2016 04:22AM
do i maby need some sort of "location" for that offsite content
Re: problem moving to nginx
July 23, 2016 04:55AM
Enable debug error logging and nginx will tell you exactly which request matches what location and what it returns from that.

nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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