I don't know how wide a problem this is. For some PHP applications the variable $_SERVER['HTTPS'] is used to determine if it is running under ssl. This variable is a true/false on/off variable. Nginx does not (afaik) provide any similar variable that can be passed along to php like other parameters. For example: fastcgi_param SERVER_PORT $server_port; For the HTTPS parameter I have to setby eimermusic - Ideas and Feature Requests
Hi, I am on the stable version (0.7...) but have also checked this on the Ubuntu apt version (0.5.33). The thing is that php show the requested name in HTTP_HOST while SERVER_NAME shows the first name in the configuration. So this may not at all be anything like a bug but simple a difference in interpretation of the use of these values. I do believe that most php applications use the SERVERby eimermusic - Migration from Other Servers
Reading the manual a bit more led me to the following: fastcgi_param SERVER_NAME $host; This change makes php see the "correct" server name but I wonder if this is an unsafe setting or bad in some other way?by eimermusic - Migration from Other Servers
Hi, I am in the process of deploying nginx to my servers but have run into a small problem. I have php and rewrites working fine (thanks to all the excellent guides and examples around.). The thing that is a bit odd though is that nginx forwards the first server_name defined to fcgi... not the one actually being requested. My server block has: server_name client1.example.com client2.examby eimermusic - Migration from Other Servers