Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello dear community
I have a simple setup: I own two domains and want to point one domain to a subdomain of the other. So: 1.com Sub.1.com 2.com
Where 2.com should point to the subdomain sub.1.com. On sub.1.com is running a wordpress in a plesk. I am seeking for real redirect, so that is why I have tried to store this in the nginx.conf.
var/etc/nginx.conf looks like this:
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;
#gzip on;
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server_tokens off;
include /etc/nginx/conf.d/*.conf;
<^>server {
listen 80;
server_name 1.com;
return 301 $scheme://2.com$request_uri;
}<^>
}
It seems that the server entry is not sufficient. I am now unsure what else I need to change.
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e