Welcome! Log In Create A New Profile

Advanced

Weird issue with relative links

Daniel Lintott
July 08, 2014 07:12AM
Hi,

I am fairly new to nginx but appear to have it working well... along
with php-fpm.

Working on a PHP script that uses slash arguments I'm hitting an odd
problem.

I am able to retrieve the argument correctly and this works fine in the
script. Where my issue lies is with the links that are then displayed.

The script is at:
http://alpha.serverb.co.uk/debian/parser.php/gns-3

The filelist links on the page should are all relative. Testing on my
local Apache server, this works perfectly. The links are like this:

http://webdev.internal.serverb.co.uk/debian/parser.php/gns-3/GNS3-0.8.7-src.zip

This is correct... the link includes the php script, slash argument and
the file name.

Now on nginx... it is returned different.. the links are missing the
first slash argument so appear as:

http://alpha.serverb.co.uk/debian/parser.php/GNS3-0.8.7-src.zip

I have checked the values set by fastcgi, and these all appear to match
what Apache returns... so I'm stumped!

I know I can get around this by changing the links... but that isn't an
option as the page is later parsed by other scripts and should be
backwards compatible with the previous version.

Any help would be most welcome

Regards

Daniel Lintott

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Weird issue with relative links

Daniel Lintott July 08, 2014 07:12AM

Re: Weird issue with relative links

Francis Daly July 08, 2014 07:38AM

Re: Weird issue with relative links

Daniel Lintott July 08, 2014 08:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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