Redirect A Subdomain To External IP Address
Oct 30, 2008Is there any way to redirect a subdomain on a machine A to point to an IP adress on a second machine B.
View 11 RepliesIs there any way to redirect a subdomain on a machine A to point to an IP adress on a second machine B.
View 11 RepliesI have 2 dedicated server.
on server a I created an account.
on this account I created a subdomain named test.mydomain.com
on server b I created a new account with dedicated IP .
now, I want redirect test.mydomain.com to my dedicated IP on server b .
I have cpanel on both server .
I changed the A record of IP of in mydomain.com , but this is not work
on pointing a sub-domain to an ip address.
I would like to have [url]point to my hope IP address which is static.
app and content are separate physical machines
I want [url]to be processed by app directly, which it's doing now
I want [url]or [url]to display content from content, either directly or through a hidden/stealth redirect.
How can this be accomplished? How else can I have one URL serve from two different servers other than using subdomains?
I have a website where users can sign up and create a site. They can access their website by typing username.example.com.
However, I would like to add to this the ability to buy a domain name and point it to username.example.com
so example.com/guestbook.html would translate to username.example.com/guestbook.html (external domain and associated user are mapped in the database)
Do I need my own DNS server for this or is there a simpler solution? Also, how should the database lookup be performed for this to work?
I am trying to do is have a redirect so the files get redirected to a subdomain. So domain.com gets pointed to domain.newdomain.com. However, I want to keep the current URLs, so say I got [url], the below code is just redirecting that url to [url]rather than
[url]
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule (.*) [url]/$1 [R=Permanent]
RewriteCond %{HTTP_HOST} domain.com$
RewriteRule (.*) [url]$1 [R=Permanent]
I have the following RewriteRule directive in my htaccess file on my localhost:-
Code:
RewriteRule ^([a-z-]+)/?$ test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
The rewrite rule works perfectly, since the revised URL is still preserved when after it is executed; I presume this is since my old URL is relative, and it's performing an internal rewrite.
However, when I make my old URL absolute (adding an external address to it), whenever I execute my new URL, I'm redirected to the external sites URL (which includes the same URL parameters as my internal 'test.aspx' page), like below:-
Code:
RewriteRule ^([a-z-]+)/?$ http://www.example.com/test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1}
Purely for demo purposes, upon execution, I'd like my new URL to be preserved in the address bar whilst, I'm redirected to the external site.
Is this possible to do - something like forcing the behaviour of an internal rewrite?
EDIT: I've done some investigating and people with similar problems have suggested using the Passthrough handler - although I'm slightly unclear as to what this does exactly, I gave it a go (adding '[PT]') at the end of RewriteRule, but unfortunately this didn't make any difference.
Is mod_proxy a possible solution?
I wasn't able to just export and import so I had to manually recreate content. I used the same permalink structure in hopes that I "might" be able to do a re-direct. Just now sure if A)It is possible or B)How to do it.
Example:
OLD LINK:
[url]
NEW LINK:
[url]
Am I able to redirect all traffic that comes in and replace the "www.cgcookie.com/articles" with "cg.cgcookie.com"?
How do I redirect to subdomains with discountasp hosting?
They give an example in their knowledge base (won't let me link it), example, they are assuming you're a programmer.
Is there any code that works that I can just paste into a Visual Studio 2008 web app project and upload that to my site? Or is it more complicated than that?
Customer service was no help at all.
Am I expected to be an experienced ASP.NET programmer in order to use discountasp as my hosting? I am learning asp.net and c# and I got discountasp because they seemed to have all the cutting edge Microsoft technologies.
I have a software program on my home PC that writes to files on my remote VPS every few minutes.
The only way I can accomplish this is to CHMOD the files to 777 and give the whole world write priveledges.
Is there a way I can give my external (home) IP address write priveledges to certain files on my VPS without CHMODing them as 777?
I run the latest version of cPanel and WHM on my VPS.
We have an established site for which we want to add a 'mobile-appropriate' subdomain geared to phone surfers.
Our host (1and1) confirms their servers detect mobile visitors but they couldn't help me with how to read the server flag(?) or whatever and then redirect the server to our mobile subdomain when appropriate.
Can anyone point to an appropriate how2? (Note I don't need "mobile code" help help - just help with how to redirect mobile visitors transparently off our main site and into its mobile subdomain).
Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).I need to redirect page from old subdomain to a new subdomain
Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage
Source site is very chaotic (static pages + wp pages) and there are no clear rule for redirection (no regex ).So I need to redirect every single page but syntax:
Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage doesn't work!I think "esp.site.com" in source page is not acceptable syntax..which is the correct syntax ? Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?
I moved my content from www,mysite,com to subdomain,mysite,com. I'd like to direct people who come to my site from search engines to the new location of the content.
For example, if they searched for pink purse and the search result was www,mysite,com/pink_purse,html, when they click that link, I'd like for them to redirected to subdomain,mysite,com/pink_purse.html. Can this be accomplished with some .htaccess magic?
Is it possible to send subdomain2.subdomain1.domain.com to a Windows 2003 IIS server thats different than the one where domain.com is hosted on?
View 1 Replies View Relatedwe change the name of one our directory on our host, we have some file on this directory and some website linked to this files. now how can redirect all address to new address?
for example our old address is:
[url]
now this file located on:
[url]
I have domain, let say it is www.mydom.com which is hosted at one IP. I would like to create subdomain www1.mydom.com and host it on another server with different IP address.
Is it possible?
Not sure where this thread so go, so posted it here! Cause bunnies do not fear mods somedays.
Anyways....
So i wanted to setup say a dns bunny.somedomainihaveisuppose.dom to say my ip say xxx.xxx.xx.xx . , how can you do that in cpanel say or say in whm panel, and is there any script maybe like say no-ip.com guys use, that can do a change mannually whenver you want to your ip?
Why am i not using other 3rd part services, cause a. they charge you to keep your dns name else it expires after few days or something if changes are not made...
So any solution or howto for setting up on your hosting account a dynamic dns kinda service?
could not find a solution for this reversed blocking
I would like to redirect users who access the site from any IP address to be redirected like this:
RedirectMatch /(.*)$ hxxp://extranet.domainname.com
and have anyone from an IP address of 123.123.123.123 to just access/view the regular site, so not to be redirected.
how I can do this in my .htaccess file?
I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.
I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...
Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)
I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I am, however, having great difficulties doing this.
I have setup my server with DDYNS through my domain name registar.
Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.
I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.
My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)
This is annoying for others to type out and I am just wanting to make it look pretty. Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)
I have what seems to be a simple redirect question. I have a dedicated server and a few static IP addresses, but I want to make it so if someone were to type in my IP address in their browser, Apache will redirect them to the domain name. (Typing in [url]
What happens now is that if you were to type in my server's IP address, it will show you the FIRST VirtualHost container that's listed in httpd.conf. This is not so bad since I've placed my main company site at the start of the list, but I'd rather redirect the IP into the domain name I use.
I read somewhere that you can place Mod RewriteRules directly in the VirtualHost container rather than using .htaccess, but the few "rules" that I tried didn't seem to do anything. And yes, I restarted Apache each time I edited httpd.conf.
Is there an easy way to do this?
ALSO, is there a way to redirect the name server address too? If you type in [url]into the browser, it acts the same way. I would ultimately like to redirect both the nameservers and the IP address(es) to the domain name.
We are trying to use a configure settings for an external SMTP server within Plesk (Windows 2008 R2 Plesk 12) but are receiving the following error message:
Error: Unable to encode IDN email address 'username': email address is invalid
We are trying to use a username for SMTP authentication as we do not have the option of using an email address with our current SMTP relay provider.
Is there any way around this so that we can use a username rather than an email address?
After changing options in "tweak settings", domains section, I found my site IP Address is missing, subdomain configuration also disappear.
Print screen attached.
- Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)
- Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)
- Allow users to create cpanel, webmail, webdisk and whm subdomains that override automatically generated proxy subdomains
Those following configuration is ** set by default.
I have never changing option in "tweak settings" after 1-20 automatic update to STABLE version since I tweaked the WHM from first time installed.
Domain cannot be accessed from http port, subdomain disappear.
I have a -I think- common issue, one external server available from internet and an internal server for local only.
I want that to ask for [URL] ....
I can get the content of an internal server. For this I tried this at httpd.conf:
Redirect /site http://in.ter.nal.ip/site
but browser changes to internal IP and obviously I can't reach it.
So, I need that when external server detects that I want to see internal server content, it ask to internal and external itself answers.
Under plesk 12.0.18, I would like to create thousand email address with redirect and send copy to. Its a long work to do.
Is there a solution to create all these email via an import csv, xls or else ?
I have set up an Apache web server that has ssl enabled. If I go to https://myserver.com I get the 'it works!' page and the certificate is valid and trusted. If I go to https://myserver.com/myapp that also works (it's an Oracle weblogic deployed java app that I'm fronting with Apache).
I would like to configure Apache so that when a user goes to simply https://myserver.com it automatically directs them to https://myserver.com/myapp rather than showing the 'It works!' page. I have read some documentation and experimented with setting a redirect via the https.conf file and even the ssl.conf file but nothing seems to work. I either get a 404 or simply the 'It works! page.
Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).
I need to redirect page from subdomain to a new subdomain
Example:
esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage
Source site is very chaotic and there are no clear rule for redirection (no regex )
So I need to redirect every page but syntax:
Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage
doesn't work!
which is the correct syntax ?
Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ?