D
D
Dmitry Kuzmin2016-04-24 17:04:21
linux
Dmitry Kuzmin, 2016-04-24 17:04:21

What is the value of $_SERVER[SERVER_PORT] when using SSL?

Tell me what value should the result of the output of the $_SERVER[SERVER_PORT] array output with SSL configured? When using https, should port 443 be issued or is it still 80?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-04-24
@alsopub

If you have nginx + proxy_pass on apache through http://localhost/(for example), then it will be 80.
Well, or a completely exotic case, if you have a site https://site.ru:80/ then also 80.
Otherwise, with a high probability, as I said devman .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question