-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function suggest_site_path has problem with nginx #1329
Comments
You can manually set your siteurl, hav you tried that? |
Maybe I am thinking siteurl.. let me check, I dont think $_SERVER['HTTP_HOST'] is secure |
I use "/" in hosts becouse work with git. Maybe can add parametr "allowed hosts" for GS and validate it for HTTP_HOST?
|
I can create that functional and make function for conversion $SITEURL to fullpath if it has only slash in settings.php Do it? |
Curious what exactly are you doing, I Just like to know use cases and what people are coming up with. |
Maybe we can add a global and if it is set return that instead and you can define this in gsconfig ? GSSERVERNAME = $_SERVER['SERVER_NAME']; |
Done. With $SITEURL I think, that it need be changed to the $fullpacth anywhere, where needed absolute patch. |
This is probably a little different in 3.4 as some work has been done for relative paths etc. |
What you think about this hotfixes for 3.3.16? I do not plan to update released sites to 3.4 and this problem remains for them |
I will have to implement it as an optional toggle or something, not just that. And I need a better description of what you are doing, so we can document it |
Hello!! It's for GS 3.3.16
I use regexp on Nginx, my siteurl defined with
$_SERVER['SERVER_NAME']
as regexp:Can you change it to
$_SERVER['HTTP_HOST']
?And can you remove error if I use only slash in the siteurl settings.php
The text was updated successfully, but these errors were encountered: