flexjoly
Verified User
Hi,
I am updating our nginx custom configs.
I want to strip everything in the config voor http, except the redirecting.
It looks like nginx_server.conf is a full config with all features, so it could work in stead of the secure-variant (https).
Why is that? Since it is best practice to use and redirect to https and not use http anymore.
In my current config I have stripped everything except the redirecting. That works ok. But since DA is still featuring a full config for http://, I am wondering if there is a specific reason for that and that it is better to not strip it.
My config for http:// now is:
NB. I also stripped the proxy-part because we do not use that.
Thanks in advance,
Greetz, flexJoly
I am updating our nginx custom configs.
I want to strip everything in the config voor http, except the redirecting.
It looks like nginx_server.conf is a full config with all features, so it could work in stead of the secure-variant (https).
Why is that? Since it is best practice to use and redirect to https and not use http anymore.
In my current config I have stripped everything except the redirecting. That works ok. But since DA is still featuring a full config for http://, I am wondering if there is a specific reason for that and that it is better to not strip it.
My config for http:// now is:
NGINX:
?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?REALDOCROOT=`HOME`/domains/`DOMAIN`/public_html|
|?HOST_DOMAIN=`DOMAIN`|
|*if HOST_POINTER|
|?HOST_DOMAIN=`HOST_POINTER`|
|*endif|
server
{
listen |IP|:|PORT_80|;
|MULTI_IP|
server_name |HOST_DOMAIN| www.|HOST_DOMAIN| |SERVER_ALIASES|;
access_log /var/log/nginx/domains/|DOMAIN|.log;
access_log /var/log/nginx/domains/|DOMAIN|.bytes bytes;
error_log /var/log/nginx/domains/|DOMAIN|.error.log;
root |DOCROOT|;
index index.php index.html index.htm;
|FORCE_SSL_REDIRECT|
|NGINX_REDIRECTS|
|HOTLINK_PROTECTION|
#include /etc/nginx/webapps.conf;
}
Thanks in advance,
Greetz, flexJoly
Last edited: