Weird issue with relative links

Daniel Lintott daniel at serverb.co.uk
Tue Jul 8 11:09:57 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140708/73ffd44f/attachment.bin>


More information about the nginx mailing list