Hi, I searched a lot in forum but I don't found solution and I think it's simple. I have a super perfect server with Ubuntu 14.04 and ISPConfig (i don't know where I can find version but i think is ..) 3.0.5.4p9 and nginx. I have some main domains perfectly working and recently bought other domains. I want to make redirection for this domains to main domains and I can't figure how do this. I have (example domain): www.maindomain.tld I bougth: www.extradomain.tld I need configure this redirections: extradomain.tld -> www.extradomain.tld www.extradomain.tld -> www.maindomain.tld I was created a new aliasdomain with: Aliasdomain: extradomain.tld Parent Website: maindomain.tld Redirect Type: (I don't know what value i need te choose, I tried some without good results) Redirect Path: Auto-Subdomain: www. SEO Redirect: No Redirect With this config if I write extradomain.tld in web browser shows page without redirection. If I choose: SEO Redirect: * => www.domain.tld Don't do any redirection too Any help? any point to the right direction? Thanks
It is actually pretty simple. Please refer : http://docs.ispconfig.org/creating-web-sites/alias-web-domains/
I'm asking because this docs don't work for me!! This help that you send works bad. When I configure like docs and I write: www.maindomain.tld this redirect to: www.extradomain.tld And this extradomain just load page. This is working bad!
Sorry, i just write a bad rule in SEO Redirect, This doc is incomplete. I don't know why isn't working for me. Just like docs ispconfig only add domains to server_name rule and no more. Any help please?
Nope, you have to figure out the things, What you have setup, Try to setup "R 301, L" SEO redirect >> keep no redirect.
Looking my vhosts files i see that some directives isn't in file: Code: server { listen *:80; server_name maindomain.tld www.maindomain.tld www.extradomain.tld extradomain.tld; root /var/www/maindomain.tld/web; index index.html index.htm index.php index.cgi index.pl index.xhtml; error_log /var/log/ispconfig/httpd/maindomain.tld/error.log; access_log /var/log/ispconfig/httpd/maindomain.tld/access.log combined; location ~ /\. { deny all; access_log off; log_not_found off; } location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location /stats/ { index index.html index.php; auth_basic "Members Only"; auth_basic_user_file /var/www/clients/client1/web13/web/stats/.htpasswd_stats; } location ^~ /awstats-icon { alias /usr/share/awstats/icon; } location ~ \.php$ { try_files /84d221c80cd64cf4776db4b2cbff0ecc.htm @php; } location @php { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9022; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } #own directives error_page 404 /404.html; gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; } location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ { expires 11M; access_log off; add_header Cache-Control "public"; } location ~* \.(?:css|js)$ { expires 11M; access_log off; add_header Cache-Control "public"; } } Where is directive for redirection? Alias domain only add domain to server_name. Please, I need help with this, Google begins to index two sites and found duplicate content.