i have a domain that i have full access to the IIS, and it hosts the main website.
i want to make a subdomain retrive files from another server (Media Temple grid hosting), in an specific path.
for example:
mysubdomain.domain.com (my IIS server)
get files from www.otherdomainandserver.com/sites/comunidade (Media Temple hosting)
i was able to set the IP address on the A Record, but i can't point to the correct folder that has the files, the specific path.
any thoughts on that?
thank you very much.
Under your main domain's (domain.com) website right click and add new "Virtual Directory".
On Add Virtual Directory dialog give whatever name (mysubdomain) you want to give in "alias" field. In physical path field give network folder's path and click ok.
Right click on Virtual directory created in step 2 and select "Convert to Application"
Make sure that app pool identity under which your subdomain app is running has at least read access to network folder.
Remember you can not map your subdomain application's physical path to virtual path from some other application's virtual path i.e.(www.otherdomainandserver.com/sites/comunidade). It has to be physical path e.g. \\myotherserver\myfoldertomap
I have found another way and that is less technical but let me share with you hope that will solve your problem.
Domain which you want to park to another server subfolder need to change the dns with another server DNS and addon that domain to the server where you want to point...while doing the addon process your cpanel would ask where you would like to point the directory and save this...BINGO the work is done you domain is pointed to another server directory.
Related
I want to connect and access the document inside htdocs folder to test my project in a external device.
I google a lot trying to find the solution to this problem and I finally find it by trying it once and again. So I decide to create this post for the one that are struggling to access htdocs folder. Cheers!
Here is the answer:
Enable incoming connection by switching the firewall off. Go to General Preferences. Then Security & Privacy, go to Firewall and switch it off.
Get you ip address. The address that your local network has given you. You can check it by writing "ifconfig" in the terminal. You will find this:
inet 192.XXX.X.XX
Go to your device and type in the URL the following:
192.XXX.X.XX:8888/document.php
Your IP address:Web Server Port/the document full name
You are in htdocs folder now! :)
I recently paid for a domain and hosting services through two different vendors. I pointed the domain to the IP provided by the hosting service, uploaded my HTML through Cpanel to the public_html folder in file manager but the page does not load when I point my browser to the IP or my domain. Instead, I have to type in the IP or my domain and add /~MyUserName
Is there something I am doing wrong? I can't access a higher level of folder in file manager than /~MyUserName. Do I need to point my domain to the IP/~MyUserName?
Thanks in advance
File Structure
I have to reach the wordpress platform installed by a certain hosting service, so I can build a new website (that will replace the old one), on a certain IP address. I changed my hosts file under their instructions. I put in it the IP address that they had given me and the website domain (separated by a single space). The hosts file hasn't any extension and it's in the right location (System32/drivers/etc - I'm on Windows 8). I cleaned browser and local DNS cache but nothing change: if I put in the browser the url they had given me (www.domain.com/?hostingname) I see the old website, not the wordpress platform. I tried to ping the domain and it returns a different IP address. What can I do? Thanks everyone in advance.
Ok, I solved. It's important to edit the hosts file with Windows Notepad and not with Notepad++
I would like to have a particular url structure of my company dev server.
we got a few websites, and I'm putting them on 1 server, but each websites can access to the same libs and config files making it easy to add another website in the future.
the URL structure that I want is like this :
htp://internalFolder.devName.internalUrl/
htp://www.mywebsite.com.project.web.devname.company.com/index.php
the folder structure is like this :
/home/devname/project/lib/
/home/devname/project/config/
/home/devname/project/web/www.mywebsite.com/
/home/devname/project/web/www.website2.com/
...
the url must access to those folders, and if the dev does a temporary folder in his folder he can access to it :
/home/devname/temp/
htp://temp.devname.company.com/
I got no idea how to do that... I got a DNS server in Windows Server 2008 and my dev server on Debian, if possible I do the linux server as secondary DNS or something like that.
I know it's possible cause it was the structure of my ex company, and it was really good.
Thanks a lot for your reply's.
If they're all to be run from the same webserver, it doesn't have much to do with DNS (as long as you can get all of those URLs to the IP of the same webserver.
In apache, these different sites are known as Virtual Hosts.
I did another way finally... I hired someone but he gave up, so I do it manually.
our hosting account is set up with the domain www.nashman.ca, and our application is at www.nashman.ca/hub. We have another domain that forwards to www.nashman.ca/hub and that's hub.mhn.co. The problem i'm having with this is that the forwarded domain adds on the /hub whenever you navigate to another page from hub.mhn.co, so the domain shows as hub.mhn.co/hub/admin when you're in the admin area, for example. I need the domain to stay consistent, and never show that folder name, because its breaking some of the javascript I use. What is the best way to set this up?
edit
I've been doing some reading about URL Rewriting, and looking into it - my hosting provider supports the IIS7 URL Rewrite module. All the tutorials I've found so far detail how to set up rules using the IIS config tools, but I don't have access to them. Is there a way to do it by editing my web.config in my apps root directory? And will this solve my issue?
Is the default page for hub.mhn.co using a redirect to www.nashman.ca? If so, what is happening is that the forwarding software basically returns a new URI that the browser requests, and the new URI will replace the old one in the browser window and thus in all future requests. You're probably redirecting to ~/hub/ (the hub subdirectory of the site root) which will result in the browser requesting a new URI that keeps the domain name but tacks on the subdirectory.
If you have direct control over the DNS and your webservers, you can use the DNS configuration to direct a request for the hub.mhn.co domain directly to the /hub subdirectory of your webserver. That way, the browser never knows that hub.mhn.co is actually www.nashman.ca/hub/. You might have to direct to an alternate port on the webserver and map that port to the subdirectory, depending on your DNS software (IIRC, most can deal with ipaddress/subdir routes, but some can only handle routing to ipaddress:port).
If your IT department does not have direct control/ownership over your DNS routing, or your exact hosting environment, you are more or less at the mercy of your hosting provider. They may be able to set up their environment to do the same thing, or not; all you can do is ask.
EDIT: Basically you have two options left if you're hosting remotely and can't use their DNS to reroute silently.
First option: clone (copy all files from) the web layer of nashman.ca/hub as hub.mhn.co under a different root space in your hosting environment (try to keep any hooks to service-layer code over at nashman so you don't have to copy the whole vertical slice). If you must also keep the UI under the /hub/ subdirectory, you're repeating code, but you may be able to mitigate this with deploy scripts that will allow you to deploy one local copy of your codebase to various locations. This may also cost more as your hosting environment is now hosting two non-trivial sites.
Second option: host the site and/or resolve the calls on your own hardware. As long as you have a public, static IP address through your ISP, you can provide a DNS server that will be the "authoritative" server for nashman.ca and hub.mhn.co domains. Your ISP or a third party domain name registry can provide a "pass-down" route to get requests from the TLD servers down to you. Then, you can route requests to whatever IP address, port and/or subfolder you like; that can be a remote webhosting provider (as long as they don't mind JUST hosting your site) or your own webservers. This will require the hardware, and a static IP from your ISP. If you lose power to this server, your site will be unreachable until power's restored. If the IP address of your DNS server changes, your site will be unaccessible by DNS until the server that routes requests to you updates its routing table with the new IP (which can be up to 24 hours).